The infamous Message Filter error - Illegal to call out while ins ide Message Filter (-2147418107) 
Author Message
 The infamous Message Filter error - Illegal to call out while ins ide Message Filter (-2147418107)

When a process tries to make two concurrent out-of-process COM calls,
the second fails with error -2147418107, "it is illegal to call out
while inside message filter." If the second call happens to be a
RaiseEvent statement, the event is simply lost without error. Refer to
http://www.*-*-*.com/
SD=gn&FR=0.

How have others out there worked around this problem? This problem
happens most often when VB code gets re-entered, either because of a
Timer event firing or because of an incoming COM call. I've found
articles suggesting you rewrite the default message filter to prevent
reentrancy from happening, e.g.,
http://www.*-*-*.com/
SD=gn&FR=0, but this seems a bit extreme.  

Has anyone tried this? Has anyone come up with a better solution?



Fri, 04 Apr 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. It is illegal to call out while inside a message filter

2. Strange recset.addnew ILLEGAL FUNC CALL message...

3. Learning the ins and outs of Peek and Poke

4. Trapping Warning Messages, NOT Error Messages

5. illegal operation message

6. VB6 "illegal opeation" message in Win95

7. Illegal Character Message

8. Function Call Error Message

9. Access append query called from Outlook fails, no error message - REPOST

10. HELP URGENT Error message calling class method

11. ODBC Call Failed - More detailed error message

12. Bad DLL calling convention error message in VB4.0

 

 
Powered by phpBB® Forum Software