Re: use same library, other result currupt..



fallleaf wrote:
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

Try comp.unix.programmer and add some of your code, including the
parameters you are passing to shmget/shmat.

--
Ian Collins.
.



Relevant Pages

  • use same library, other result currupt..
    ... memory and attach, queue put, queue get, etc... ... sample program use library, test make queue in shared memory. ...
    (comp.lang.c)
  • Re: cgi concurrency approaches?
    ... Here is a brief page about System V IPC ... a python interface to System V IPC facilities, ... Use a dedicated Queue, and hold the counter value inside a single ... Store the value in pre-created shared memory partition, ...
    (comp.lang.python)
  • Re: QueueUserAPC and thread secuirty, a problem.
    ... could easily do (as we have a powerful propriteray concurrent shared heap ... We do allocate an arg struct from shared memory, populate it, adjust the ... process relative pointer and queue the APC to a dedicated thread. ... This is definitely an unusual use of APCs. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Raise exception in another process.
    ... We have solid reliable code that allows apps to send and queue work to other ... As you know APCs are queued by the OS inside non-paged kernel memory, ... to shared memory where an args struc is placed, ... an exception and pass a ptr or something. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: KMDF handling of internal IOCTLs
    ... I suspect it's the latter case, ... trying to attach the queue to your bus FDO. ...
    (microsoft.public.development.device.drivers)