Re: I have a problem using COM

2004-06-15 Thread Chris M
Hi Stephen,
Thank ypu for the extra files and information. I've been
investigating your code further
and I understand from your comments that the problem lies in the
'InletKernel_RegisterAllEvents2.vi', is this correct?
However I still need the .dll, executable or control which supplies
'InletKernelInterfaceLib.IInletSystem2' to continue my investigations
as I do not have that on my installation and it appears to be part of
you application. With that file I can follow the callbacks events
through and hopefully find where the problem lies.
Best Regards,

Chris M
Applications Engineer
National Instruments (UK)



Re: I have a problem using COM

2004-06-15 Thread SteveMoores
Hi Chris

As promised I have done some further investigation.

If I remove the vi that registers all the events and associates the
callback vi's with an event then the app closes down ok.

It looks as though the callback vi's themselves are not closing down.



Re: I have a problem using COM

2004-06-14 Thread Chris M
Hi Stephen,
   As you mention in your question the problem you are
   experiencing is usually caused by not closing a reference correctly. I
   have been looking at your code for this application and I have a
   couple of questions I'd like to ask you about it which will help me
   research your problem further. Firstly you mention that you have 5
   vi's but you have only posted 3, please could you post the remaining 2
   vi's. I also do not have the ActiveX server object that you are using,
   "InletKernelInterfaceLib" which is a .dll or .exe file. Could you also
   post a 'walk-through' of your code as well so I can understand better
   what is going on there. On a different note have you tried running the
   vi's without the ActiveX server? Did it work then? have you tried
   splitting the code to determine where the problem may lie?
I look forward to hearing from you,
Best Regards,

Chris Mead
National Instruments (UK)