comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Shared memory and IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Shared memory and IDL [message #29283] Tue, 12 February 2002 02:33 Go to previous message
Gert Van de Wouwer is currently offline  Gert Van de Wouwer
Messages: 21
Registered: January 2002
Junior Member
"Jean-Claude Maitre" <jeanclaude.maitre@med.ge.com> wrote in message
news:b1857f9.0202110331.428b6f46@posting.google.com...
> I would like to use shared memory in order to pass images from an
> application written in C and IDL.Does anybody know how to retrieve in
> IDL a segment of shared memory allocated in C ?
>
> Thanks


Hi,

the answers to my post 'Matrox Framegrabber Interface' may also be of
interest to you.

I think that if you want to allocate memory in C and continue to use this in
IDL, you need to use something like IDL_MakeTempArray. This doesnt work if
you use call_external (correct ne if i am wrong), so you need the
linkimage-method. The documentation in edg.pdf is'nt too complete...

I use the call external way in the following way:
in IDL:
image = bytarr(512,512)
call_external(mydll,...,image)

in C++
IDL_LONG IDL_CDECL myDll( int argc, void* argv[])
{
BYTE* pbImIn = (BYTE*)argv[0];
/* use pBImIn to process, or fill image */
...

}


regards,


Gert
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Multiple surface colors in the Z buffer?
Next Topic: Callable IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:36:29 PDT 2025

Total time taken to generate the page: 1.51977 seconds