471,603 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

Garbage collector messes up events?? HELP!

Hi all!

Sorry for the cross-post, I really have a difficult problem and need
some help badly.

I have a VB6 ActiveX component (dll) that listens to a real-time data
feed of stock quotes (built in an OCX) and then passes them on using
events.

The consumer of these VB6 events is a C# dll using .NET 2.0

The consumer of the C# dll is a C++ software, Wealth-Lab
This is the steps involved:
Ocx -> VB6 Dll -> C# Dll -> Wealth-Lab

The only reason why I use the VB6 Dll is because I can not use the ocx
directly in VS2005. I have the source-code for the VB6 Dll and the C#
Dll. The Ocx and Wealth-Lab is software's from other vendors

All event wires OK and the C# dll runs just fine getting all
real-time events from the VB6 dll... for approx three minutes. Then,
for
apparently no reason, the events stop coming in. This is the problem.

To make things more interesting, I created a C# windows application
that takes the event from the VB6 dll and just displays them in a
listbox. There is no problem with the C# windows application. The
events just keep coming in. There is only one way to stop them, to kill
the application. Both the C# Dll and the C# application uses the same
class to communicate with the VB6 Dll.

However, I need to get it to run with the C# dll.

I have a long shot theory that the Garbage Collector for some reason
sweeps away the event object, but I can not confirm anything...

Please help. I'm in a really stressful situation!

I'm using VS6 SP6 and VS2005.

Thanks for your help!

/Hakan

Feb 12 '06 #1
2 2487
Why not directly bind the OCX to the Wealth-Lab application?

Willy.

<ha******@hotmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
| Hi all!
|
| Sorry for the cross-post, I really have a difficult problem and need
| some help badly.
|
| I have a VB6 ActiveX component (dll) that listens to a real-time data
| feed of stock quotes (built in an OCX) and then passes them on using
| events.
|
| The consumer of these VB6 events is a C# dll using .NET 2.0
|
| The consumer of the C# dll is a C++ software, Wealth-Lab
| This is the steps involved:
| Ocx -> VB6 Dll -> C# Dll -> Wealth-Lab
|
| The only reason why I use the VB6 Dll is because I can not use the ocx
| directly in VS2005. I have the source-code for the VB6 Dll and the C#
| Dll. The Ocx and Wealth-Lab is software's from other vendors
|
| All event wires OK and the C# dll runs just fine getting all
| real-time events from the VB6 dll... for approx three minutes. Then,
| for
| apparently no reason, the events stop coming in. This is the problem.
|
| To make things more interesting, I created a C# windows application
| that takes the event from the VB6 dll and just displays them in a
| listbox. There is no problem with the C# windows application. The
| events just keep coming in. There is only one way to stop them, to kill
| the application. Both the C# Dll and the C# application uses the same
| class to communicate with the VB6 Dll.
|
| However, I need to get it to run with the C# dll.
|
| I have a long shot theory that the Garbage Collector for some reason
| sweeps away the event object, but I can not confirm anything...
|
| Please help. I'm in a really stressful situation!
|
| I'm using VS6 SP6 and VS2005.
|
| Thanks for your help!
|
| /Hakan
|
Feb 12 '06 #2
Hi! Sorry for the delay.

I've tried that. Just adding the ocx to a VB6 form in a dll and tie it
togeather with Wealth-Lab.
I have the same problem, but now it's the ocx events that suddenly
stops after three to four minutes. .NET is not involved anymore.

Any thoughts?

/Hakan

P.s. I know that since this now have nothing to do with .NET, I should
switch groups. I just want to answer you and say thanks for the reply.
D.s.

Willy Denoyette [MVP] skrev:
Why not directly bind the OCX to the Wealth-Lab application?

Willy.

<ha******@hotmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
| Hi all!
|
| Sorry for the cross-post, I really have a difficult problem and need
| some help badly.
|
| I have a VB6 ActiveX component (dll) that listens to a real-time data
| feed of stock quotes (built in an OCX) and then passes them on using
| events.
|
| The consumer of these VB6 events is a C# dll using .NET 2.0
|
| The consumer of the C# dll is a C++ software, Wealth-Lab
| This is the steps involved:
| Ocx -> VB6 Dll -> C# Dll -> Wealth-Lab
|
| The only reason why I use the VB6 Dll is because I can not use the ocx
| directly in VS2005. I have the source-code for the VB6 Dll and the C#
| Dll. The Ocx and Wealth-Lab is software's from other vendors
|
| All event wires OK and the C# dll runs just fine getting all
| real-time events from the VB6 dll... for approx three minutes. Then,
| for
| apparently no reason, the events stop coming in. This is the problem.
|
| To make things more interesting, I created a C# windows application
| that takes the event from the VB6 dll and just displays them in a
| listbox. There is no problem with the C# windows application. The
| events just keep coming in. There is only one way to stop them, to kill
| the application. Both the C# Dll and the C# application uses the same
| class to communicate with the VB6 Dll.
|
| However, I need to get it to run with the C# dll.
|
| I have a long shot theory that the Garbage Collector for some reason
| sweeps away the event object, but I can not confirm anything...
|
| Please help. I'm in a really stressful situation!
|
| I'm using VS6 SP6 and VS2005.
|
| Thanks for your help!
|
| /Hakan
|


Feb 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Gustavo Franco | last post: by
18 posts views Thread by Rein Petersen | last post: by
7 posts views Thread by Casey Leamon | last post: by
4 posts views Thread by IcedCrow | last post: by
18 posts views Thread by Larry Herbinaux | last post: by
8 posts views Thread by Adam Honek | last post: by
28 posts views Thread by Goalie_Ca | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.