Click here to Skip to main content
15,885,889 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to free up memory - best method Pin
Paul Conrad29-Jul-07 6:30
professionalPaul Conrad29-Jul-07 6:30 
QuestionHow can i fire event from UserControl to the Dialog ? Pin
Yanshof29-Jul-07 3:56
Yanshof29-Jul-07 3:56 
AnswerRe: How can i fire event from UserControl to the Dialog ? Pin
Abisodun29-Jul-07 4:31
Abisodun29-Jul-07 4:31 
GeneralRe: How can i fire event from User Control to the Dialog ? Pin
Yanshof29-Jul-07 19:52
Yanshof29-Jul-07 19:52 
GeneralRe: How can i fire event from User Control to the Dialog ? [modified] Pin
Abisodun30-Jul-07 1:36
Abisodun30-Jul-07 1:36 
QuestionSorting DataGridview column programatically Pin
Nadia Monalisa29-Jul-07 2:43
Nadia Monalisa29-Jul-07 2:43 
AnswerRe: Sorting DataGridview column programatically Pin
DignifiedWorld29-Jul-07 4:07
DignifiedWorld29-Jul-07 4:07 
GeneralRe: Sorting DataGridview column programatically Pin
Nadia Monalisa29-Jul-07 5:18
Nadia Monalisa29-Jul-07 5:18 
AnswerRe: Sorting DataGridview column programatically Pin
Edwin Syarief29-Jul-07 23:10
Edwin Syarief29-Jul-07 23:10 
Questiondisplay mdi childs as tab pages Pin
cellardoor071629-Jul-07 2:37
cellardoor071629-Jul-07 2:37 

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.