Re: Problem Accessing Shared Objects [message #58070 is a reply to message #58003] |
Thu, 10 January 2008 14:27  |
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.")
|
|
|