Catching memory shortage with WINDOW,/FREE,/PIXMAP [message #5373] |
Thu, 30 November 1995 00:00 |
gga
Messages: 2 Registered: March 1994
|
Junior Member |
|
|
Under SunOS 4.1.2 (sun4c) using idl 3.6.1a the idl session is abruptly terminated
when you attempt to do (example):
WINDOW,/FREE,/PIXMAP,xsize=1000,ysize=1000
and you have not enough memory to allocate the pixmap.
You get the message:
> % WINDOW: Unable to create X windows pixmap
> (BadAlloc).
What is the most efficient method to catch this situation within your procedure?
Thanks for helps,
--
Gianmario
+-----------------------------------+----------------------- ------------+
| Gianmario Galli | Internet: gga@otl.sma.ch |
| Osservatorio Ticinese | voice: +41 (91) 7526-315 |
| Istituto Svizzero di Meteorologia | fax: +41 (91) 7526-310 |
| Via ai Monti della Trinita` 146 | |
| CH-6605 LOCARNO-MONTI | |
+-----------------------------------+----------------------- ------------+
|
|
|