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

Home » Public Forums » archive » Re: Problem addressing arrays from C routines running OSF
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Problem addressing arrays from C routines running OSF [message #5653] Wed, 31 January 1996 00:00
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
What problem do you get? Wrong values returned? Code crashes?
An example of where it goes wrong would be useful.

Tim
Re: Problem addressing arrays from C routines running OSF [message #5654 is a reply to message #5653] Wed, 31 January 1996 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <310E41A5.547F@fys.ku.dk>, Stubbe Faurschou Hviid <stubbe@fys.ku.dk>
writes:

> I am writing a program which have to access some routines writen
> i C.
> ...
>
> 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?

I have been using external C routines on OSF/1 (a.k.a. Digital Unix) from IDL
with no problem. These routines access arrays in the same way you describe.
These same C routines also work fine with IDL under Solaris
and Irix. I don't seem to have any problem.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to draw a line on an image?
Next Topic: Looking for IDL neural net routines

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

Current Time: Wed Oct 08 17:12:13 PDT 2025

Total time taken to generate the page: 0.00465 seconds