Out of Memory Error
Dear all , I am facing in problem during assigning bmp file to picturebox in vb.net ,it is that 'Out of memory' exception generating.
Note that after every periodic time bmp file is continously assigning to picturebox.
Windows Forum
Dear all , I am facing in problem during assigning bmp file to picturebox in vb.net ,it is that 'Out of memory' exception generating.
Note that after every periodic time bmp file is continously assigning to picturebox.
by abhijeetfarkande Accepted solution
by bfilmfan Accepted solution
How much memory is available?
Use Task manager to see that information.
You may well be out of memory.
by tony hopkinson Accepted solution
You are loading a picture into memory, attaching it to the picturebox.
Loading another picture into memory, attaching it to the picture box.
Loading another.......
Eventually you are out of memory.
When you assign the bmp to the picture box, it simply points to the new one, and leaves the old one hanging about, until the application closes.
Before you assign the new one, you need to explicitly dispose of any existing one in the picture box, given of course it's not used elsewhere.
This discussion is closed to new replies.
Sort by Trending