FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Low memory
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Low memory
Posted: Mon Jan 30, 2006 04:57 PM

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 ?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Low memory
Posted: Mon Jan 30, 2006 04:59 PM

Double check if all your resources (font, bitmaps, pens, icons, etc.) are correctly released.

EMG

Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Low memory
Posted: Tue Jan 31, 2006 03:40 PM

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 .

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Low memory
Posted: Tue Jan 31, 2006 03:47 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Low memory
Posted: Tue Jan 31, 2006 05:20 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion