Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Bug with socket
Bug with socket [message #31550] Sun, 13 March 2011 11:51 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
App hangs, endless loop, CPU near 100% on one core.
This is only when the server is unavailable.
win32-3274

This can be duplicated with: C:\upp\reference\SocketClient
	Socket s;
	if(!ClientSocket(s, "127.0.0.1", 5024)) {


This is when compiled with Win XP with MSC9, 10 or Mingw
It runs OK in Win.

When running the app in Ubuntu 10.10 with Wine is when it hangs.

It took me more than 8 hours to track it down, much of that time
was spent looking for errors in my code.

Finally I was able to find that older versions of Upp worked OK.
Copying socket.cpp and socket.h from the older versions into the
latest (3274) worked also.

Checked to see where the problem started:
3226 and earlier OK
3233 and later it just hangs at, "if(!ClientSocket(s ...".
try/catch will not work either.

Neil

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: XmlRpc: possible crash fixed
Next Topic: A new function to Web Package Unicode-Escape-Javascript -> Unicode
Goto Forum:
  


Current Time: Sun Apr 28 21:22:30 CEST 2024

Total time taken to generate the page: 0.03511 seconds