Out of memory ???

chehmerroy
02-02-2006, 12:57 AM
hello,

I have a problem to work with the method paintpicture on picturebox.
when i paint a lot of things on the picturebox, i am getting this error.
I can change the autoredraw to FALSE but then i cant see my painting.
there is another solution for that ? there is something to release the batch memory that give me this error (like when i close the runtime, the batch memory released!) ? :confused: :confused: :confused:

thx for helping...

loquin
02-02-2006, 01:29 PM
Unless you show us the code, we would be making wild guesses.

chehmerroy
02-02-2006, 06:11 PM
I cant show u the code, its too long,
in a shortly :

i m making a paintpicture on a pictureboxs a lot of time ...
for example i painting a 48 borcodes on 200 pages.
and after that i want to printing them on the printer.
i need to preserve the pages for preview before the printing.
at the middle of the execute, the project give me error on "out of memory".
if i close the project, the memory cleared and i can do it again from the begining. if someone know how to clean the batch memory that accumulated, i will be very intresting to know.
(when i make less then 100 pages, the project dont stop on "out of memory"... )

thx...

Flyguy
02-03-2006, 02:28 AM
It's sounds simple but you need more phyiscal memory or you have to come up with a method that not all 200 pages are generated at the same time.
So only render the page to preview that's needed.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum