View Single Post
Old 14th January 2005, 19:22   #187
Junior Member
herd's Avatar
Join Date: Nov 2004
Location: Germany
Posts: 7
Dear Shaneh, I have a small suggestion:

Controlling winAmp from an external COM controller application is very easy thanks to your plugin. However, C++ Apps can encounter problems when the user closes winAmp by the UI. Any further access beyond the destruction is denied (RPC_E_DISCONNECTED) since you seem to call CoRevokeClassObject and shut down correctly.

Please consider implementing two aditional events to notify your clients of:
1. That you're about to shut down, e.g. OnAboutToTerminate() thus giving the caller a chance to cleanup before all your objects are destroyed / detached.
2. OnTerminate(). App should never get this if it did a proper cleanup.
This way, the caller can clean all memory tied to WA resources and avoid memory leaks.


herd is offline   Reply With Quote