Author Topic: Dynamic Loading ...  (Read 2432 times)

AndrewJameson

  • Guest
Dynamic Loading ...
« on: 2 Apr '03 - 09:03 »
Hi,
I'm dynamically loading and unloading the BASS.dll and it all works as expected.  However, if my program crashes or I abort the program from within the Delphi IDE ... which I often do ... I then find that although the Load_BASSDLL works, the BASS.dll refuses to initialize and causes an exception ... is there a way to overcome this as rebooting is my only option at the moment ?

Andrew

Ian @ un4seen

  • Administrator
  • Posts: 26083
Re: Dynamic Loading ...
« Reply #1 on: 4 Apr '03 - 12:02 »
Does the problem happen if you statically load BASS.DLL instead? Also, what Windows version and soundcard do you have, and have you checked if the problem happens on other systems?

Btw, what's your BASS.DLL date/size? There was a small update (19/03/03) to fix a similar sort of problem someone had with VB. I doubt your problem is the same, but if you don't have that updated DLL, you may as well re-download BASS and give it a go :)

AndrewJameson

  • Guest
Re: Dynamic Loading ...
« Reply #2 on: 5 Apr '03 - 09:27 »
Thanks for replying Ian ...

We're using 98, Delphi 5, a fairly old (1997) Creative Labs soundcard SB16 ... we've not really tested our application on other systems yet ... it certainly runs fine on NT/2K/XP but it's really during development in the Delphi IDE that's giving us a minor headache ... if we forget and reset the program then we end up having to reboot to get the sound working again.

I feel fairly confident that our coding is correct but felt that we might be overlooking something ... it seems odd that whilst it can Load the DLL and get all its ProcAddresses that it should fail during the Init ...

Static loading is fine ...

Andrew