Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT Main Thread calling into a COM MTA


I am not sure I understand your question. CreateWindow() does not created a thread.

The SWT UI thread is the main thread for java (where the apps main() method is called). It is created by the JVM. I believe COM is initialized in the SWT UI thread by calling OleInitialize() which makes its apartment STA.

Silenio



"J.T. -" <gisfromscratch@xxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

08/11/2009 06:16 PM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] SWT Main Thread calling into a COM MTA





Hi,

We have some heavy problems (deadlocks, crashes) developing on Windows XP using Eclipse RCP calling from the SWT UI Main Thread into a COM MTA. When we are calling from a none UI thread or the AWT Event Dispatch thread these problems doesn't occur.

How is this thread created natively?
Indirectly by calling CreateWindow(Ex) or just a CreateThread handle which gets messages by calling PostThreadMessage of the Win32 API?


Thanks in advance.


-> Für Fotos hier abdrücken _______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top