Silverfrost Forums

Welcome to our forums

Maximum Stack Size

2 Aug 2006 2:12 #897

Hi

I'm trying to compile an executable which contains many large arrays. The same program when using smaller ranges for arrays works fine. Does anybody know:

  1. what the maximum stack size is?

  2. why i keep getting a 'file.exe is not a valid win32 application' when I try to run the (successfully) compiled executable (rather than an 'out of memory' error if it is because the stack is too small)?

Thanks Si

2 Aug 2006 10:51 #899

Simon

  1. For Win32 and SLINK the default stack size is documented as 50MB.

  2. Are you using Plato3, Visual Studio or a DOS box? If you are using Plato3 or Visual Studio then presumably there is something wrong with the name of the project target in the Project Properties.

3 Aug 2006 4:17 #902

Paul

  1. I know this, but I was wondering if there was a maximum size that the compiler could create an executable to use?

  2. DOS. The executable when compiled with smaller dimensions works fine so there is presumably nothing wrong with any settings in terms of executable creation.

Si

3 Aug 2006 11:22 #903

Simon

There are a number of threads in this forum concerning the 2GB address space and how you can increase this to 3GB under Windows XP. Try searching for 2GB.

7 Aug 2006 7:42 #907

It seems that I have a similar sort of problem. In my case, when array size is incerased, at the run-time I get the following message:

' Salford run-time library. Stack Overflow: Re-link program with bigger stack value. (stack:reserve,commit). Will attampt to trace back.'

After clicking OK, another window appears with the message: ' Stack overflow: at address =4626a8, esp=462974,....'

Any ideas what to do (set) ? I am using Plato 3 (ver. 3.30) under Win Xp Pro.

Regards

Darko Grosev

7 Aug 2006 8:38 #908

Darko

This was the subject of the latest message under the main Plato3 heading of this forum.

Please login to reply.