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

C#

 
GeneralRe: try - catch problems Pin
AB777124-Oct-05 3:35
AB777124-Oct-05 3:35 
GeneralRe: try - catch problems Pin
zaboboa24-Oct-05 4:09
zaboboa24-Oct-05 4:09 
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 
Well that is the nature of overflow exceptions: they depend on the system state you run in which changes over time (resources like memory comes and goes).

Something else is going on then. Are you getting the exception throw from outside your recursive try/catch block? That means the problem is elswhere (or everywhere). Or more specificially, the try/catch block doesn't fail because it can allocate 99% of the thread's stack space but then something else goes off and does something that requires 2% more.

If this is the case you need either need to place the try/catch block "higher" or rethink your design. I would encourage you to rethink your design since terminating your recursion because you ran out of stack is somewhat abnormal and worst not reproducable.
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 
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 

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.