VB.NET Windows application crash on exit

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a VB.NET Windows application that is getting the following error when it terminates, any ideas

The instruction at “0x275ae936†referenced memory at “0x0e7d1e90â€. The memory could not be “readâ€

Click on OK to terminate the progra

The application consists of a Windows Application and lots of classes. One of these classes is actually a wrapper to a VB6 ActiveX. If I remove the small bit of code that accesses this component then everything is fine but I really do need to use this legacy component. I don’t have time to rewrite it in VB.NET, not yet anyway

If I turn on “When the exception is thrown†“Break into the debugger†option then I get the following error on this line of code
CType(Me.WTPSelection2, System.ComponentModel.ISupportInitialize).EndInit(

A first chance exception of type ‘System.InvalidCastException’ occurred in system.windows.forms.dl

Additional information: No such interface supporte

Sorry the e-mail is quite long but I have tried to include as much information as possible
Any help will be much appreciated
Chris.
 
Hi Chris,

I hope someone can help you - sounds like one of the terrible situations we
all find ourselves in from time to time. Just a thought: if it's on exit,
can you wrap the error in a try catch block and simply ignore it?

HTH,

Bernie Yaeger

Chris Podmore said:
I have a VB.NET Windows application that is getting the following error when it terminates, any ideas?

The instruction at "0x275ae936" referenced memory at "0x0e7d1e90". The memory could not be "read".

Click on OK to terminate the program


The application consists of a Windows Application and lots of classes. One
of these classes is actually a wrapper to a VB6 ActiveX. If I remove the
small bit of code that accesses this component then everything is fine but I
really do need to use this legacy component. I don't have time to rewrite it
in VB.NET, not yet anyway.
If I turn on "When the exception is thrown" "Break into the debugger"
option then I get the following error on this line of code:
 
Back
Top