Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editbin debugger 1

Status
Not open for further replies.

bont

Programmer
Sep 7, 2000
200
US
I am trying to find a way that I can automatically change the stack size of my newly compiled EXE when I am debugging from VS.NET 2005. Any ideas how to execute this:

EDITBIN /STACK:2000000 [MY.EXE]
 
Sorry, I don't think you understood my question. I am not trying to run a dos command at run time.

I have the problem that after I compile my EXE, I must go to a DOS prompt, find the EXE and run the EDITBIN function upon the EXE to increase the stack size. This means I can not use the option from within the VS environment to compile + RUN. I currently have to compile, go to DOS to execute the DOS command, and then exec the EXE to run the compiled app. There used to be a way to add a post process after the compilation, but I don't see a way to do this. I sometimes find reference to something called the post-process tab in the VS environment, but I don't see it anywhere.

Any suggestions?
 
I see now. No, sorry, not sure how. Maybe someone with more experience in the .Net IDE can help.

On the other hand, if you wanted to just compile, do the editbin, and run, you could do it all in a batch file...
 
Use the Process method.

Dim ProcInfo As ProcessStartInfo = Nothing
ProcInfo.FileName = "c:\folder\editbin.exe"
ProcInfo.Arguments = "c:\folder\YourProgram.exe"
ProcInfo.CreateNoWindow = False
Process.Start(ProcInfo)
 
Does the ProcInfo method get executed between the debug compile and the execution of the EXE so that I can use the debugging? Or am I still stuck with doing a compile, manually running the editbin, and then doing a run?
 
Do a build, which compiles the program into the release folder. Then run your program in the debug mode and point to your .exe in the release folder. ie
ProcInfo.Arguments = "c:\vbPrograms\myProgram\bin\release\theProgram.exe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top