Click here to Skip to main content
15,917,062 members
Home / Discussions / C#
   

C#

 
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 
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 
Well there are ways in the Diagnostic namespace to look at the stack but I wouldn't recommend doing this at all. As stated by many others, the ability of the CLR to allocate object references depends on the machine's state which is constantly changing.

Beyond that you should heed my warning about inferring extra information in any exception. It would be like inferring that a IOException means a file is bad.

You seriously need to rethink how to calculate rate of return. I wouldn't have done recursion in the first place. Iteration might be a long calculation but at least it is reliable. Your method now will randomly stop and worst report bogus data.
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 
QuestionDataGrid: SetDataBinding() method OR DataSource property Pin
amit_mi24-Oct-05 0:18
amit_mi24-Oct-05 0:18 
Questioncombobox Pin
x-trate24-Oct-05 0:15
x-trate24-Oct-05 0:15 
AnswerRe: combobox Pin
Greeky24-Oct-05 0:36
Greeky24-Oct-05 0:36 

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.