Dolphin 5 - Patch Level 3 hangs in ActiveX callbacks when...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Dolphin 5 - Patch Level 3 hangs in ActiveX callbacks when...

Umur
Inside an activeX event callback, dolhin is hanging if I do
     [ ... ] postToInputQueue.

Those calls are failing also
    aSemaphore signal
    [ ... ] fork

Inside an activeX callback, I could find no way of deferring an action. All hangs.


I have a simple reason. I am handling events of ActiveX components. And when I have long processing to do, I need to defer the actions. Aaaaargh.


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin 5 - Patch Level 3 hangs in ActiveX callbacks when...

Bill Schwab-2
One generic comment/question: are you certain that you are not simply
generating an error that messes up the callback?  I mention it only because
on a few occaisions, I had something that looked terrible but turned out to
be quite simple.

> Inside an activeX event callback, dolhin is hanging if I do
>      [ ... ] postToInputQueue.
>
> Those calls are failing also
>     aSemaphore signal
>     [ ... ] fork

If you mean #wait instead of #signal, then you would get into trouble.  If
not, I'm confused about what you are trying to do.  #forkMainIfMain might
help, but probably is not a good first choice.


> Inside an activeX callback, I could find no way of deferring an action.
All hangs.
>
> I have a simple reason. I am handling events of ActiveX components.
> And when I have long processing to do, I need to defer the actions.
Aaaaargh.

Do you need the processing to occur during the callback (have the callback
wait until it is complete), or simply to have the callback cause the
processing to start, with a subsequent UI update when it is complete?  What
does the control do?

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin 5 - Patch Level 3 hangs in ActiveX callbacks when...

Blair McGlashan
In reply to this post by Umur
"umur" <[hidden email]> wrote in message
news:[hidden email]...

>
>
> Inside an activeX event callback, dolhin is hanging if I do
>      [ ... ] postToInputQueue.
>
> Those calls are failing also
>     aSemaphore signal
>     [ ... ] fork
>
> Inside an activeX callback, I could find no way of deferring an action.
All hangs.
>
> ...

I can't think of any particular reason why you shouldn't be able to defer
the action. In fact if I modify the AXControlBrowser>>onEvent:withArguments:
method so that the trace output is deferred using #postToInputQueue, then it
continues to work. I think some more information about what you are doing is
required to determine the problem.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin 5 - Patch Level 3 hangs in ActiveX callbacks when...

Umur
In reply to this post by Bill Schwab-2
I am trying to have the callback cause the processing to start, with a subsequent UI update when it is complete.

I solved the problem like this: [ statement ] myDefer. I post the blocks to a queue. And a global tread is polling this queue. I have got the idea from the existing [...] defer. But the original was not running in a callback also.


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin 5 - Patch Level 3 hangs in ActiveX callbacks when...

Umur
In reply to this post by Blair McGlashan
Thanks.  I will be looking into my own code to find the devil.