On windows there is this [1].  Which states:  A thread cannot use
DestroyWindow to destroy a window created by a different thread.

We create the window from the launcher on the main thread so I don't see
this being fixable without holding onto the main thread to dispatch a
message to to destroy the launcher window.  I wonder if os-x has similar
restrictions.

Tom

[1]
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632682%28v=vs.85%29.aspx




From:   Tom Schindl <[email protected]>
To:     [email protected],
Date:   12/18/2013 03:00 PM
Subject:        Re: [equinox-dev] IApplicationContext#applicationRunning needs
            to be called on the main thread?!?
Sent by:        [email protected]



I've tested it on os-x, will open bugs.

Tom

On 18.12.13 21:57, Thomas Watson wrote:
> Sorry for the slow response.  I admit my knowledge of the native
> launcher details are a bit sketchy.  My first reaction is that I don't
> think the thread should matter.  I agree if it does matter then it
> should be documented somewhere.  Do you know if this is only an issue on
> Windows or all platforms?  I suggest you open a separate bug against the
> Equinox launcher.
>
> Tom
>
>
>
> Inactive hide details for Tom Schindl ---12/18/2013 02:11:30 PM---Hi, I
> never got an answer to this, I would really appreciate Tom Schindl
> ---12/18/2013 02:11:30 PM---Hi, I never got an answer to this, I would
> really appreciate any pointers.
>
> From: Tom Schindl <[email protected]>
> To: [email protected],
> Date: 12/18/2013 02:11 PM
> Subject: Re: [equinox-dev] IApplicationContext#applicationRunning needs
> to be called on the main thread?!?
> Sent by: [email protected]
>
> ------------------------------------------------------------------------
>
>
>
> Hi,
>
> I never got an answer to this, I would really appreciate any pointers.
>
> Tom
>
> On 31.10.13 16:39, Tom Schindl wrote:
>> Hi,
>>
>> After having debugged now for some hours why the native splash screen in
>> JavaFX-OSGi-Applications is not take down when
>> IApplicationContext#applicationRunning is called [1] I found out that
>> this call does not work if your application is configured to be launched
>> on any-thread (in contrast to main).
>>
>> a) I think this needs to be documented in the JavaDoc
>> b) Is there a way to find out the main-thread and execute a call in it?
>> c) Should the splash code doing this synchronization itself?
>>
>> Tom
>>
>> [1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399
>> _______________________________________________
>> equinox-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>
> _______________________________________________
> equinox-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>
>
>
> _______________________________________________
> equinox-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

<<inline: graycol.gif>>

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to