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

Home » Public Forums » archive » URGENT: IDL_STRING variable in calling C from IDL when update from IDL5.4 to 5.6
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: URGENT: IDL_STRING variable in calling C from IDL when update from IDL5.4 to 5.6 [message #37116 is a reply to message #37019] Fri, 21 November 2003 02:13 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Xiaoying Jin wrote:
> Hi, there,
>
> I am building program that calls C from IDL by DLM. In IDL, the
> function passed only one parameter that is a string, such as
> 'test.txt'. In C, use argv[0]->value.str.s to read the string out.
> In IDL 5.4, the program works well.
>
> I updated IDL from 5.4 to 5.6, the program is dead. I debug the
> program and found that when I use IDL5.4 to debug, the
> argv[0]->value.str.s has the right input: 'test.txt'. However, when I
> use IDL5.6 to debug, the argv[0]->value.str.s is NULL.
>
> How can this happen? Is this a bug in IDL5.6 or RSI changed something
> about the IDL_string strucure? I test the program in IDL6.0, the same
> error happened.
>
> Any help will be appreciated,
>
> Jin

Yes, they changed the length field slen from short to IDL_STRING_SLEN_T
(which is currently int) so the structure changed. I think it's documented
in the release notes.

You need to recompile your C code using the header files from IDL 5.6.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem about allocate memory
Next Topic: Re: Truetype fonts

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

Current Time: Thu Oct 09 02:59:44 PDT 2025

Total time taken to generate the page: 1.68207 seconds