The .NET stack vs Windows stack?

Yes, the size for the startup thread is determined by a value in the . EXE file header. Necessarily so because Windows creates that thread before any code in the program can run.

The managed compiler you use writes that value. Current . NET compilers select 1 MB when you target x86 or Any CPU, 4 MB when you target x64.

This is however not fixed, you can modify the value with the Editbin. Exe utility, /STACK command line option. You could run this in a post-build event.

Yes, the size for the startup thread is determined by a value in the . EXE file header. Necessarily so because Windows creates that thread, before any code in the program can run.

The managed compiler you use writes that value. Current . NET compilers select 1 MB when you target x86 or Any CPU, 4 MB when you target x64.

This is however not fixed, you can modify the value with the Editbin. Exe utility, /STACK command line option. You could run this in a post-build event.

The stack size for threads that you create are under your control, the Thread class constructor has overloads that lets you specify the size. You cannot make it too small, it clips the value to 256 KB. 4 or 16KB is way too small, 1 MB is the default.

Here's a similar discussion on the topic. Question The documentation indicates that the threads "default stack size" is 1MB. The work "default" implies that it can be changed.Is it possible to change the StackSize in .

NET? If so how? Answer Unfortunately no.

The documentation you were reading was for the creation of new threads in the system, which is handled by the Thread class. The CreateThread API function allows you to set the stack size and you can call it from .NET. However, I don't know if that is a good idea, since I am not sure how the runtime will perceive that thread.

Here is a code sample for creating threads using the CreateThread API codeproject.com/KB/threads/Threads_1.aspx.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions