[Mono-winforms-list] SWF question

Miguel de Icaza miguel@ximian.com
12 Nov 2003 23:19:59 -0500


> I think that CheckBox sample crashes due to some different problem.
> IMHO, the process looks like this:
> on first reference to Win32 class, loader tries to resolve class members
> (static external functions also) and attempts to load winnt.dll or
> "getprocaddress" of  wine_get_unix_file_name from kernel32.dll. This fails
> on
> Windows and you see warnings, but they do not stop the loading process.
> Only a call to a missing/unresolved function will break an application (you
> should see a
> stack trace and exception information).
> CheckBox doesn't call those functions. The functions from
> libwinnt.dll.so should be called only on Linux from static Win32 constructor
> to load and initialize Wine, wine_get_unix_file_name should be called only
> on
> Linux from FileDialog code to convert a Win32 filename to a Linux filename.

I was thinking that probably we could have the Mono runtime initialize
Wine if the executable type is `winexe'.   But that means that we have
to be more careful about actually using the -t: command line option.