COM problem moving from 2000/XP to NT 4

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.
 
D

Dirk

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top