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 » 2 questions on ArrayCtrl and tray
Re: 2 questions on ArrayCtrl and tray [message #33437 is a reply to message #33432] Fri, 05 August 2011 13:12 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Exiting the app from the tray or by clicking the red X just exits the app.

I had a problem with this as threads were not terminated and ports/receivers were not closed.

Here are a few lines of code that I used:
		while(!inF.IsEof()){
			if(endApp){if(inF) inF.Close(); break;}



void endX(){
	endApp = true;	
	snd("clear", 0);	
	Sleep(2000);
}	

GUI_APP_MAIN{
	TrackReplay().Run();
	endX();
}


The bool endapp was checked in each thread and closed the open file and then shutdown the thread with "break".

Working with GPS receivers was a real pain if the receivers and the ports were not closed properly.

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Data Transfer
Next Topic: How do i create tabs without using .lay??
Goto Forum:
  


Current Time: Fri Jun 07 03:17:55 CEST 2024

Total time taken to generate the page: 0.01822 seconds