Try-Catch VB6 vs .NET

When I call my C#, .NET_4-written dll from a VB6 app, the try-catch block of the entry method of the class, that acts as a global handler of unhandled exceptions, is skipped whenever there's an unhandled exception on a deeper calling level (the framework's dialogue form is shown).

But when the dll is referenced and the method is called from a C# (probably any .NET) app, that "global" catch shows and handles any unhandled exception, no matter the depth it was thrown from.

What can/should I do to factor out the referencing app's language and let the dll successfully handle any and all unhandled exceptions?

by winamp_plugin via /r/csharp

Leave a Reply