Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
AnswerRe: Simulate Serial Port Pin
Luc Pattyn29-Jul-07 13:00
sitebuilderLuc Pattyn29-Jul-07 13:00 
GeneralRe: Simulate Serial Port Pin
vikas amin24-Jul-08 11:41
vikas amin24-Jul-08 11:41 
QuestionApplication settings and types from the same assembly... Pin
Shy Agam29-Jul-07 12:06
Shy Agam29-Jul-07 12:06 
QuestionOk/Cancel buttons Pin
#realJSOP29-Jul-07 11:06
professional#realJSOP29-Jul-07 11:06 
AnswerRe: Ok/Cancel buttons Pin
MarkB77729-Jul-07 11:23
MarkB77729-Jul-07 11:23 
AnswerRe: Ok/Cancel buttons Pin
Christian Graus29-Jul-07 11:28
protectorChristian Graus29-Jul-07 11:28 
GeneralRe: Ok/Cancel buttons Pin
#realJSOP29-Jul-07 11:35
professional#realJSOP29-Jul-07 11:35 
GeneralRe: Ok/Cancel buttons Pin
Christian Graus29-Jul-07 12:53
protectorChristian Graus29-Jul-07 12:53 
GeneralRe: Ok/Cancel buttons Pin
#realJSOP30-Jul-07 2:23
professional#realJSOP30-Jul-07 2:23 
AnswerRe: Ok/Cancel buttons Pin
Luc Pattyn29-Jul-07 11:35
sitebuilderLuc Pattyn29-Jul-07 11:35 
AnswerRe: Ok/Cancel buttons Pin
Nouman Bhatti29-Jul-07 20:50
Nouman Bhatti29-Jul-07 20:50 
QuestionMouse movement detection and Visiable/Invisiable Control Panel problem Pin
Khoramdin29-Jul-07 10:54
Khoramdin29-Jul-07 10:54 
AnswerRe: Mouse movement detection and Visiable/Invisiable Control Panel problem Pin
Luc Pattyn29-Jul-07 11:37
sitebuilderLuc Pattyn29-Jul-07 11:37 
GeneralRe: Mouse movement detection and Visiable/Invisiable Control Panel problem Pin
Paul Conrad29-Jul-07 12:34
professionalPaul Conrad29-Jul-07 12:34 
Questionhow can I accessing controls from another page? Pin
kimo code29-Jul-07 10:50
kimo code29-Jul-07 10:50 
AnswerRe: how can I accessing controls from another page? Pin
Christian Graus29-Jul-07 11:30
protectorChristian Graus29-Jul-07 11:30 
GeneralRe: how can I accessing controls from another page? Pin
kimo code29-Jul-07 23:30
kimo code29-Jul-07 23:30 
QuestionCan VS2005 catch exceptions in external dll-s? Pin
Dragan Matic29-Jul-07 9:26
Dragan Matic29-Jul-07 9:26 
If I do something like this:

int i = Convert.ToInt32("asdfas");

without the try/catch block and start a program with the above line in VS2005, the IDE will catch the exception, show the appropriate message and position to the problematic line.

On the other hand, if I have an assembly that is loaded at run-time, for instance like this:

a = Assembly.Load(strAssembly);
Type ObjectType = a.GetType(strClass);
object obj = Activator.CreateInstance(ObjectType);
MethodInfo mi = ObjectType.GetMethod("SomeMethod", pars);
mi.Invoke(obj, null);

and there is an unhandled exception somewhere in the assembly, VS2005 will not catch that exception (even if assembly is compiled as DEBUG and can be debugged into) but instead 'mi.Invoke' will exit with generic exception 'exception has been thrown by the target of the invocation'.
Is there a way for VS2005 to catch these exceptions and position to problematic line like it does with non run-time loaded assemblies?

Dragan Matic



QuestionRoll Your Own XP Shell Replacement Pin
convivial.developer29-Jul-07 8:59
convivial.developer29-Jul-07 8:59 
AnswerRe: Roll Your Own XP Shell Replacement Pin
Thomas Stockwell4-Aug-07 13:06
professionalThomas Stockwell4-Aug-07 13:06 
QuestionVista System32 access denied Pin
Identity Undisclosed29-Jul-07 7:43
Identity Undisclosed29-Jul-07 7:43 
AnswerRe: Vista System32 access denied Pin
Paul Conrad29-Jul-07 8:16
professionalPaul Conrad29-Jul-07 8:16 
GeneralRe: Vista System32 access denied Pin
Identity Undisclosed29-Jul-07 10:10
Identity Undisclosed29-Jul-07 10:10 
GeneralRe: Vista System32 access denied Pin
mav.northwind29-Jul-07 10:38
mav.northwind29-Jul-07 10:38 
QuestionHow to free up memory - best method Pin
Albu Marius29-Jul-07 5:45
Albu Marius29-Jul-07 5:45 

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.