15,905,028 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by mathias.woelfel (Top 9 by date)
mathias.woelfel
31-May-11 10:15am
View
Does anyone got any another idea for my problem? :)
mathias.woelfel
31-May-11 10:11am
View
Thank you for this detailed and interesting explanation!
mathias.woelfel
26-May-11 9:57am
View
Ok, that's what I wanted to know.
Thanks a lot!
mathias.woelfel
26-May-11 8:57am
View
Ok, so I suspect its finalizer is called automatically? And who does that at which point?
mathias.woelfel
25-May-11 5:05am
View
Ok I got the point now. But when I call my function 'Button_Click' (see above) the programm crashes immediately. Means no code within the function is executed. So I've got no chance to see the content of StackTrace since it is not even executed. That brings me back to my original problem. The program seems to throw the exception somewhere else but not in my function where I try to catch it.
mathias.woelfel
25-May-11 4:23am
View
Yes that is what I suspected, too. But how to implement this exeption stack if I don't know which exeptions of which type are thrown? How can I implement try&catch recursively?? I'm a little bit at a loss at the moment..
mathias.woelfel
24-May-11 4:21am
View
But shouldn't the outer exeption handler catch all inner exceptions anyway? I even tried to nest several try/catch blocks arround the object instantiation what didn't help either. It seems like the FileNotFoundException is not thrown within my try block but anywhere else. Is that possible?
Coming back to your idea with the recursive catching of all inner exceptions: How would you implement this solution? Is there a possibility to find out if there are unhandled exceptions left? Or is there an exception stack which I can read out?
mathias.woelfel
24-May-11 4:04am
View
Thank you for this detailed explanation on handling assemblys!
But my problem is another one: As I described my simple check with File::Exists alone works fine. The function returns at the specified point if the dll is not found.
But if I add the instantiation of the object to the function it throws the exception even if this part of the code is not executed.
mathias.woelfel
23-May-11 10:56am
View
Yes, I tried that before!
But although the error message while crashing tells me there is an System.IO.FileNotFoundException I can't catch it with
catch(System::IO::FileNotFoundException ^ex)
And even if I try to catch every exeption with
catch(...)
I've got the same behaviour like I described above.
Show More