Click here to Skip to main content
15,888,283 members
Home / Discussions / C#
   

C#

 
AnswerRe: try - catch problems Pin
S. Senthil Kumar24-Oct-05 4:44
S. Senthil Kumar24-Oct-05 4:44 
GeneralRe: try - catch problems Pin
zaboboa24-Oct-05 4:56
zaboboa24-Oct-05 4:56 
GeneralRe: try - catch problems Pin
Tom Larsen24-Oct-05 5:07
Tom Larsen24-Oct-05 5:07 
AnswerRe: try - catch problems Pin
Tom Larsen24-Oct-05 4:46
Tom Larsen24-Oct-05 4:46 
GeneralRe: try - catch problems Pin
zaboboa24-Oct-05 4:55
zaboboa24-Oct-05 4:55 
GeneralRe: try - catch problems Pin
Tom Larsen24-Oct-05 5:03
Tom Larsen24-Oct-05 5:03 
GeneralRe: try - catch problems Pin
zaboboa24-Oct-05 5:32
zaboboa24-Oct-05 5:32 
GeneralRe: try - catch problems Pin
Wjousts24-Oct-05 6:27
Wjousts24-Oct-05 6:27 
Have you considered rewritting this using a while loop?

<br />
while (!ExitCondition)<br />
{<br />
// Do something<br />
}<br />


You should be able to rewrite your recursion into a while loop which wouldn't require an iteration limit at all. It will probably be a little more complicated, but it will avoid your memory problems.
Recursion is good for some (small) problems but you have to be aware that the memory usage can baloon dramatically.
AnswerRe: try - catch problems Pin
Daniel Grunwald24-Oct-05 5:18
Daniel Grunwald24-Oct-05 5:18 
GeneralRe: try - catch problems Pin
zaboboa24-Oct-05 7:31
zaboboa24-Oct-05 7:31 
GeneralRe: try - catch problems Pin
Tom Larsen24-Oct-05 8:12
Tom Larsen24-Oct-05 8:12 
AnswerRe: try - catch problems Pin
leppie24-Oct-05 7:01
leppie24-Oct-05 7:01 
AnswerRe: try - catch problems Pin
Daniel Turini24-Oct-05 9:49
Daniel Turini24-Oct-05 9:49 
QuestionEnvironment Variable Pin
C#Bala24-Oct-05 2:17
C#Bala24-Oct-05 2:17 
AnswerRe: Environment Variable Pin
KaptinKrunch24-Oct-05 2:30
KaptinKrunch24-Oct-05 2:30 
AnswerRe: Environment Variable Pin
S. Senthil Kumar24-Oct-05 4:46
S. Senthil Kumar24-Oct-05 4:46 
AnswerRe: Environment Variable Pin
Matt Gerrans24-Oct-05 5:46
Matt Gerrans24-Oct-05 5:46 
QuestionHow to rename a file in a isolated storage Pin
mondolyo7814024-Oct-05 2:13
mondolyo7814024-Oct-05 2:13 
AnswerRe: How to rename a file in a isolated storage Pin
KaptinKrunch24-Oct-05 2:33
KaptinKrunch24-Oct-05 2:33 
GeneralRe: How to rename a file in a isolated storage Pin
mondolyo7814024-Oct-05 2:39
mondolyo7814024-Oct-05 2:39 
GeneralRe: How to rename a file in a isolated storage Pin
KaptinKrunch24-Oct-05 7:58
KaptinKrunch24-Oct-05 7:58 
QuestionIf there is an event in a C++ dll ,how to define it? Pin
rushing24-Oct-05 1:25
rushing24-Oct-05 1:25 
AnswerRe: If there is an event in a C++ dll ,how to define it? Pin
Tom Larsen24-Oct-05 4:48
Tom Larsen24-Oct-05 4:48 
GeneralRe: If there is an event in a C++ dll ,how to define it? Pin
rushing26-Oct-05 15:02
rushing26-Oct-05 15:02 
QuestionRichTextBox of A4 Size Pin
AB777124-Oct-05 0:34
AB777124-Oct-05 0:34 

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.