libwine problem when calling GetModuleHandle(null) from C# on linux

Alexandre Julliard julliard at winehq.com
Thu Jul 18 20:11:45 CDT 2002


"Steinar Herland" <steinar.herland at 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.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list