From: David Lowndes on
>If I remove the handler its OK.
>If I just call the base class implementation its OK also.
>The problem occurs when I try to call a method (even if it do nothing !) of
>a COM object which exists in a different process.

OK, so don't do it then. Try posting a user defined message to the
same window and do the COM object operation in response to that
message - i.e. defer the operation slightly.

Dave
From: Yoavo on
This is exactelly what I did. But it did not help...

"David Lowndes" <DavidL(a)example.invalid> wrote in message
news:g4e326tk2ug3u0jhgisog49rl3hk8aemfh(a)4ax.com...
> >If I remove the handler its OK.
>>If I just call the base class implementation its OK also.
>>The problem occurs when I try to call a method (even if it do nothing !)
>>of
>>a COM object which exists in a different process.
>
> OK, so don't do it then. Try posting a user defined message to the
> same window and do the COM object operation in response to that
> message - i.e. defer the operation slightly.
>
> Dave

From: David Lowndes on
>This is exactelly what I did. But it did not help...

OK, 1 last suggestion then.

Rather than defer the operation by posting a user defined message,
start a timer (try some wildly different times to see if it's
significant) and do the COM operation in the timer handler (stop the
timer beforehand of course).

Dave
From: Yoavo on
I tried it also.
This time it worked !!


"David Lowndes" <DavidL(a)example.invalid> wrote in message
news:31h3269uqvcsqavr92j1aoq1d5gvukln84(a)4ax.com...
> >This is exactelly what I did. But it did not help...
>
> OK, 1 last suggestion then.
>
> Rather than defer the operation by posting a user defined message,
> start a timer (try some wildly different times to see if it's
> significant) and do the COM operation in the timer handler (stop the
> timer beforehand of course).
>
> Dave

From: David Lowndes on
>I tried it also.
>This time it worked !!

Jolly good.

Out of interest, did you try varying the timer - did it make any
difference if it was short (say 30ms) or relatively long (like 1s+)?

Dave
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4
Prev: ALT+TAb problem in W7
Next: Oh No Not Again!