Lisp HUG Maillist Archive

CreateDIBSection failure

Using LWW, I am repeatedly calling gp:make-image-from-port and placing the 
result in a variable (the same variable each time around).  After a while, I 
get a system error CreateDIBSection, not enough memory.

Does anyone know why this happens?  Does the previous image not get gc'ed?  Am 
I inadvertantly abusing Windows?

(At some point, I'm going to try to optimize this away, but I still want to 
understand the error).

tia
pt


Re: CreateDIBSection failure

I thing that any use of gp:image object must end with a call to
(gp:free-image port image).

Best 

Denis


Le 10/01/08 21:44, « [NOM] » <[ADRESSE]> a écrit :

> 
> Using LWW, I am repeatedly calling gp:make-image-from-port and placing the
> result in a variable (the same variable each time around).  After a while, I
> get a system error CreateDIBSection, not enough memory.
> 
> Does anyone know why this happens?  Does the previous image not get gc'ed?  Am
> I inadvertantly abusing Windows?
> 
> (At some point, I'm going to try to optimize this away, but I still want to
> understand the error).
> 
> tia
> pt
> 

-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@gmail.com
-------------------------------------------------------



Re: CreateDIBSection failure

On Thursday 10 January 2008 4:03:32 pm Denis Pousseur wrote:
> I thing that any use of gp:image object must end with a call to
> (gp:free-image port image).

Thanks.

Note to Lispworks - please include this call in the refman under "See Also" 
for make-image-from-port.  My brain missed this possibility, because it's not 
listed there :-).

pt


How to override a setf function with multiple values

I'd like to override (setf capi:pinboard-pane-size), but I don't see
how to write a defmethod to setf a function with multiple values.

Mitch


Re: CreateDIBSection failure

>Using LWW, I am repeatedly calling gp:make-image-from-port and placing the 
>result in a variable (the same variable each time around).  After a while, I 
>get a system error CreateDIBSection, not enough memory.

I had this problem. You need to gp:free-image when you're done with
the images.

Mitch


Updated at: 2020-12-10 08:44 UTC