Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Memory and Pictureboxes - Error 480

Status
Not open for further replies.

wtlebo13

Programmer
Dec 11, 2002
5
US
I am writting an application that creates large images in a picture box. At a certain picture box size I get the error "Can't create AutoRedraw image" for the ".Image" property of a PictureBox.
When I push the program to its limits and save the resulting bitmap, the file size is about 35 meg. I know my computer can open bitmaps bigger than this in other programs so why can't VB pictureboxes read it?

I am trying to access the picture pixel by pixel to make some alterations to it. Any suggestions?

(The picture box is set to visible = false, and AutoRedraw = false)
 
Hi w,

You tried search engine with "error 480" to search on?

Regards,

Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience."
 
Also, i don't need to be able to display this large image in a picturebox, i just want to save the bitmap to disk.
 
I don't know what the actual size limitation is for a picturebox... let me ask you a few questions and see if we can hammer this out. I've done a little work with pictureboxes, but I've never run out of memory or seen this error you are getting.

How much memory do you have?

You might be running out of CGI memory. If this is true, you might be able to allocate more resources and prevent the problem. I'm thinking there is an API call to do this, but we'll have to do more research to find out.

If you already solved this problem, please post the details, you've sparked my interest!

Tuna



 
I actually have this error also but only when running on a win98 system. I have never seen it on Win 2000. My picture boxes aren't that big but it's a combination of several picture boxes that seem to trigger this error.
 
I'm still researching this one... I'll get back to you soon...

Tuna
 
Alright,
Someone handed me some code that allows me to save my array of RGB values directly to a binary file.
this was perfect for my applicaztion since i don't need to actually see the graphic when running it.

I only have 128 meg RAM on my PC and the final size of the binary file was 80 meg. so when running the VB code i had this array of pixel values and a picturebox open at once, and it could not handle it i suppose.

the code is posted in a thread on under my same name.
 
wtlebo13 and Umbrella need to talk... I think they are doing similar things... Tuna - It's fat free until you add the Mayo!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top