[Mono-list] kerne32 CreateSemaphore

Alan McGovern alan.mcgovern at gmail.com
Tue Jan 13 14:58:52 EST 2009


Why are you P/Invoking to gain access to something that is already provided?

http://msdn.microsoft.com/en-us/library/system.threading.semaphore.aspx

Alan.

On Tue, Jan 13, 2009 at 7:01 PM, Maser, Dan <Dan.Maser at inin.com> wrote:

>
>  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
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090113/c3d962d6/attachment.html 


More information about the Mono-list mailing list