I've written a COM Object DLL that is used with a 3rd party application that contains a COM Object API. I have madExcept compiled into my DLL but when an exception occurs madExcept does not handle the exception...nothing from madExcept gets displayed. I've tried searching the forum but almost everything I enter into the search edit box returns "...too many common words...".
Is there something special that is required to get madExcept to work in a COM Object DLL?
madExcept in a COM Object dll
Re: madExcept in a COM Object dll
Does the first section of this page help?
http://help.madshi.net/HowToUseMadExcept.htm
Basically you need to add a try..except block around every "entry point" in your COM object dll. The reason is that whenever an exception occurs, the exception is "sent to" to the nearest try..except block. And if there is none inside of your COM object dll, then the exception goes to some other DLL or to the EXE, and is then outside of madExcept's control. That's how exception handling works in Windows.
http://help.madshi.net/HowToUseMadExcept.htm
Basically you need to add a try..except block around every "entry point" in your COM object dll. The reason is that whenever an exception occurs, the exception is "sent to" to the nearest try..except block. And if there is none inside of your COM object dll, then the exception goes to some other DLL or to the EXE, and is then outside of madExcept's control. That's how exception handling works in Windows.