Re: IMessageFilter and USER DEFINED MESSAGES



Thanks Everybody ..

I am calling a Third party DLL inside a function
This involves some GUI (Modal Dialog) and it does have an internal
message pump


In this situation multi threaded environment -multiple STA calling same
function, I have a re-entrancy problem
I implemented IMessageFilter and checked the messages

Even though the calls are re entrant and overlaping
Inside IMessageFilter ::HandleInComingCall , I am getting
dwCallType=CALLTYPE_TOPLEVEL (for all the calls)

I am trying to make a logic say ..
if the call types are CALLTYPE_TOPLEVEL_CALLPENDING or CALLTYPE_NESTED
then do
SERVERCALL_RETRYLATER

Any idea whats going wrong here ?

.



Relevant Pages

  • Re: Relationship between Application.Exit() and AppDomain
    ... calling A.E on T1 closes Form1, ... > relationship between Application, A.E method and AppDomains. ... It's the thread that must run a message pump in order to retrieve ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Getting function pointer/creating delegate with Reflection
    ... I'd write a new ShowDialog method in ApplicationEx. ... > Do you know big application witch use this Message Pump? ... >>>> It's a known limitation of ApplicationEx that IMessageFilter ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Relationship between Application.Exit() and AppDomain
    ... calling A.R on a different thread in a separate AppDomain is ... It's the thread that must run a message pump in order to retrieve ... Window messages from the application and from the System. ...
    (microsoft.public.dotnet.framework.clr)
  • RE: Grabing the FormLoad Message from the Message Queue
    ... IMessageFilter is pre process before the normal translate / ... which will not be placed in the message pump. ... You may try to intercept these messages through overriding Form's WndProc ... protected override void WndProc ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Relationship between Application.Exit() and AppDomain
    ... relationship between Application, A.E method and AppDomains. ... It's the thread that must run a message pump in order to retrieve Window messages from the application and from the System. ... calling A.E on either of the threads doesn't ... inline with the docs". ...
    (microsoft.public.dotnet.framework.clr)

Loading