Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] IApplicationContext#applicationRunning needs to be called on the main thread?!?

Well I tested on both - windows is my main problem as of today - so what
we'd need is someway to sync back to the main-thread.

I'll file bugs and the we can discuss there.

Tom

On 18.12.13 22:08, Thomas Watson wrote:
> 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
> 
> 
> Inactive hide details for Tom Schindl ---12/18/2013 03:00:00 PM---I've
> tested it on os-x, will open bugs. TomTom Schindl ---12/18/2013 03:00:00
> PM---I've tested it on os-x, will open bugs. Tom
> 
> From: Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
> To: equinox-dev@xxxxxxxxxxx,
> Date: 12/18/2013 03:00 PM
> Subject: Re: [equinox-dev] IApplicationContext#applicationRunning needs
> to be called on the main thread?!?
> Sent by: equinox-dev-bounces@xxxxxxxxxxx
> 
> ------------------------------------------------------------------------
> 
> 
> 
> 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 <tom.schindl@xxxxxxxxxxxxxxx>
>> To: equinox-dev@xxxxxxxxxxx,
>> Date: 12/18/2013 02:11 PM
>> Subject: Re: [equinox-dev] IApplicationContext#applicationRunning needs
>> to be called on the main thread?!?
>> Sent by: equinox-dev-bounces@xxxxxxxxxxx
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> 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
>>> equinox-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>>
>>
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>>
>>
>>
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
> 
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
> 
> 
> 
> 
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
> 



Back to the top