[Top][All Lists]

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

[Linphone-developers] ortp - windows shared memory

From: Raust Tamatea
Subject: [Linphone-developers] ortp - windows shared memory
Date: Mon, 29 Aug 2011 17:20:41 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0

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 :

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


reply via email to

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