"Steinar Herland" steinar.herland@gecko.no writes:
When I run this on Windows (.NET) it prints out the module-handle. If I run it on linux using mono, I get:
err:heap:HEAP_GetPtr Invalid heap 00000000! GetModuleHandle(null): 0
You probably simply linked your Unix app to the wine dlls. You have to use winebuild to build a Winelib app to have all initialization be done properly.