none
Managed C# to unmanaged DLL, mandatory recompile when moving machines? RRS feed

  • General discussion

  • When I move binaries that are compiled on one machine to another machine the application crashes.  If I recompile the application on the other machine the application binaries run fine.  This project contains a C# interface to an unmanaged DLL in C++ that uses the Windows Media libraries.

    Is there a simple setting I'm missing to make sure that the binaries compiled on one machine will work on another machine without a recompile on the other target machine?  Its like the pointers are off for each machine.

    Thanks,
    D
    • Changed type Zhi-Xin Ye Monday, January 5, 2009 8:58 AM change to comment since no response for more than 3 days
    Monday, December 29, 2008 5:56 PM

All replies

  • Sounds like a versioning issue, classic COM problem when the vtable layout changes without a corresponding change it the interface IID.
    Hans Passant.
    Tuesday, December 30, 2008 2:16 AM
    Moderator
  • Do you know at what point your C# app is crashing? Does it write an exception to the event log?

           -Steve
    Tuesday, December 30, 2008 2:50 PM
  • Hello,

    I know it's been a while (4 years!) but were you able to solve this? I have the exact same problem.

    Wednesday, October 17, 2012 6:03 PM