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

Home » Public Forums » archive » BUG: How to crash IDL using !null
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
BUG: How to crash IDL using !null [message #75242] Sat, 19 February 2011 21:48
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
Here's a serious crash I found in IDL 8.0.1 (Mac) {not tested on other
platforms yet} having to do with !null as an array index in a
structure field that happens to be an array.

THIS WORKS NORMALLY:

a = fltarr(10)
w = where(a EQ 99, /null) ;--- here w will be !null
a[w] = 1. ;--- these two are interchangeable since w is !null
a[!null] = 1.

THIS CRASHES IDL:

a = {b:fltarr(10)} ;--- create a structure with an array
w = where(a.b EQ 99, /null) ;--- here w will be !null
print, w ;--- show us that w is !null
a.b[w] = 1 ;--- here it crashes for me.
a.b[!null] = 1 ;--- this equivalent statement also crashes.

I haven't yet tried this with all forms of lists and hashes, pointers
etc.
Anyone have any ideas besides, "Don't do that."

M.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: More cgplot, ps_start, ps_end problems
Next Topic: Music production, Anyone?!

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

Current Time: Wed Oct 08 17:40:13 PDT 2025

Total time taken to generate the page: 0.00646 seconds