COM problem moving from 2000/XP to NT 4

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

Guest

I have a COM dll written in C++ using VS.NET 2003. This dll is used by a VB 6 program. The dll fires notifications to the VB program which are handled using WithEvents. I pass COM interfaces as arguments to the various notification functions. This works fine on 2000 and XP however it fails on NT. On NT whenever I attempt to call a method on an interface passed to a notification method I get an access violation

I realise this is a fairly high level description however I thought someone might be aware of an issue with NT that would cause this behaviour

thanks

Gary.
 
I think you should use the /no_robust switch for the midl compiler. Look up
the /robust switch in the help.


Gary Hughes said:
I have a COM dll written in C++ using VS.NET 2003. This dll is used by a
VB 6 program. The dll fires notifications to the VB program which are
handled using WithEvents. I pass COM interfaces as arguments to the various
notification functions. This works fine on 2000 and XP however it fails on
NT. On NT whenever I attempt to call a method on an interface passed to a
notification method I get an access violation.
I realise this is a fairly high level description however I thought
someone might be aware of an issue with NT that would cause this behaviour.
 
Back
Top