I've written a script that launches an external application which accesses the MM COM server. To avoid the COM error when MM shuts down, my script handles the OnShutdown event and closes down the external process.
However, if the user shuts down Windows or logs off, while MM is running, the COM error is displayed, which prevents Windows from shutting down. I noticed that when shutting down Windows, the COM errors are displayed before my script is able to handle the OnShutdown event. Is it possible for MM to properly shut down scripts before displaying this error? Or can MM just not display these COM errors while Windows is being shutdown?
COM error during Windows shutdown
Moderator: Gurus
Re: COM error during Windows shutdown
I cannot reproduce your issue on scripts I've tested.
The OnShutdown event is called on MM closing.
Could you send me your script (ls <att> mediamonkey.com).
Maybe I will be able to repro the issue on your script and fix it.
Which OS you are running on?
The OnShutdown event is called on MM closing.
Could you send me your script (ls <att> mediamonkey.com).
Maybe I will be able to repro the issue on your script and fix it.
Which OS you are running on?
Re: COM error during Windows shutdown
Thanks for looking into this. I'm having this problem on both XP and Vista.
To be clear, my script receives the OnShutdown event. The problem is that the COM error is displayed before my script is even able to handle the event.
I found the following site which describes how to disable the popup box, http://blog.delphi-jedi.net/2008/07/01/ ... nnections/. However, it doesn't seem scripts have access to the UIInteractive property, so it is something that must be set inside MediaMonkey.
I'll send you some test files that should reproduce the problem.
To be clear, my script receives the OnShutdown event. The problem is that the COM error is displayed before my script is even able to handle the event.
I found the following site which describes how to disable the popup box, http://blog.delphi-jedi.net/2008/07/01/ ... nnections/. However, it doesn't seem scripts have access to the UIInteractive property, so it is something that must be set inside MediaMonkey.
I'll send you some test files that should reproduce the problem.
Re: COM error during Windows shutdown
Ok, thx.
I tracked it as http://www.ventismedia.com/mantis/view.php?id=6007
and added the
ComServer.UIInteractive := false;
to MM code before shutting down, will be in upcoming build 1271.
I tracked it as http://www.ventismedia.com/mantis/view.php?id=6007
and added the
ComServer.UIInteractive := false;
to MM code before shutting down, will be in upcoming build 1271.