Difference between revisions of "IncrementSizeOfStack"
From MohidWiki
(New page: IncrementSizeOfStack batchfile is used to determine the minimum stacksize to run a mohid application. It will test a list of possible stack sizes. When the MOHID is running smoothl...) |
(→Related articles) |
||
Line 26: | Line 26: | ||
*[[Dumpbin]] | *[[Dumpbin]] | ||
*[[Editbin]] | *[[Editbin]] | ||
− | *[[ | + | *[[Stack overflow]] |
Latest revision as of 11:40, 1 April 2011
IncrementSizeOfStack batchfile is used to determine the minimum stacksize to run a mohid application. It will test a list of possible stack sizes. When the MOHID is running smoothly, a functional stacksize was found and written in the lastStackSize.txt file.
Usage
> IncrementSizeOfStack.bat MOHIDWater_x64_release_double_27-03-2011.exe
Once the MOHID application is running and a working stacksize was found, open the file lastStackSize.txt to get the value.
Install
Download here the batch file code and the indexes.txt file and extract it to the exe folder of your MOHID application.
Batch file code
@echo off REM IncrementSizeOfStack.bat REM ARG1 %1 is for example "MohidWater_x64_release_double_27-03-2011.exe" set MOHID=%1 for /F %%i in (indexes.txt) do ( editbin /STACK:%%i000000 %MOHID% @echo %%i000000 > lastStackSize.txt %MOHID% )