473,405 Members | 2,210 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,405 software developers and data experts.

Using a thread to fire windows events

Hi all,

|-------------| changeSpeed |----------|simulate |-------------|
|simulation |------------->|Controller|--------->|Simulation |
|controlPanel | |Loop |second |Panel |
|-------------| |----------| |-------------|

I'm building a simulation GUI with 2 parts : one panel for controlling
the simulation and another for "showing" the simulation. Basically,
the controlPanel would throw events(simulation speed up/down for
instance) which are then caught by a controller which adjusts the
simulation parameters and acts accordingly(sends secondPassed events
more frequently to the simulationPanel)

problem is I cant implement this only in the main thread, if the
control loop gets in the thread, it freezes the control part of the
app. I figure I'd need a WorkerThread.

Last time I tried a workerThread, I had problem with it. I could
change data on the GUI but it would get undone quickly.

Anyone has any idea of what I can do? Good references to thread
programming in .net? any insight?

Thanks

Pierre Darisse
Nov 17 '05 #1
0 1041

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bill Davidson | last post by:
Hello All: I've got a question about synchronization requiremements in a C# worker thread procedure that, among other things, sinks events from outside sources. I realize the worker thread will...
1
by: Michael McCarthy | last post by:
I've written an event that tells me that I've connected properly to a remote telnet location. When I know that I'm connected I fire the event which is being listened for in a bit of code that then...
6
by: Sivaraman.S | last post by:
Hi, I have a doubt in .net. Hope u could solve the problem. When u r free plz consider this doubt. I have created a component to run End of Day Tasks. Hope u know how much time it takes to...
1
by: colinjack | last post by:
Hi All, I've been using the original (non-event based) asynchronous design pattern using delegates. It works fine but performance wise I know using the ThreadPool is supposed to be far better,...
4
by: Ty Salistean | last post by:
So, here is a wierd question that we have been discussing for a bit now. Does an event fire even though nothing is subscribed to listen to the event? For instance, does the Click event of a...
4
by: gsimmons | last post by:
I've been researching multi-threaded WinForms apps and thread synchronization stuff for a couple days since I'm working on refactoring a multi-threaded GUI app at work and want to be sure it's...
7
by: mehdi | last post by:
Hi folks, Consider a class (MyClass) in which one of its methods (named Run) is supposed to run in another thread, rather than the Main thread. This class uses the System.Threading.Thread class to...
2
MTEXX
by: MTEXX | last post by:
Hi all- I'm trying to wrap the Socket class to raise events on the same thread that the class is instantiated on. For example: connected(), stateChanged(), dataArrival() etc- similar to old vb6...
8
by: Brad Walton | last post by:
Hello. First post, but been doing a bit of reading here. I am working on a project in Java, but decided to switch over to C# after seeing some of the additional features I can get from C#. One of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.