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

Home » Public Forums » archive » Re: DLM error
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
Re: DLM error [message #43351] Fri, 08 April 2005 05:20 Go to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Brad,
if your DLM routine has keywords, you should be calling IDL_KWFree just
before the routine returns. If you don't, unexpected things may happen, even
though the IDL API tries to be forgiving at time.

Haje



<b_gom@hotmail.com> wrote in message
news:1112912556.805285.294960@z14g2000cwz.googlegroups.com.. .
> Hello any DLM experts,
>
> Does anybody know what the following error means?
> % Internal error: IDL_KWFree() bad nesting.
>
> I'm obviously doing something wrong in handling keywords, but what
> should I be looking for? I don't explicitly call IDL_KWFree()..
>
> Thanks
>
> Brad
>
Re: DLM error [message #43355 is a reply to message #43351] Thu, 07 April 2005 19:52 Go to previous messageGo to next message
Randall  Skelton is currently offline  Randall Skelton
Messages: 31
Registered: October 2004
Member
I cannot recall seeing that particular message... can you post a small
example of your C code that shows what you are doing? You can take a
look at the mechanisms I use for passing keywords in some of my DLMs
at:

http://brutus.uwaterloo.ca/~skelton/idlcode.php

Cheers,
Randall
Re: DLM error [message #43446 is a reply to message #43351] Fri, 08 April 2005 09:35 Go to previous message
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
Thanks, everyone, for the input. Of course, the answer to my question
'Why am I getting a IDL_KWFree() error when I'm not calling
IDLKWFree()?' is that I -should- be calling IDL_KW_FREE.

It turns out I had mistakenly copied in some code from the old API, and
was using IDL_KWCleanup instead..

Brad


Haje Korth wrote:
> Brad,
> if your DLM routine has keywords, you should be calling IDL_KWFree
just
> before the routine returns. If you don't, unexpected things may
happen, even
> though the IDL API tries to be forgiving at time.
>
> Haje
>
>
>
> <b_gom@hotmail.com> wrote in message
> news:1112912556.805285.294960@z14g2000cwz.googlegroups.com.. .
>> Hello any DLM experts,
>>
>> Does anybody know what the following error means?
>> % Internal error: IDL_KWFree() bad nesting.
>>
>> I'm obviously doing something wrong in handling keywords, but what
>> should I be looking for? I don't explicitly call IDL_KWFree()..
>>
>> Thanks
>>
>> Brad
>>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: slicer3 for a series of plots
Next Topic: raster to vector conversion

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

Current Time: Wed Oct 08 15:33:33 PDT 2025

Total time taken to generate the page: 0.00563 seconds