I have this little problem (at least I hope it is little).
My vb6 program behaves differently when I execute it with the execute button in vb6 and when I execute it by using the compiled .exe file.
I have a huge 2 picture boxes which loads 2 x 5 mb .png picture file.
I always use picturebox.picture = loadpicture() and clear the imagelist that I am using, everytime I unload the form.
It works fine when I execute it with the execute button in vb6, I can open and close it over and over again.
But when I execute it by using the compiled .exe file, I can open and close the program for 2-3 times, but it gives me the "out of memory" error when I finish. I dunno why it does it?
How can I clear the "used" memory when I exit the program/ form? so I can avoid this to happen? Maybe the memory from my video memory has not cleared properly :(
Also another thing.. I would like to compact the filesize of my .png file when I save it, how can I do it with the savepicture method? or with any other method? The picture size is a huge A3 size, but 5 mb is a killer for any video memory.
thanks.