Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco::ActiveResult wait() seems to cause deadlock

Please post support and help requests here.

Poco::ActiveResult wait() seems to cause deadlock

Postby francisr » 29 Dec 2007, 04:05

When calling the wait() method Visual Studio (Windows XP) gives the following debug message:
First-chance exception at 0x7c812a5b in app.exe: 0x000006BA: The RPC-server is unavailable.

And the program never gets past the wait method, it hangs there forever. When interrupting using the debugger Visual Studio says: "The process appears to be deadlocked (or is not running any user-mode code)."

When debugging I found that the exception is thrown in the call gethostbyname() in the method DNS::hostByName in file DNS.cpp.

Funny is that this code used to work. I think it stopped working after unplugging one of the network cables that enable an ad-hoc network for my laptop. However, my pc still has internet access (all internet apps still work).

Any pointers on the cause of this problem, or hints on solving this?

I would greatly appreciate your thoughts on this.

Francis
francisr
 
Posts: 21
Joined: 09 Dec 2007, 13:19

Re: Poco::ActiveResult wait() seems to cause deadlock

Postby francisr » 30 Dec 2007, 02:58

Ok, never mind, I fixed it. It was an entirely different issue ( I was calling the windows function SendMessage in the ActiveMethod and this caused thread locking issues, my fault).
francisr
 
Posts: 21
Joined: 09 Dec 2007, 13:19


Return to Support

Who is online

Users browsing this forum: No registered users and 6 guests

cron