mIRC Homepage
Posted By: Tpau DLL not properly unloading bug - 26/11/06 12:51 PM
Hi,

the problem descirbed below happens with mirc in V 6.2 and 6.21:
Code:
  
  var %line = some text

  var %resulted1 = $dll( crypt.dll , algorithm1 , %line )
  dll -u crypt.dll  ;doesn't work to unload the dll immediately!
  var %resulted2 = $dll( crypt.dll , algorithm1 , %line )

  echo result1: %resulted1
  echo result2: %resulted2

.... this code worked well in versions before!

after some testing it seems, that $dll doesn't get unloaded, thus cannot re-initialize itself (since V6.2).

...but the bug is even worse:
it affects separate events, when the same dll is called within approximately 1 second!

calling /dll -u as workaround within an event or alias doen't help, DLL stays loaded and pre-initialized with wrong values

regards!
Posted By: billythekid Re: DLL not properly unloading bug - 26/11/06 01:18 PM
from mirc 6.2 versions.txt

Quote:
69.Custom DLLs are now delay-unloaded to allow subclassing DLLs to
work better. The UnloadDLL routine is still called at the same
point as before.


could this be your problem?

btk
Posted By: Tpau Re: DLL not properly unloading bug - 26/11/06 03:46 PM
I've read that - prob is: you cannot even FORCE instant unloading as documented
Posted By: Khaled Re: DLL not properly unloading bug - 27/11/06 03:52 PM
Thanks this has been fixed for the next version.
© mIRC Discussion Forums