Memory exhausted when exe is bigger than 20MB

This forum is for eXpress++ general support.
Message
Author
Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Memory exhausted when exe is bigger than 20MB

#21 Post by Victorio »

Jimmy, about converting code page, I have a lot of text (ascii) files coded in DOS 852 and also Win1254 code page, in some cases also in one txt file is mixed both cp.
When I do full text search in this files I must detect code page and then decode to Win1250 when need, or remove diacritics to found text that can be with or without code page.
Also when I do generate PDF od XLS from this data I must convert it when are in DOS 852.
But I will look what you advice to use UTF8

Also I can work on divide PRG files to smaller, because sometimes it is hard searching something in it.

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Memory exhausted when exe is bigger than 20MB

#22 Post by Auge_Ohr »

Victorio wrote: Mon Nov 09, 2020 5:26 am Also when I do generate PDF od XLS from this data I must convert it when are in DOS 852.
But I will look what you advice to use UTF8
when install ADO you can direct read/write XLSx with HBFM
Victorio wrote: Mon Nov 09, 2020 5:26 am Also I can work on divide PRG files to smaller, because sometimes it is hard searching something in it.
did you have e a Cross-Reference of your Function / Procedure :?:
did you use MEMVAR "over all" *.PRG :?:

i just can give you same Tip as i told Eugene : split your Source into "one Function -> one PRG"
i gave Eugene this Code to split Aidos
MAKEFUN.ZIP
(1.57 KiB) Downloaded 474 times
after generate 795 *.PRG i use CLICK to analyze it and generate Header for each *.PRG and a Cross-Reference.

each Variable in a PRG must be declare. i recommend LOCAL and PRIVATE/ PUBLIC must be declare as MEMVAR "on Top of PRG"

create a *.XPJ for all *.PRG
add missing LIBs
greetings by OHR
Jimmy

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Memory exhausted when exe is bigger than 20MB

#23 Post by skiman »

Jimmy,
split your Source into "one Function -> one PRG"
You must be kidding? ;)
Best regards,

Chris.
www.aboservice.be

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Memory exhausted when exe is bigger than 20MB

#24 Post by Victorio »

Jimmy, this can be not wrong advice , once I decompiled one old Foxpro application, and decompiler make me many many PRG files, one prg = one function . I do not know if original source was same or only decompiler generate it.
But it will be very coplicate to have overview in that source.
It is true, i have mess in my source, not all variables are defined as local, (undefined), and you have true, i have not defined PUBLIC variables as MEMVAR,
this poss many warnings when compiling (because i disable warnings :think: )

I will try input MEMVAR for all PUBLIC and PRIVATE , and test compiling. many thanks for you.

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Memory exhausted when exe is bigger than 20MB

#25 Post by Auge_Ohr »

skiman wrote: Tue Nov 10, 2020 1:19 am
split your Source into "one Function -> one PRG"
You must be kidding? ;)
NO ... that is "only" 1st Step.

every Function must be documented so i write a Header (by CLICK)
after run CLICK to generate Cross-Reference you can move all Function/Procedure which is "called from" once to other *.PRG

i understand when People have Problem "to search" when have 795 *.PRG ... while have and no Cross-Reference :naughty:
so write "your Code" that "other" People can work with it :!:

p.s. i most use CLASS Code so all Method, Property and Events are in same PRG
greetings by OHR
Jimmy

Post Reply