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

Home » Public Forums » archive » Re: IDL Bug: NCOMPLEMENT keyword to where
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: IDL Bug: NCOMPLEMENT keyword to where [message #28030] Fri, 16 November 2001 15:58
hradilv.nospam is currently offline  hradilv.nospam
Messages: 19
Registered: November 2001
Junior Member
sparc sunos unix 5.4 also


On Fri, 16 Nov 2001 15:23:16 -0500, JD Smith
<jdsmith@astro.cornell.edu> wrote:

>
> I've found an ugly bug with the NCOMPLEMENT keyword to where(), first
> introduced in IDL v5.4.
>
> IDL> wh=where(1,NCOMPLEMENT=ncnt)
>
> causes a segfault, in v5.4 and v5.5, under Linux at least. It only
> occurs if NCOMPLEMENT is used, but the corresponding COMPLEMENT is not.
> A temporary workaround is always to specify COMPLEMENT, even if you
> don't need it.
>
> JD
Re: IDL Bug: NCOMPLEMENT keyword to where [message #28032 is a reply to message #28030] Fri, 16 November 2001 13:47 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
On the Mac, the following output is produced:

IDL> wh=where([1,2] eq 1) ; Works fine
IDL> wh=where([1,2] eq 1,NCOMPLEMENT=ncnt)
% Internal error: Bad variable type encountered in no_name_var().
% Execution halted at: $MAIN$

I guess, this confirms the bug.

Pavel

JD Smith wrote:
>
> I've found an ugly bug with the NCOMPLEMENT keyword to where(), first
> introduced in IDL v5.4.
>
> IDL> wh=where(1,NCOMPLEMENT=ncnt)
>
> causes a segfault, in v5.4 and v5.5, under Linux at least. It only
> occurs if NCOMPLEMENT is used, but the corresponding COMPLEMENT is not.
> A temporary workaround is always to specify COMPLEMENT, even if you
> don't need it.
>
> JD
Re: IDL Bug: NCOMPLEMENT keyword to where [message #28033 is a reply to message #28032] Fri, 16 November 2001 13:30 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith (jdsmith@astro.cornell.edu) writes:

> I've found an ugly bug with the NCOMPLEMENT keyword to where(), first
> introduced in IDL v5.4.
>
> IDL> wh=where(1,NCOMPLEMENT=ncnt)
>
> causes a segfault, in v5.4 and v5.5, under Linux at least.

Windows, too.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problem with gaussfit in IDL/v5.5
Next Topic: Re: TV and T3D?

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

Current Time: Wed Oct 08 11:34:47 PDT 2025

Total time taken to generate the page: 0.00613 seconds