system.invalidcastexception
I have converted my program from vb6
In the initializecomponent event the following code give a n exception
CType(Me.controlname, System.ComponentModel.ISupportInitialize).EndInit()
Exception first-chance of type "System.InvalidCastException" in
system.windows.forms.dll
Additional information: Cast not supported.
what's wrong? I am using vsnet2002 with framework 1.0 sp3.
how can i take this exception away
.
Relevant Pages
- Re: ExecutionEngineException in dotnet 2.0 application doing interop with VB6 legacy code
... all CLR exceptions use the SEH exception code e0434f4d - this is more of an historical holdover than an indication that the exception is related to COM. ... It is still a little weird that the ExecutionEngineException seems to have been the result of "just" a resource leak. ... it appears to have something to do with us not closing our database connections to sql express explicitly. ... has 800KLOC of VB6 code. ... (microsoft.public.dotnet.framework.interop) - Re: ExecutionEngineException in dotnet 2.0 application doing interop with VB6 legacy code
... all CLR exceptions use the SEH exception code e0434f4d - this is more of an historical holdover than an indication that the exception is related to COM. ... It is still a little weird that the ExecutionEngineException seems to have been the result of "just" a resource leak. ... it appears to have something to do with us not closing our database connections to sql express explicitly. ... has 800KLOC of VB6 code. ... (microsoft.public.dotnet.framework.interop) - using COM from VC (either managed or unmanaged)
... When I do it from unmanaged C++, with smart pointers, the DLL gets #imported ... and still a try..catch fails to handle the exception. ... This COM object is protected with a dongle, ... The protected COM object that I want to use also works fine from C# or VB6. ... (microsoft.public.dotnet.languages.vc) - using COM from VC (either managed or unmanaged)
... When I do it from unmanaged C++, with smart pointers, the DLL gets #imported ... and still a try..catch fails to handle the exception. ... This COM object is protected with a dongle, ... The protected COM object that I want to use also works fine from C# or VB6. ... (microsoft.public.vc.language) - Re: On Error Resume Next equllance in VB.NET?
... First, the "On Error Resume Next" statement doesn't work with ADO, even in ... VB6. ... you really need to find the error and fix it. ... > it through Exception Like This. ... (microsoft.public.dotnet.languages.vb) |
|