The simple test crashes wine. And i think many other commands in constructor A() may crash wine.
test.cpp:
#include <windows.h> #include <stdio.h>
class A { public: A(); };
A::A() { LoadLibrary("user32.dll"); // all ok user32.dll is present }
A a;
int WinMain(HINSTANCE hInst, HINSTANCE, LPSTR szCmdLine, int nCmdShow) { return 0; }
Le mer 29/10/2003 à 09:02, flyker a écrit :
The simple test crashes wine. And i think many other commands in constructor A() may crash wine.
Huh? Works fine here cross-compiled with mingw. Even added 2 printf (one to the constructor, the other in WinMain), and the constructor one is called first (as it should be).
Vincent
Vincent Béron wrote:
Huh? Works fine here cross-compiled with mingw. Even added 2 printf (one to the constructor, the other in WinMain), and the constructor one is called first (as it should be).
Vincent
RedHat 9.0, gcc and winelib. Of course constructor first.