RE: [Ikvm-developers] WFC classes
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2005-11-01 18:20:48
|
Lisbeth Kellogg wrote: > Windows has this overly-elaborate apartment threading model=20 > to overcome the fact that Windows using the Intel processor doesn't=20 > provide hardware memory protection. This is incorrect. Apartment threading exists to support COM components that are single threaded, it has nothing to do with any limitation in Windows' threading support or with the Intel architecture. > My question is how do threads in IKVM interact with the Windows > apartment threading model? IKVM uses the .NET threading model. The main method of IKVM has the [STAThread] attribute and by default IKVMC will add this attribute to the main method of any .exe it creates, you can use the IKVMC option -apartment:[sta|mta|none] to control this. Regards, Jeroen |