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 
Return to the default flat view Create a new topic Submit Reply
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.")
[Message index]
 
Read Message
Read Message
Read Message
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: Sat Oct 11 22:10:41 PDT 2025

Total time taken to generate the page: 2.07803 seconds