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 » Community » Newbie corner » Program didn't exit in Task Manager after click [X]
Re: Program didn't exit in Task Manager after click [X] [message #55408 is a reply to message #55407] Sun, 08 November 2020 14:32 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Hello peterh,

You are definitely right, it can be confusing sometimes. That is why we have a warning for beginners. Smile

https://www.ultimatepp.org/srcdoc$Core$Caveats_en-us.html

Maybe we should expand the explanation...

About Urr package: I have never used it but indeed there seems to be a problem in Rcv() function.
According to ln: 18, it expects Upp::Null. But on ln 14-15, it does not check the timeout value for Null.
From what I understand, they should be:

time_out.tv_sec = Nvl(timeout, 0) / 1000;
time_out.tv_usec = Nvl(timeout, 0) % 1000 * 1000;


As a side note, I personally wouldn't consider a good practice assigning NULL to anything other than pointers.
(I don't even use NULL fpr pointers anymore as we have nullptr) Smile

Best regards,
Oblivion



[Updated on: Sun, 08 November 2020 15:08]

Report message to a moderator

 
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: report generator
Next Topic: Pie Chart in U++?
Goto Forum:
  


Current Time: Thu May 16 20:31:30 CEST 2024

Total time taken to generate the page: 0.02555 seconds