Jean-Paul Le Pape

I have issues with Shared Memory On the i.MX53 QSB

Discussion created by Jean-Paul Le Pape on Jan 18, 2012

Hello,

 I have issues using shared memory on i.MX53. I have two applications communicating together via shared memory. When I boot the system and I don’t start Xwindows and run the two applications I can have them communicate. But If I start Xwindows and I use xterm to run my applications they execute without any problem. I’m wondering what service Xwindows is activating to have the shared memory accessible? Does anybody know what may go on?

 

I get these outputs When I run the command:   ipcs –m  

 

a)      This is what I get when it doesn’t work (running from linux Console):

 

---------------------------------------                Shared Memory Segments          ------------------------------------------

Key                  shmid          owner          perms           bytes        nattch                   status

0x000005dc      0                 root              666             1024          1

 

b)      This is what I get when it works (running from Xwindows):

 

---------------------------------------                Shared Memory Segments          ------------------------------------------

Key                  shmid          owner          perms           bytes        nattch                   status

0x000005dc      163840         root             666               1024         2

 

 

 

 

Thanks for your help,

:-)

Outcomes