Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ Bug Reports _ mirc.exe process remains when ac.dll is loaded

Posted by: Who_knows Aug 30 2007, 06:52 PM

Hi!

I've the following bug:

Mirc 6.3
foobar 0.9.4.4
amip 2.61
ac.dll 1.2

If the ac.dll is loaded when exit mirc, the mirc process stay in system.

Doing an on *:EXIT: /dll ac.dll unload works fine now.

Please check.

BR
Who_Knows

Posted by: Serge Aug 30 2007, 07:03 PM

Please check if this version works for you: http://amip.tools-for.net/files/test/ac_mirc.zip .

Posted by: Who_knows Aug 30 2007, 07:13 PM

Hi Serge!

no, still the same with that version. I see the mirc process in ProcessExplorer after exiting mirc.


BR
Who_Knows

Posted by: Serge Aug 30 2007, 08:21 PM

Me and another AMIP user are not able to reproduce this issue. Is there anything specific about your OS and environment?

Posted by: Markus -voks- Henn Aug 30 2007, 08:26 PM

can't reproduce it with:
foobar2000 0.9.4.4
mIRC 6.21/6.3
AMIP 2.61
ac.dll 1.3
WinXP SP2

Posted by: Who_knows Aug 30 2007, 08:37 PM

Hi!

I'm using Win2K, but it works fine with mirc 6.21

when i unload the ac.dll in on exit mirc closes normally.

Could it have something to do with that?

Mirc changelog:
4.Fixed custom DLL delay-unload feature so that it is only applied when mIRC exits. In other cases, the DLL is unloaded immediately.

BR
who_knows

see also:

http://trout.snt.utwente.nl/ubbthreads/ubbthreads.php?ubb=showflat&Number=184594&page=1&gonew=1

Posted by: Markus -voks- Henn Aug 30 2007, 08:47 PM

Ok, nnscript 4.1 unloads all dlls on exit. That's why it's working here.

Posted by: Serge Aug 30 2007, 08:52 PM

Ok, looks like I've fixed it, try http://amip.tools-for.net/files/test/ac_mirc.zip .

Posted by: Who_knows Aug 30 2007, 08:57 PM

Hi Serge!

Great, that's it!!! Works fine for me :-)


BR
who_knows

Posted by: Who_knows Aug 31 2007, 04:40 PM

Hi!

The exit of mirc is working fine with this solution, but the AMIP Server/Client is unloaded in ten minutes with no function and must be reloaded again then. This must be done manually in the script, so i think the version to manually unload the dll in the on exit is the better way for now.


BR
who_knows

Posted by: Serge Aug 31 2007, 05:02 PM

Thanks for the input, I'll investigate it.

Posted by: Serge Aug 31 2007, 05:58 PM

UPDATE:
Fuck Khaled. He changed the API without any notice. So now UnloadDll is called with parameter 2 on exit, 1 on timeout and 0 on manual unload (before mIRC 6.3 it was called with 0 on exit).

I've modified ac.dll to reflect this change and it should work correctly now (will not unload on timeout, but will unload on exit).

Please test: http://amip.tools-for.net/files/test/ac_mirc.zip

Posted by: Who_knows Aug 31 2007, 06:48 PM

Hi Serge!

I've tested your updated version now.

Here the results:

Loading with on start, OK
Showing music title, OK
Not unloading after ten minutes, OK
Unloading when exit mirc, OK
Mirc really ends, OK

I think this version is working correctly and in the same manner as it did before 6.3


Many thanks!!!

who_knows

Powered by Invision Power Board
© Invision Power Services