Paul Lance
7/2/2007 5:16:00 AM
OK My vb.net (.Net 2.0) code crashes when I update a vb6 dll.
Iâ??m using interop com to communicate to the vb6 dll.
So to start with all is well as in the .Net app is working just fine with
the vb6 dll. But then I update the vb6 dll and the my app crashes.
Update method.
First I regsvr32.exe /u ecode4.dll
Then I replace the dll with the new one (in system32) and then I
regsvr32.exe ecode4.dll
That will cause my .Net app to crash. Now interestingly if in my vb.Net code
I turn option strict Off and then run up the dll like this: Dim eo = New
ecode4.order
Then It will be happy accept the me updating the vb6 dll to the new version
but if I run up the dll like this:
Dim eo As ecode4.eorder = New ecode4.eorder
then the app will not allow me to update the vb6 dll.
Any ideas please!!
Kind regards
Paul