473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 2553
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: pachanga | last post by:
The Hans-Boehm garbage collector can be successfully used with C and C++, but not yet a standard for C++.. Is there talks about Garbage Collector to become in the C++ standard?
11
by: Gustavo Franco | last post by:
Hi, I did a medium complex application in C#, and in some areas the memory goes up to 60Mb, when I finish I dispose everything and setting everything to null and calling GC.Collect, but the...
18
by: Rein Petersen | last post by:
Is there any way to adjust thread priority for the garbage collector? Would be nice if I could tune the thread priority rules for the garbage collector too... From my readings of the process,...
7
by: Casey Leamon | last post by:
I've been noticing that all of my .NET apps seem to progressivly use more and more memory. Even after several reworks of the code I can only manage to slow the growth. Is there some Garbage...
4
by: IcedCrow | last post by:
I know I read everywhere that you "can't" force the garbage collector to run, and that you really have no control when it runs. However as a programmer I know that there is always a way around...
18
by: Larry Herbinaux | last post by:
I'm having issues with garbage collection with my long-standing service process. If you could review and point me in the right direction it would be of great help. If there are any helpful...
9
by: Olivier Fermy | last post by:
I have created a sample project where i have referenced an object only with an event : textBox.VisibleChanged += new EventHandler(this.textBox_VisibleChanged); When i call GC.Collect(), the...
8
by: Adam Honek | last post by:
Hi, Is there a way to delcare a garbage collector in VB.NET 2005? Thanks, Adam
28
by: Goalie_Ca | last post by:
I have been reading (or at least googling) about the potential addition of optional garbage collection to C++0x. There are numerous myths and whatnot with very little detailed information. Will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.