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
Paul, >Any ideas please!! Sounds like you haven't turned on Binary Compatibility in the VB6 project. Mattias -- Mattias Sjgren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.
Hi, binary compatibility is on in the vb6 code. "Mattias Sjögren" wrote: > Paul, > > >Any ideas please!! > > Sounds like you haven't turned on Binary Compatibility in the VB6 > project. > > > Mattias > > -- > Mattias Sjögren [C# MVP] mattias @ mvps.org > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com > Please reply only to the newsgroup. >