com >> C# COM object doesn't receive OnIdle when it's called out of a vb6 app

by heliosdev » Wed, 18 Jan 2006 18:38:58 GMT

Hi

from a vb6 app I'm opening some (modeless) forms which are in a C#
/.net COM dll. Now these forms are listening to the Idle event (for
enabling/disabling some buttons) which they don't get anymore.
Interestingly when the (modeless) forms are opened and I open another
form of the COM object which is modal then the modeless forms get the
Idle event, but only this one time.
Any help is appreciated.

Thanks
heliosdev



Similar Threads

1. C# COM object doesn't receive OnIdle when it's called out of a vb6 app

Hi,

from a vb6 app I'm opening some (modeless) forms which are in a C#
/.net COM dll. Now these forms are listening to the Idle event (for
enabling/disabling some buttons) which they don't get anymore.
Interestingly when the (modeless) forms are opened and I open another
form of the COM object which is modal then the modeless forms get the
Idle event, but only this one time.
Any help is appreciated.

Thanks
heliosdev

P.S.: I've posted this in the public.vb group, but I'm not sure if
that's the right place...

2. Retrieve name of VB6 calling app via reflection from C# COM in - Microsoft .NET Framework

3. Retrieve name of VB6 calling app via reflection from C# COM interf

I have a C# logging assembly with a static constructor and methods that is 
called from another C# Assembly that is used as a COM interface for a VB6 
Application.  Ideally I need to build a file name based on the name of the 
VB6 application.  A second choice would be a file name based on the # COM 
interface assembly.  I have tried calling Assembly.GetCallingAssembly() but 
this fails when I use the VB6 client.  Is there a way to get this information 
at runtime?

4. ComInterop: VB6 Com Interface object = VB6 Com object fails - VB.Net

5. "object required" - calling vb6 COM object method (works ok in ASP)

6. Calling VB6 COM from C# WindowsApplication

7. Security error in C# call to VB6 COM.



      the JIT comes back with this:

      System.Security.SecurityException: Permission denied
         at VP_LIB.VinPowerClass.SetDeveloperID(String dev_id)

      I have instanciated the COM object.  The first use of that object is
to pass the ID for use.  It bombs on that line on client machines with XP &
SP2.

      I have tried the suggestions that the error gave.  But "trusting" the
dll, seems to think that it's a VB.NET .dll instead of a VB6 one.

      Any ideas that I can try?

      TIA


8. How to dispose C# object created via VB6 COM component interop