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

Home » Public Forums » archive » Can't create pixmap
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
Can't create pixmap [message #14707] Mon, 22 March 1999 00:00 Go to next message
philaldis is currently offline  philaldis
Messages: 32
Registered: March 1999
Member
Okay, now this is just silly

I'm fully aware that the message can't create pixmap means that you've
run out of memory. However this is never a message I get because my NT
machine seems to be able to cope with using ordinary memory and in
fact goes into page file space and if it runs out of that, well
windows doesn't like that.

However, I keep getting it and I could understand that if there was no
memory left however I'm getting it when I create pixmaps of certain
sizes. It's in an animation routine that the error occurs. It crashes
out of the program with 'can't create pixmap'. The size of pixmap is
210x230, or something like that. If I create a 200x200 pixmap or
500x500 pixmap it's okay but as soon as you get close to the 210x230
size it gives the previous error message.

What is going on and more importantly what can be done to stop it,
short of c not creating pixmaps of a certain size.

I'm running IDL 5.1.1 on an NT 4.0 machine.

Cheers,
Phil
Re: Can't create pixmap [message #14738 is a reply to message #14707] Thu, 25 March 1999 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Phil Aldis wrote:
>
> Below this message you will find some code which will see if the bug
> is repeatable on other machines. I've tried on both 5.1.1 and 5.2 on a
> NT PC. They both had the bug. I tried on a solaris workstation running
> 5.1.1 but that crashed because the systme had actually run out of
> memory. The code automatically detects if the bug is in evidence using
> error catching and tells you so. Just try it and post the results,
> I've just contacted RSI as well.
>
> It seems to me to be a very strange bug. I ran the bugtest prog on my
> 64 MB RAM machine with about 300MB of page file space. When the
> program crashed after about 600 loops, I created 2 windows which were
> (10000,1000) pixels big which used about 30-40MB, but no "unable to
> create pixmap". Truly Bizarre!
>
> The problem seems to be if you create windows of the same size, as a
> similar program with random sizes hit against genuine memory problems.
>
> Cheers,
> Phil Aldis

<very nice test procedure snipped>

Phil -

I ran your test routine on a Sparc 2 (Solaris 2.5) using IDL 5.1
and I eventually made it run out of memory, but I could not replicate
your problem.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help: mapping image
Next Topic: Strange Bug with numeric double constants

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

Current Time: Wed Oct 08 13:27:52 PDT 2025

Total time taken to generate the page: 0.02319 seconds