Form foreground freezing up...

T

tantiboh

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...
 
N

Nicole Schenk

M said:
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.
 
G

Guest

Hi,

Aren't you using worker threads for executing the long-running methods?

Regards,
Rakesh Rajan
 
S

Steve McLellan

M Sutherland said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top