1. loadBitmapfromfile
hi,
i keep having a problem with displaying DIBs
before i just created a bitmap and then setbitmap ...
this worked 100% ok but it was very,very memory consuming
(2meg for 1pic, about 50 pics (1024x768 truecolor) = 100 MB !!)
then i changed my program to only load the bitmap when the tabcontrol was
active (this way only 2 bmp's are hold in memory , the current and the
previous , so it uses max 4MB ram)
xx=loadbitmapfromfile
then display bmp
afterwards deleteobject(xx) !!! freeing up the memory (handle)
Now my program hangs after about 10 minutes , not at startup !!
it then gives me a Win32lib Warning: unable to create DIB !!!
and crashes (without trace)
what could be wrong ??
please help , (i'll send you the code if needed ,about 2000 lines.)
Renzo Beggia