Memory exhausted when exe is bigger than 20MB

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

Re: Memory exhausted when exe is bigger than 20MB

#11 Post by Victorio »

We also have much bigger EXEs, so it must be something in the source code creating memory consumption during the compilation, like huge string constants, tons of vars or whatever. Take your problem to Alaska, Victorio!
Tom, it is true, I use many Public variables, arrays (for example for converting OEM/ANSI characters etc.)
First I will optimize source code, set undefined variables to Local etc, I have a pretty big mess in it. :oops:
When problem occur again, will write to Alaska.

Now I look taskmgr how memory use xpp workbench when compiling, and at one moment used 1,8GB !!!, is it normal ?

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Memory exhausted when exe is bigger than 20MB

#12 Post by Eugene Lutsenko »

skiman wrote: Thu Nov 05, 2020 12:56 am Hi,

Our application is currently an EXE of 65Mb. So I don't think the 20Mb. is a limit. The source code is divided in about 20 PRG files. I'm using 1.9 and Windows 10. I don't have any problems to compile.
Is it a single exe file of 65 MB or a lot?

User avatar
Tom
Posts: 1170
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Memory exhausted when exe is bigger than 20MB

#13 Post by Tom »

It can't be the EXE size. It's another limit, somewhere internal. Victorio, I used to have tons - thousands - of PUBLICs in my app, and that didn't cause any problems. IMHO, they don't take that much memory at compile time. Compilation is something very much different than running a program.

@Eugene: Just look at your "Program (x86)" folder - there should be much bigger EXEs in there. ;)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

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

Re: Memory exhausted when exe is bigger than 20MB

#14 Post by Victorio »

internal problem :think:
some times ago I had same problem, I think problem was with large PRG file with more than 100000 rows, then I divide it to smaller and helped.
but sometimes this not help .
I do not understand, how compiler and linker works, I mean, it use only first 4GB RAM block, (because 32bit), and when conventional RAM is occupied, then can be problem.

At first I must to find out, why my computer use 4 GB RAM, i suspect google chrome is a RAM :evil: eater

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

Re: Memory exhausted when exe is bigger than 20MB

#15 Post by skiman »

Hi,

@Eugene, yes this is one EXE file.
@Victorio, I just checked, the biggest PRG has 45.000 lines, most of the other are between 20-30.000 lines.
I have 48 PRG files, in total 11 Mb. source code.
I don't use a lot of public's, always local's.

I use many Public variables, arrays (for example for converting OEM/ANSI characters etc.)
Any reason why you do it this way? Isn't it possible to put it in a function that you can call?
Best regards,

Chris.
www.aboservice.be

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

Re: Memory exhausted when exe is bigger than 20MB

#16 Post by Auge_Ohr »

hi

i wonder why People have *.PRG > 10000 Lines ...
it is OK when have a CLASS with many Method but not for a Function / Procedure.

---

@Victorio : > for example for converting OEM/ANSI characters etc.

if you open DBF with "right" Codepage and use UFT8 you don´t need to "convert" anything

have a look at https://github.com/AugeOhr/HBFM (32/64 Bit)
navigate to DBF an press F3/f4 and than choose Codepage with F9
DBF_Codepage.JPG
DBF_Codepage.JPG (320.55 KiB) Viewed 9794 times
greetings by OHR
Jimmy

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Memory exhausted when exe is bigger than 20MB

#17 Post by Eugene Lutsenko »

skiman wrote: Thu Nov 05, 2020 12:56 am Hi,

Our application is currently an EXE of 65Mb. So I don't think the 20Mb. is a limit. The source code is divided in about 20 PRG files. I'm using 1.9 and Windows 10. I don't have any problems to compile.
I would be very happy if someone would compile the Eidos system. If I remove one large function from it, the entire system is compiled. But if you make a project with this function, only obj files are created, and exe files are not

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Memory exhausted when exe is bigger than 20MB

#18 Post by Eugene Lutsenko »

skiman wrote: Thu Nov 05, 2020 12:56 am Hi,

Our application is currently an EXE of 65Mb. So I don't think the 20Mb. is a limit. The source code is divided in about 20 PRG files. I'm using 1.9 and Windows 10. I don't have any problems to compile.
Hi, Chris! Share your experience! How can I do something similar with the Eidos system? I'm constantly having problems with Windows 10. In particular, in Boris's Xb2NET libraries.

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

Re: Memory exhausted when exe is bigger than 20MB

#19 Post by skiman »

Hi,

I would like to share 'my experience' if I knew what to share. I haven't done anything specific, and never had problems to compile. And I also use xb2net and never encountered any problem with it.
Best regards,

Chris.
www.aboservice.be

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Memory exhausted when exe is bigger than 20MB

#20 Post by Eugene Lutsenko »

Hi, Chris! Can I send you my files?

Post Reply