[Mono-list] kerne32 CreateSemaphore

Maser, Dan Dan.Maser at inin.com
Tue Jan 13 14:01:20 EST 2009


  You can't p/invoke to windows DLLs when you're running on linux.  I doubt you'll get around making a conditionally compiled section for each OS, unless you can do everything you need with on managed calls.  You can choose "where" to put the OS-specific abstraction stuff, but not "if". 

-----Original Message-----
From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of rg1
Sent: Tuesday, January 13, 2009 1:01 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] kerne32 CreateSemaphore



On Linux, I am getting an EntryPointNotFoundException trying to call the
CreateSemaphore function that is part of kernel32.dll. (On Windows,
naturally all works fine)


Does anyone know of a way around this on Linux without a tremendous amount
of re-writing a bunch of my code.

Thank you
-- 
View this message in context: http://www.nabble.com/kerne32-CreateSemaphore-tp21442221p21442221.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list




More information about the Mono-list mailing list