Issue with unmanaged C++ code calling into unmanaged VB.NET assembly

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi All,
I need help with a .NET COM Interop issue.

I have a .NET assembly (a single DLL with classes written in VB.NET )
that I register for COM interoperability using Visual Studio. An
unmanaged C++ application #imports the .tlb of this .NET assembly.
Everything is built and it runs fine. We have associated GUIDs to each
of the classes that are used by the C++ client application.

If a change is made to the .NET Assembly (not changing interfaces) and
I rebuild it and then I overwrite the old DLL with the new one and
re-register using regasm /Codebase , the C++ client application crashes
when its run. I must re-build the C++ application using the .tlb file
generated from the latest .NET assembly DLL before it will work again.


I should not have to rebuild the client application to get it to work
properly if no interfaces have changed.

Any advice would be appreciated.

Thanks
Tim DeMarco

.



Relevant Pages

  • Re: attachment field improvements
    ... I believe it's the nature of how email messages are formed by the client. ... point, the encoding of the new piece you're adding, and then the appending of ... it shouldn't be too hard to rebuild the message in ... with the general construct of a mail message and how it passes from the client ...
    (microsoft.public.outlook.installation)
  • Re: attachment field improvements
    ... I believe it's the nature of how email messages are formed by the client. ... they're in the body of the message and a mail message is a sequential piece of data with no actual internal structure. ... Trying to insert an attachment between two others would require a complete rebuild of the message to that point, the encoding of the new piece you're adding, and then the appending of the remaining data that was already in the message. ...
    (microsoft.public.outlook.installation)
  • Strange bug with Windows Authentication
    ... I have an ASP.NET application which is set to use Windows authentication - ... the problem was only occuring the first time I accessed the app. ... rebuild, but I think it is happening either after a rebuild or after a reboot ... of the client or server. ...
    (microsoft.public.dotnet.security)
  • Re: About Transfering Complex datastructures using Sockets
    ... using sockets from client to sever... ... transfer the elements individually and rebuild ... the data structure in the receiving end. ...
    (comp.lang.c)
  • Re: Issue with unmanaged C++ code calling into unmanaged VB.NET assembly
    ... The IDL files match perfect and the assembly has a GUID. ... If I rebuild the VB.NET project and then choose build ... >> generated from the latest .NET assembly DLL before it will work again. ...
    (microsoft.public.dotnet.framework.interop)