Click here to Skip to main content
15,912,507 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDataGridView Pin
codeguru10813-Jan-09 1:24
codeguru10813-Jan-09 1:24 
AnswerRe: DataGridView Pin
Henry Minute13-Jan-09 12:07
Henry Minute13-Jan-09 12:07 
QuestionTargeting .Net Framework Client Profile for Standalone install Pin
redivider12-Jan-09 11:12
redivider12-Jan-09 11:12 
QuestionHow to change default stack size while using ThreadPool in .NET Pin
kiran_sr12-Jan-09 5:17
kiran_sr12-Jan-09 5:17 
AnswerRe: How to change default stack size while using ThreadPool in .NET Pin
S. Senthil Kumar12-Jan-09 5:49
S. Senthil Kumar12-Jan-09 5:49 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Rajasekharan Vengalil12-Jan-09 6:56
Rajasekharan Vengalil12-Jan-09 6:56 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
kiran_sr12-Jan-09 7:36
kiran_sr12-Jan-09 7:36 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Luc Pattyn12-Jan-09 8:09
sitebuilderLuc Pattyn12-Jan-09 8:09 
Hi,

IMO recursion is a dangerous technique: the stack size is limited, the complexity of the problem you are trying to solve might not be. Even if you had 16MB of stack, what guarantee do you have your app will cope with the situations that may arise in future?

When the design remains unchanged, you may try and alleviate the problem by reducing the stack size needed for each recursion level, basically look for local value types and try and replace them by reference types if at all possible. At best you would find a large struct and simply turn it into a class; or a bunch of simple variables, and group them into a class. That way, a lot of your recursive data gets moved to the heap (at the expense of some performance reduction).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text, and PictureBoxes for pictures, not drawings.


GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
S. Senthil Kumar12-Jan-09 8:58
S. Senthil Kumar12-Jan-09 8:58 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Rajasekharan Vengalil12-Jan-09 8:59
Rajasekharan Vengalil12-Jan-09 8:59 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Luc Pattyn12-Jan-09 9:13
sitebuilderLuc Pattyn12-Jan-09 9:13 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
kiran_sr12-Jan-09 9:30
kiran_sr12-Jan-09 9:30 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Rajasekharan Vengalil12-Jan-09 9:30
Rajasekharan Vengalil12-Jan-09 9:30 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
S. Senthil Kumar12-Jan-09 10:06
S. Senthil Kumar12-Jan-09 10:06 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Rajasekharan Vengalil12-Jan-09 10:12
Rajasekharan Vengalil12-Jan-09 10:12 
GeneralRe: How to change default stack size while using ThreadPool in .NET Pin
Mark Salsbery12-Jan-09 10:29
Mark Salsbery12-Jan-09 10:29 
QuestionHow To Adjust Zone Security Without The .NET Framework 2.0 Configuration tool ?? Pin
Dattatraya K11-Jan-09 21:47
Dattatraya K11-Jan-09 21:47 
AnswerRe: How To Adjust Zone Security Without The .NET Framework 2.0 Configuration tool ?? Pin
Not Active12-Jan-09 0:46
mentorNot Active12-Jan-09 0:46 
GeneralRe: How To Adjust Zone Security Without The .NET Framework 2.0 Configuration tool ?? Pin
Dattatraya K13-Jan-09 4:07
Dattatraya K13-Jan-09 4:07 
QuestionQuestion about allocation memory on the stack and on the heap in .NET framework Pin
Yanshof11-Jan-09 19:46
Yanshof11-Jan-09 19:46 
AnswerRe: Question about allocation memory on the stack and on the heap in .NET framework Pin
Not Active11-Jan-09 19:57
mentorNot Active11-Jan-09 19:57 
GeneralRe: Question about allocation memory on the stack and on the heap in .NET framework Pin
Jon Rista12-Jan-09 5:07
Jon Rista12-Jan-09 5:07 
AnswerRe: Question about allocation memory on the stack and on the heap in .NET framework Pin
N a v a n e e t h11-Jan-09 23:57
N a v a n e e t h11-Jan-09 23:57 
QuestionWMI Error: User credentials cannot be used for local connections Pin
S.Rekka11-Jan-09 19:21
S.Rekka11-Jan-09 19:21 
AnswerRe: WMI Error: User credentials cannot be used for local connections Pin
Anil_Saran5-Jul-11 1:38
Anil_Saran5-Jul-11 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.