General Help regarding HMG, Compilation, Linking, Samples
Moderator: Rathinagiri
-
AUGE_OHR
- Posts: 2060
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Post
by AUGE_OHR »
hi,
i do load a big SDF into EDITBOX using
it does work but when exit and try another big SDF (> 220000 lines) it crash
Question : is there a Way to "free Memory" which was just before
have fun
Jimmy
-
Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
-
Contact:
Post
by Rathinagiri »
Have you tried releasing the control and redefine it?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
-
AUGE_OHR
- Posts: 2060
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Post
by AUGE_OHR »
hi,
i have close Windows and open it again.
happens on 32 Bit OS
have fun
Jimmy
-
salamandra
- Posts: 311
- Joined: Thu Jul 31, 2008 8:33 pm
- DBs Used: DBF, MySQL, SQL
- Location: Brazil
Post
by salamandra »
AUGE_OHR wrote: ↑Mon Aug 03, 2020 6:14 pm
hi,
i have close Windows and open it again.
happens on 32 Bit OS
Did you try RELEASE MEMORY ??
Best regards,
Salamandra, Brazil.
There is one time in which is crucial awakening. That time is now. ( Buddha )
-
AUGE_OHR
- Posts: 2060
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Post
by AUGE_OHR »
hi,
salamandra wrote: ↑Tue Aug 04, 2020 5:53 pm
Did you try RELEASE MEMORY ??
no ... but i will try it, THX
have fun
Jimmy
-
salamandra
- Posts: 311
- Joined: Thu Jul 31, 2008 8:33 pm
- DBs Used: DBF, MySQL, SQL
- Location: Brazil
Post
by salamandra »
AUGE_OHR wrote: ↑Tue Aug 04, 2020 5:58 pm
hi,
salamandra wrote: ↑Tue Aug 04, 2020 5:53 pm
Did you try RELEASE MEMORY ??
no ... but i will try it, THX
AFAIK this error means that used memory can´t be discarded.
Perhaps you can use a
Timer Control in your form to execute a
RELEASE MEMORY.
best regards,
Salamandra, Brazil
There is one time in which is crucial awakening. That time is now. ( Buddha )
-
Carlos Britos
- Posts: 245
- Joined: Sat Aug 02, 2008 5:03 pm
Post
by Carlos Britos »
Hi,
What about the bytes settled to editbox control ?
AUGE_OHR wrote: ↑Mon Aug 03, 2020 4:06 am
hi,
i do load a big SDF into EDITBOX using
it does work but when exit and try another big SDF (> 220000 lines) it crash
Question : is there a Way to "free Memory" which was just before
Regards/Saludos, Carlos (bcd12a)
-
AUGE_OHR
- Posts: 2060
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Post
by AUGE_OHR »
Carlos Britos wrote: ↑Tue Aug 04, 2020 8:50 pm
What about the bytes settled to editbox control ?
now i direct assign it to EDITBOX VALUE ... hm ...
ok, i will try to write a "RELEASE" function and assign NIL
have fun
Jimmy
-
AUGE_OHR
- Posts: 2060
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Post
by AUGE_OHR »
hi,
YES, that seems to work now, THX
Code: Select all
PROCEDURE TXT_Edit( cFile, lEdit )
LOCAL cMemo := HB_MEMOREAD( cFile )
DEFINE WINDOW TXTEdit ;
...
ON RELEASE TXTRelease() ;
DEFINE EDITBOX TXTCtrl
...
VALUE cMemo
END EDITBOX
END WINDOW
ACTIVATE WINDOW TXTEdit
cMemo := " "
RETURN
Code: Select all
STATIC PROCEDURE TXTRelease()
TXTEdit.TXTCtrl.Value := " "
RETURN
have fun
Jimmy