#123 GDL-0.9pre6 InterpreterLoop: Exception: St9bad_alloc

closed
nobody
None
5
2007-12-07
2007-12-05
No

Using Fedora 8 with redhat's gdl-0.9pre6 on i686.

<http://oceancolor.gsfc.nasa.gov/DOCS/idl/utils/unmask.pro>
(attached)

is a simple function to convert a bitmap to a byte array:

GDL> a=unmask(254L)
GDL> print, a
0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0

but somtimes gives:

GDL> print, unmask(255)
% Compiled module: UNMASK.
% Compiled module: ISHFT.
InterpreterLoop: Exception: St9bad_alloc

GDL has allocated all the available memory!

The problem is not quite reproducible but fails most times.

Discussion

  • George N. White III

    unmask.pro

     
  • Joel Gales

    Joel Gales - 2007-12-07
    • status: open --> closed
     
  • Joel Gales

    Joel Gales - 2007-12-07

    Logged In: YES
    user_id=958613
    Originator: NO

    Fixed in CVS.

    Joel

     

Log in to post a comment.