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

Home » Public Forums » archive » Problem Accessing Shared Objects
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
Problem Accessing Shared Objects [message #58003] Wed, 09 January 2008 13:56 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I had an occasion today to access a shared object library
on a UNIX machine. This worked correctly in IDL 6.3, but
completely crashed IDL 7 when I tried to access it today.

I've looked on my web page, and in the IDL newsgroup
archives for information, but have completely struck out.
And yet, I vaguely recall something about some kind of
header file in IDL changing in the transition from IDL 6.3
to 6.4, and need for re-compiling, etc. It's just not
coming in clearly.

We have tried re-compiling the SO, but we haven't yet
been successful in not crashing IDL. Am I dreaming, or
does someone else remember something about this?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Problem Accessing Shared Objects [message #58066 is a reply to message #58003] Fri, 11 January 2008 01:19 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
David Fanning wrote:

> David Fanning writes:
>
>> I had an occasion today to access a shared object library
>> on a UNIX machine. This worked correctly in IDL 6.3, but
>> completely crashed IDL 7 when I tried to access it today.
>>
>> I've looked on my web page, and in the IDL newsgroup
>> archives for information, but have completely struck out.
>> And yet, I vaguely recall something about some kind of
>> header file in IDL changing in the transition from IDL 6.3
>> to 6.4, and need for re-compiling, etc. It's just not
>> coming in clearly.
>>
>> We have tried re-compiling the SO, but we haven't yet
>> been successful in not crashing IDL. Am I dreaming, or
>> does someone else remember something about this?
>
> This turned out to be (who would have guessed!?) a
> programming error. And for years we have been lucky,
> I guess.
>
> Anyhow, in case anyone is following this, we weren't
> using the built-in IDL string handling functions.
> In our case, we had to change this code:
>
> gcs->gpd_filename.s = grid->gpd_filename;
> gcs->gpd_filename.slen = strlen(grid->gpd_filename);

From my dim and hazy memory, wasn't that the IDL 5 way of doing things? In IDL 5
you had to mess with the contents of the IDL_STRING structure directly.

I'm just off to check my old code to see if I still have any of those constructs
left...

--
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
Re: Problem Accessing Shared Objects [message #58070 is a reply to message #58003] Thu, 10 January 2008 14:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I had an occasion today to access a shared object library
> on a UNIX machine. This worked correctly in IDL 6.3, but
> completely crashed IDL 7 when I tried to access it today.
>
> I've looked on my web page, and in the IDL newsgroup
> archives for information, but have completely struck out.
> And yet, I vaguely recall something about some kind of
> header file in IDL changing in the transition from IDL 6.3
> to 6.4, and need for re-compiling, etc. It's just not
> coming in clearly.
>
> We have tried re-compiling the SO, but we haven't yet
> been successful in not crashing IDL. Am I dreaming, or
> does someone else remember something about this?

This turned out to be (who would have guessed!?) a
programming error. And for years we have been lucky,
I guess.

Anyhow, in case anyone is following this, we weren't
using the built-in IDL string handling functions.
In our case, we had to change this code:

gcs->gpd_filename.s = grid->gpd_filename;
gcs->gpd_filename.slen = strlen(grid->gpd_filename);

to this code.

IDL_StrStore(&(gcs->gpd_filename), grid->gpd_filename);

That appeared to solve our problem.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Windows/Linux reading binary data - sign problem
Next Topic: ESRI GRID in IDL

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

Current Time: Fri Oct 10 09:24:22 PDT 2025

Total time taken to generate the page: 0.32159 seconds