IMessageFilter not triggering in custom DLLs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to understand why IMessageFilter might not be working in my custom DLLs - I'm gettng all sorts of errors telling me that AutoCAD is busy.
Basically my setup is that I have a business application utility. This utility calls our own custom DLL, at one point, in order to automate AutoCAD and read drawing information -- i.e. it contains methods for opening AutoCAD, and executing other AutoCAD related functions using COM. The classes in the DLL Implement ImessageFilter (pretty much the method used here: http://through-the-interface.typepad.com/through_the_interface/2010/02/handling-com-calls-rejected-b...
If AutCAD is not open, it opens it ---note that I haven't had the error problems if the target drawing is already open, probably because AutoCAD isn't running any threads at that point; also note that when it opens a drawing and/or AutoCAD, our AutoCAD has both lisp and .Net startup routines, so it's probably running a couple threads in addition to the native startup ones.
Basically my problem is that IMessageFilter does not appear to be triggering in the DLLs at all. It may be possible that IMessageFilter is running in a couple tiers at times.
If anyone has seen this behavior and might know it's cause, any feedback is appreciated.