hangs

PHP sleep() silently hogs CPU

I'm running Apache on Linux within VMWare. One of the PHP pages I'm requesting does a sleep(), and I find that if I attempt to request a second page whilst the first page is sleep()'ing, the second page hangs, waiting for the sleep() from the first page to finish. Has anyone else seen this behaviour? I know that PHP isn't multi-threaded...

DELETE Statement hangs on SQL Server for no apparent reason

Edit: Solved, there was a trigger with a loop on the table (read my own answer further below). We have a simple delete statement that looks like this: DELETE FROM tablename WHERE pk = 12345 This just hangs, no timeout, no nothing. We've looked at the execution plan, and it consists of many lookups on related tables to ensure no fo...

Detecting appilcation hangs with ActiveX controls in .Net

I am working on upgrades to a screen scraping application. We are using an ActiveX control to scrape screens out of an IBM mainframe. The mainframe program often hangs and crashes the ActiveX control causing our application to crash. We don't have access to the mainframe or the ActiveX source code. We are not going to write our own activ...

ProcessStartInfo hanging on "WaitForExit"? Why?

I have the following code: info = new System.Diagnostics.ProcessStartInfo("TheProgram.exe", String.Join(" ", args)); info.CreateNoWindow = true; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; info.RedirectStandardOutput = true; info.UseShellExecute = false; System.Diagnostics.Process p = System.Diagnostics.Process.Star...

Java applet: IE Browser hangs after opening a file dialog. Workaround?

This is a registered bug (Bug ID: 6515708) but does anyone have a workaround for it? Scenario javascript calls OpenDialog() method in applet applet starts new thread which opens the AWT FileDialog on completion, the file name is read and the javascript method OnDialogComplete is called At this point the dialog is disposed and (on some...

Excel web query times out

I have an excel page that runs a series of web queries that call reporting services reports and thencut-n-paste that into powerpoint. from time to time, the query hangs and brings the app to a screeching halt. is there a way to maybe put that into a loop and keep looping until the web query actually brings back some data? ...

Windows: Under what circumstances might SetEvent() not return immediately?

I have a thread that, when its function exits its loop (the exit is triggered by an event), it does some cleanup and then sets a different event to let a master thread know that it is done. However, under some circumstances, SetEvent() seems not to return after it sets the thread's 'I'm done' event. This thread is part of a DLL and the...

glGetError hangs for several seconds

I am developing an OpenGL application and I am seeing some strange things happen. The machine I am testing with is equipped with an NVidia Quadro FX 4600 and it is running RHEL WS 4.3 x86_64 (kernel 2.6.9-34.ELsmp). I've stepped through the application with a debugger and I've noticed that it is hanging on OpenGL calls that are receivin...

How to find out what Eclipse is doing in backround?

OS X 10.5.6. My Eclipse 3.4 is going crazy lately. After innocent operations like typing text or moving some files in Navigator view or saving, it sometimes starts "waiting on background operation", and eats one CPU core, shuffling back and forth tens of megabytes of memory. I suspect some of plug-ins went rogue. How can I find whic...

Visaul C++ 2005 hangs during qt builds

At my shop, the main product app is a mongrel built on MFC, QT and other random things devs have thrown in over the years. In the current stack, Qt toolkit is on the way out, but still features heavily. If I have SQL 2005 Management studio open and have to do a full build, it usually hangs a CPU (even after the offending process is take...

Command Line Windows Hanging in RDP Windows

We regularly access the build machine through RDP and it there are lots of command line windows that open. Sometimes these windows hang like someone switched focus to them and press the Pause key. Tapping the keyboard moves the process along, but every once in a while this is missed and everyone waits on the process to finish while it ...

javascript hangs browser

xmlDoc.load("cd_catalog.xml") var cd=xmlDoc.getElementsByTagName("CD"); var id_set=1; var id=xmlDoc.getElementsByTagName("ID"+id_set); i=0; function next() { if (i<id.length-1) { i++; display(); } } function display() { document.write('<div class="dd">') document.write('<div class="blue" style="WIDTH:') document.w...

Why does this python code hang on import/compile but work in the shell?

I'm trying to use python to sftp a file, and the code works great in the interactive shell -- even pasting it in all at once. When I try to import the file (just to compile it), the code hangs with no exceptions or obvious errors. How do I get the code to compile, or does someone have working code that accomplishes sftp by some othe...

Difference between a program that crashes and program that hangs

What is the difference (or causes) between a program that crashes and a program that hangs (becomes unresponsive) in C++? For sure, accessing invalid memory causes a program to crash. Deadlock in threads may cause a program to hang. What are the other causes? Does exhausting all memory causes a program to hang? or crash? I'm a bit conf...

Qt4 QNetworkManager Hangs

I'm trying to write an application using QNetworkManager. I have simplified the code down to the problem. The following code hangs, and I have no idea why: main.cpp: #include <QApplication> #include "post.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); post("http://google.com/search", "q=test"); return a...

Android Moto Droid Camera Hangs EVERY Time onTakePicture, WHAT AM I MISSING?

All, I've googled over and over again to find a solution and while I found a bug regarding camera release, etc I can not for the life of me seem to get the cam code to work. Every time I executed takePicture the system simply hangs, sometimes it calls the PictureCallback, but most of the time it simply hangs. Weird issues about not bei...

"ssh example.com" hangs but "ssh example.com bash -i" does not

Hello, everyday I encounter a very strange phenomenon. From my university internet connection, sshing to my machine ("ssh example.com") works without any problems. From my home adsl, "ssh example.com" my console gets stuck with this message: debug1: Server accepts key: pkalg ssh-rsa blen 533 debug1: Enabling compression at level 6....

Why does this MySQL Query hang?

SELECT * FROM tbl_order_head AS o INNER JOIN tbl_orders_log AS c ON o.PAYMENT_TRANSACTION_LOG_ID=c.TRANSACTION_ID WHERE o.VISUAL_ID = '77783'; tbl_order_head 67,000 (30 fields) records, tbl_orders_log 17000 (5 fields) records. I don't know if it would eventually return as I am running it on a live server and fear overloading. I am do...

Any reason why NGEN should hang and never complete for a particular assembly?

I have a class library project for .NET 3.5 built with Visual Studio 2008. If I try to NGEN the core assembly in this solution file, NGEN never completes, or at least not in the time I've bothered to let it run (like overnight). Has anyone else experienced this? And if so, did you solve it? And if you did, how? What steps did you take?...

WSACONNREFUSED when connecting to server

I'm currently working on a server. I know that the client side is working (I can connect to www.google.com on port 80, for example), but the server is not functioning correctly. The socket has socket()ed, bind()ed, and listen()ed successfully and is on an accept loop. The only problem is that accept() doesn't seem to work. netstat sh...