473,386 Members | 1,773 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,386 software developers and data experts.

threaded timer

I have a form application with a timer event on it and a couple of
proceedures that run great but when I converted the code to a .dll then
I ran into some issues.

The problem in my class is that I have created a timer and it
increments an integer =+ 1. The time fires this event without issue.

And in the timer event handler I have code that checks for a count of
30. This event never fires. However I can watch the integer increment
in the console window. The if = 30 code is in the same timer
proceedure that outputs to the console window....

What am I doing wrong.

Basically I'm forcing the program to load a web page and then wait 40
seconds before scanning it. That's it.

Nov 21 '05 #1
1 1199
On 2005-04-05, pmclinn <pm*****@gmail.com> wrote:
I have a form application with a timer event on it and a couple of
proceedures that run great but when I converted the code to a .dll then
I ran into some issues.

The problem in my class is that I have created a timer and it
increments an integer =+ 1. The time fires this event without issue.

And in the timer event handler I have code that checks for a count of
30. This event never fires. However I can watch the integer increment
in the console window. The if = 30 code is in the same timer
proceedure that outputs to the console window....

What am I doing wrong.

Basically I'm forcing the program to load a web page and then wait 40
seconds before scanning it. That's it.


show us the code :)
--
Tom Shelton [MVP]
Nov 21 '05 #2

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

Similar topics

2
by: JSheble | last post by:
Say I have two seperate timers in my app (it's strictly an example, I don't really...) and each of the timer events calls the same method of the form's class. Will these interfere with each other...
5
by: Rob Durant | last post by:
Hi, I have a multi-threaded application (have also tried as service - same behaviour) that runs fine on XP, but not on 2003. Symptoms are: Threads are started normally, locks acquired and...
4
by: BveB | last post by:
I want to make a listener thread for some actions on windows forms but when I use Thread class cpu usage goes to 100% what can I do? private void Th_Func(){ while(true){ if(STATE_FORMCLICK){...
2
by: sotto | last post by:
I need a loginscreen, that will show a progressbar that changes values based on a method in the main application (loading data from database) how would i do this? (i guess i need threading for...
10
by: Bob | last post by:
I have a splashscreen running on a thread from Sub Main and it works OK. It displays information in a statusbar about queries. I also have a time on the splashscreen, but the tick event never...
2
by: WATYF | last post by:
Hello. I have a multi-threaded app that has a few different Timers all of which deserialize and serialize objects to perform certain operations. At the same time, the user can be working in the app...
14
by: Snor | last post by:
I'm attempting to create a lobby & game server for a multiplayer game, and have hit a problem early on with the server design. I am stuck between using a threaded server, and using an event driven...
5
by: not_a_commie | last post by:
So I have a motherboard with multiple CPU sockets. It seems that if I create a StopWatch on one thread and then call the Elapsed member from a different thread that sometimes I get a tick count...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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,...
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...

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.