[Mono-winforms-list] SWF with WineLib on Suse

Alexandre Pigolkine pigolkine@gmx.de
01 Jun 2003 22:13:48 +0200


Hello,

I have some progress in running SWF applications with WineLib
on Suse. Hope that this information will be useful.

I already wrote that SWF applications hang at call to
	NTDLL_LoadLibraryA ("user32.dll");

I tracked it down to 

opengl_handle = wine_dlopen(SONAME_LIBGL, RTLD_NOW|RTLD_GLOBAL, 
			NULL, 0); 
in graphics/x11drv/opengl.c.

applications hang at a call to dlopen("libGL.so.1", 258);

I tried to call dlopen from some other places (PROCESS_InitWine,
InitDllMain of x11drv). The result is the same.
May be this is connected to initialization sequence of GL libraries.
libGL depends on libXext and libX11 which get initialized
earlier (together with libx11drv.dll.so).

To check this, I changed initialization order by adding a line 
	dlopen("libGL.so.1", 1); 
to the mini_init(const char *filename) function and now applications
do not hang. 

This is not an appropriate solution, of course. I hope that we can 
find a better one.

And still, I have to start win32server manually before running
applications and WineLib does not paint menu nicely, etc.

Alexandre