Page 1 of 1

Low memory

PostPosted: Mon Jan 30, 2006 4:57 pm
by Ehab Samir Aziz
Sometimes I should close many applications though my program is too small , and sometimes my programs issues can not create dialog box due to lack of memory ?
What should I do to avoid errors related to the memory ?

Re: Low memory

PostPosted: Mon Jan 30, 2006 4:59 pm
by Enrico Maria Giordano
Double check if all your resources (font, bitmaps, pens, icons, etc.) are correctly released.

EMG

PostPosted: Tue Jan 31, 2006 3:40 pm
by Ehab Samir Aziz
I am using non-resources in my program . All bouttons,says,gets inside the source . I actually noticed that the program is Ok in PC and in another it failed to create source dialogs .
I noticed if I reduced the number of gets it works fine and successfully creates the dialog within the source .

PostPosted: Tue Jan 31, 2006 3:47 pm
by Enrico Maria Giordano
What I meant was: if you have in your source code

DEFINE FONT oFont ...

check that there is

RELEASE FONT oFont

or

oFont:End()

too and similar.

EMG

PostPosted: Tue Jan 31, 2006 5:20 pm
by Antonio Linares
Ehab,

Thats a FW for Clipper (16 bits) known issue. You have to increase the heapsize value in your Blinker LNK file. Increase it in 500 bytes steps until there is no error.