use same library, other result currupt..
- From: "fallleaf" <fallleaf@xxxxxxxxx>
- Date: 26 May 2006 23:26:09 -0700
i make library, this library function is create circula-queue in shared
memory and attach, queue put, queue get, etc...
sample program make,
1 sample program use library, test make queue in shared memory.
2 sample program use library, test attach queue in shared memory which
created 1 sample program.
result is success.
Then A program use this library, and B program use this library.
A program is create queue in shared memory use library.
B program is attach queue in shared memory which created by A program.
result is shmget fail. - fail reason(Invalid parameter)
so,
ipcs -a typing, and then, not same SEGSZ.
library is always make same size queue in shared memory.
what can i solve this problem??? T^T
.
- Follow-Ups:
- Re: use same library, other result currupt..
- From: Ian Collins
- Re: use same library, other result currupt..
- Prev by Date: Re: Taking a test for a job
- Next by Date: Re: use same library, other result currupt..
- Previous by thread: x=(x=5,11)
- Next by thread: Re: use same library, other result currupt..
- Index(es):
Relevant Pages
|