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

Home » Public Forums » archive » Problem addressing arrays from C routines running OSF
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problem addressing arrays from C routines running OSF [message #5657] Tue, 30 January 1996 00:00 Go to previous message
Stubbe Faurschou Hvii is currently offline  Stubbe Faurschou Hvii
Messages: 2
Registered: January 1996
Junior Member
I am writing a program which have to access some routines writen
i C. These routines

have the form somewhat like this:

---- C -----

int routine(int argc, void *argv[])
{
short *ptr = (short *)argv[0];

// do som operations on the array addressed using <ptr>

return TRUE;
}

---- IDL -----
; array = intarr(512, 512);
function routine, array
return, call_external('routine.so', 'routine', array)
end


This method of addressing an array works under Solaris, SGI Irix
and Windows
but not under OSF/1 on a DEC alpha workstation.

I think that the problem is that IDL tries to send a 32 bit
pointer, and the
C program expects a 64 bit pointer ( a good way to create chaos
:-) )

Any suggestions on how to solve this problem?


------------------------------------------------------------ ----
----------------

SSSSS FFFFFFFF HH HH Stubbe
Faurschou Hviid
SSSSSSS FFFFFFFF HH HH University of
Copenhagen
SSS FF HH HH Niels Bohr
Institute
SSS FFFFF HHHHHHHH
Universitetsparken 5
SSS FFFFF HHHHHHHH DK-2100
Copenhagen O
SSSSSSS FF HH HH
SSSSS FF HH HH Email:
stubbe@fys.ku.dk
[Message index]
 
Read Message
Read Message
Previous Topic: BUG IN C_CORRELATE
Next Topic: Re: Job Offer: Dept. of Planetary Sciences, Univ. of Arizona

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

Current Time: Wed Oct 08 19:58:12 PDT 2025

Total time taken to generate the page: 0.00472 seconds