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

Home » Public Forums » archive » Re: Can't create pixmap
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Can't create pixmap [message #14701 is a reply to message #14690] Mon, 22 March 1999 00:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Phil Aldis wrote:
>
> 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


hmmm... just a thought: could it be that you are using integer values at
some point where there should be long's ? Then IDL would try to create a
pixmap with a negative number of elements...
This has happened to me a few times (although not with pixmaps), and you
can avoid it by explicitely "declaring" your variables as e.g. N=40000L
.

Martin.

--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Can't position modal compound widget (such as cw_form)
Next Topic: Re: Getting File creation data/time

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

Current Time: Thu Oct 09 23:05:33 PDT 2025

Total time taken to generate the page: 1.19990 seconds