I've got a program that is heavily processor intensive when it's being run. At seemingly random intervals, the program's foreground locks up and doesn't refresh until it has completed its processes. The lockup doesn't occur every time the program is run, though rest assured it will occur if the program is run long enough (usually about 45 secs). In addition, it always happens if I switch to a different application, whether I switch back or not. I assume it's a problem with Windows, but I haven't been able to find a workaround. Neither Refresh nor sleep statements make any difference.
I assume that it's a problem others have encountered. Anybody know a solution or workaround? Or even a cause?
I'm running Windows XP.
Thanks.
*************** *************** *************** *************** **********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... 3 1005
M Sutherland (ta******@hotma il.com) wrote: I've got a program that is heavily processor intensive when it's being run. At seemingly random intervals, the program's foreground locks up and doesn't refresh until it has completed its processes. The lockup doesn't occur every time the program is run, though rest assured it will occur if the program is run long enough (usually about 45 secs). In addition, it always happens if I switch to a different application, whether I switch back or not. I assume it's a problem with Windows, but I haven't been able to find a workaround. Neither Refresh nor sleep statements make any difference.
I assume that it's a problem others have encountered. Anybody know a solution or workaround? Or even a cause?
I'm running Windows XP.
Thanks.
*************** *************** *************** *************** ********** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
You may try Dispose more often. The GC is hanging your machine.
Hi,
Aren't you using worker threads for executing the long-running methods?
Regards,
Rakesh Rajan
"M Sutherland" wrote: I've got a program that is heavily processor intensive when it's being run. At seemingly random intervals, the program's foreground locks up and doesn't refresh until it has completed its processes. The lockup doesn't occur every time the program is run, though rest assured it will occur if the program is run long enough (usually about 45 secs). In addition, it always happens if I switch to a different application, whether I switch back or not. I assume it's a problem with Windows, but I haven't been able to find a workaround. Neither Refresh nor sleep statements make any difference.
I assume that it's a problem others have encountered. Anybody know a solution or workaround? Or even a cause?
I'm running Windows XP.
Thanks.
*************** *************** *************** *************** ********** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
"M Sutherland" <ta******@hotma il.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. I've got a program that is heavily processor intensive when it's being run. At seemingly random intervals, the program's foreground locks up and doesn't refresh until it has completed its processes. The lockup doesn't occur every time the program is run, though rest assured it will occur if the program is run long enough (usually about 45 secs). In addition, it always happens if I switch to a different application, whether I switch back or not. I assume it's a problem with Windows, but I haven't been able to find a workaround. Neither Refresh nor sleep statements make any difference.
I assume that it's a problem others have encountered. Anybody know a solution or workaround? Or even a cause?
I'm running Windows XP.
Thanks.
Hi,
Check your app's memory usage in Task Manager - is it consuming an unusual
(and growing) amount of memory?
Steve This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: oran johnson |
last post by:
If Form.TopMost = true, will the form appear even if the associated
application is not the active or foreground application?
Thanks.
|
by: one2001boy |
last post by:
Hello,
I have an executable file lanuched from another application.
is there a way to make thie executable file foreground if it is launched
from other application? Thanks.
|
by: Ioannis Vranos |
last post by:
Why in this code the form *does not refresh* when it gets the focus/after some time?
#using <mscorlib.dll>
#using <system.windows.forms.dll>
#using <system.dll>
#using <system.drawing.dll>
|
by: |
last post by:
How do I control the layering of 4 forms of identical size and position to
cause the desired form to be second from the top..
Form1 has my welcome screen etc.and the code for file manipulations etc. etc
Form2 has a foreground image of a decorative picture frame (,png image) with
a transparent center, and a tab control for the user to select .bmp
pictures to view.
Form3 has a "picturebox" into which is loaded the user.bmp file image
|
by: bearophileHUGS |
last post by:
Most of my ideas seem usless or stupid, but I think expressing them
here doesn't harm much.
This is an idea for Py 3.0, because it's not backward compatible.
Dicts and sets require immutable keys, like tuples or frozensets, but
to me they look like a duplication. So the idea is to remove tuples and
frozensets (and replace the few other uses of tuples with lists, like
the % interpolation), and to add a freeze operation, to freeze lists,...
| |
by: ghadley_00 |
last post by:
Hi,
Can anyone recommend a piece of VBA code I could attach to a button in
a MS Form form that will close the current form and bring the
switchboard to foreground. I'm trying to integrate a form of buttons
into the way the switchboard gets used.
Best wishes,
George Hadley
|
by: Michael B. Trausch |
last post by:
Alright... I am attempting to find a way to parse ANSI text from a
telnet application. However, I am experiencing a bit of trouble.
What I want to do is have all ANSI sequences _removed_ from the output,
save for those that manage color codes or text presentation (in short,
the ones that are ESChttp://fd0man.theunixplace.com/Tmud.tar
which contains the code in question. In short, the information is
coming in over a TCP/IP socket that...
|
by: Bodyboarder20 |
last post by:
Hello!
So im working on an applicaiton that all pretty much sits on a single
form.
When the application completes a task, I'd like it to use
FlashWindow() to notify the user that it has completed. I have this
part working; however, I cant seem to find the right event to use to
Stop the flashing.
|
by: M O J O |
last post by:
Hi,
How can I force a form to the foreground no matter what application is
in front?
Thanks!
M O J O
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |