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

Home » Public Forums » archive » Re: Syntax for R. Franks extproc_define() in IDL 6.1
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: Syntax for R. Franks extproc_define() in IDL 6.1 [message #43736 is a reply to message #43735] Fri, 22 April 2005 14:39 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Fri, 22 Apr 2005 12:58:10 -0700, darmstr wrote:

> OK, nobody attempted my first question about using the extproc_define()
> procedure on the Tektronix scope - not specific enough I suppose. I
> think I've narrowed it down a bit as I'm now beyond the
> "crashes-IDL-everytime-I-try-it" stage. The problem may be a simple
> matter of correct syntax, but I'm not sure. If I enter
>
> result=EXTPROC_DEFINE("mysin","msvcrt.dll","sin","d(d) ",/CDECL)
>
> exactly as shown from the examples in the readme file at IDL's command
> prompt, IDL crashes. If I'm doing something totally stupid, ridicule is
> perfectly acceptable, as long as I get things to work in the end.
>
> For whatever it's worth, here are a few other variants and their
> results:
>
> IDL> test=EXTPROC_DEFINE(mysin,'msvcrt.dll',sin,d(d),/CDECL)
> % Variable is undefined: D. (no surprise here)
> % Execution halted at: $MAIN$
>
> IDL> test=EXTPROC_DEFINE(mysin,'msvcrt.dll',sin,'d(d)',/CDECL)
> % Internal error: bad param in IDL_KWCleanup.
> % Execution halted at: $MAIN$
>
> Pretty much any other way one can enter the above - using single
> quotes, double quotes, combinations of ' and ", variables predefined as
> strings (e.g., then enter: err =
> EXTPROC_DEFINE(idlname,dllfilename,dllfuncname,funcsig)[,/CD ECL]), or
> whatever else, crashes IDL.
>
> Any ideas?

Did you rebuild the libraries from the source or just try to use the
pre-compiled binaries?

I rebuilt the libraries and the above "mysin" example works ok.

The binaries are pretty old. It looks like they were built against IDL
5.2.

The probable cause of your problems is that the definition of IDL_STRING
changed between IDL 5.2 and now. I also tried running the precompiled
binaries under a debugger. I'm not certain, but it looks like the crash I
saw occured when the lib was dealing with a string, and that would explain
things.

I think you'll have better luck if you rebuild the libraries.

Karl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: timers without widgets
Next Topic: Re: NaN problems

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

Current Time: Mon Dec 01 03:12:48 PST 2025

Total time taken to generate the page: 0.63651 seconds