linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] ortp - windows shared memory


From: Simon Morlat
Subject: Re: [Linphone-developers] ortp - windows shared memory
Date: Mon, 05 Sep 2011 22:09:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13

Hi Raust,

Hum, I'm wondering how useful is this dll_entry.c file. It was contributed a long time ago. Other libraries (liblinphone, mediastreamer2) don't have this DllMain and work very well without it. Can you try to remove it from compilation ?

Simon

On 29/08/2011 17:20, Raust Tamatea wrote:
Hello,
I think there is a problem with the ortp library running under Windows.

I've created a windows service that start the ortp dll. Then an executable also try to load the dll. At this point the application crash because, the ortp have exited. The problem is in the file dll_entry.c. In the DllMain() function, the function CreateFileMapping() tries to create a shared memory but return a NULL pointer with the system error code 0x5 : ERROR_ACCESS_DENIED

It seems that a program can't access the shared memory if it have been created by a service running in a different session.

I don't know what is the best solution but MSDN explain that we have to configure the 2nd parameter (SECURITY_ATTRIBUTES) of the function CreateFileMapping(). To do this, I've used the function CreateMyDACL that can be found here :
http://msdn.microsoft.com/en-us/library/ms717798(VS.85).aspx

Any idea if I'm doing things correctly ?
On my system, everything seems to work now.

Regards.

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]