473,395 Members | 1,462 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.

Checking text file I get "Not Responding"

I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The file
is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil
Jul 17 '05 #1
5 3977

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:Jp********************@is.co.za...
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The file is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil


The thread is too busy doing all that file reading etc. Put "DoEvents" at
an
appropriate place in your code. Possibly in the progressbar routine.
That will allow the thread to check for user interaction with the GUI and
to respond to the interactions.
HTH
Vince Morgan

Jul 17 '05 #2
Thanks working like a dream.Cannot beleive I am so stupid.
Thanks again
Basil
"Vince Morgan" <vi****@NOSPAMoptusnet.com.au> wrote in message
news:42***********************@news.optusnet.com.a u...

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:Jp********************@is.co.za...
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The

file
is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil


The thread is too busy doing all that file reading etc. Put "DoEvents" at
an
appropriate place in your code. Possibly in the progressbar routine.
That will allow the thread to check for user interaction with the GUI and
to respond to the interactions.
HTH
Vince Morgan

Jul 17 '05 #3

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:t4********************@is.co.za...
Thanks working like a dream.Cannot beleive I am so stupid.
Thanks again
Basil


Not so. Stupid would be not asking...

Jul 17 '05 #4

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:t4********************@is.co.za...
Thanks working like a dream.Cannot beleive I am so stupid.
Thanks again
Basil


Your welcome Basil.
Don't worry, if I hadn't done the same myself at some
point I probably wouldn't have recognised the prob. We
all make mistakes like that from time to time ;)
Regards,
Vince Morgan
Jul 17 '05 #5
Send me the source to see what you've got

Basil Fenix wrote:
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The file
is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil

Jul 17 '05 #6

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

Similar topics

1
by: Beryl Small | last post by:
I have a web application in Visual Studio.Net 2003. On the click event of a button on my .aspx page, I use the following FileCopy SourceFile, DestinationFil the Sourcefile is on a mapped drive...
8
by: Jimbo | last post by:
I'm working on a win app that reads and processes each line of an ascii file until the end of the file. Since the file's 1.6 million lines long, after a while Windows displays the "Not Responding"...
4
by: mattsthompson | last post by:
Im writing a DLL that extends IHttpHandler to intercept requests for a certain file extension and deliver watermarked images. I'm using LeadTools' .NET framework for the image manipulation and it...
6
by: Botak | last post by:
Hi, I wrote an app under vb.net to calculate huge data from MS Sql server. Whenever this app is running, I could not do other work. Or else, the app will become "not responding" but actually it is...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!--...
1
by: Rklawton | last post by:
I've got some CPU intensive VBA code that works just fine. However, I get the application "not responding" message in my task manager while it executes. When this happens (after a few seconds...
1
by: Aegixx | last post by:
Ok, extremely wierd situation here: (I'll post the code below, after the explanation) I've got a Windows application (.NET 3.5) that has a single Form with a DataGridView embedded. The user...
5
by: TC | last post by:
Hey All, I'm trying to upload files via FTP and I'm using FtpWebRequest and WebClient. Unfortunately, I'm receiving a "Not Logged In" error. I know that others have seen this as I've seen...
2
by: dissectcode2 | last post by:
Hi - I know almost nothing about Perl but do program in other languages. I am looking at Perl that I have to modify slightly by printing a "file not found" message if a file is missing from the...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.