[Top][All Lists]

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

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

From: Raust Tamatea
Subject: Re: [Linphone-developers] ortp - windows shared memory
Date: Tue, 06 Sep 2011 13:18:59 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1

I've removed the file from the projet and it seems to work correctly when using services and applications together.

Thanks for your help :)


Le lundi 5 septembre 2011 22:09:37, Simon Morlat a écrit :
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 ?


On 29/08/2011 17:20, Raust Tamatea wrote:
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.


Linphone-developers mailing list

reply via email to

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