I wrote a drawing tool program by using vb6.
I scans a big house plan (A3 size) and load many little pictures as the element of the house.
The user can manipulate the house plan and saved it back.
I used normal vb6 method to load and save the picture, by using loadpicture and savepicture method. My problem is the saved picture is as large as 5 mb and the load picture requires very big amount of graphic memory and it will cause "out of memory" error whenever the computer doesn't have enough memory to start it. It takes up to 1 minute for a fast computer to load, and that is very slow.
Also I have a memory leak problem, although I have called loadpicture = "" whenever I want to "unload" picture from the picturebox whenever I close the form. I have close all the database recordset that I opened too.
I makes me need to restart my computer for every 3 times of the program executions because I will have out of memory problem for the 4th time.
Is there any third party program? or any suggestions to reduce the saved image size and to load the picture more efficiently?