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++ Callbacks and Timers » Strange crash connected to Timer
Strange crash connected to Timer [message #25764] Wed, 10 March 2010 21:39 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi,

I've been getting regular but hard to repeat crashes so I let my software go in debug mode and found the attached call stack. I'm not sure if it is something I am doing or a slight bug in UPP that only I see because I run a function that looks like this

void OpenWind::OnTimer()
{
	// update the UI
	
	bool b = AreWeFree();
	
	m_pSaveButton->Enable(b);
	m_pNewButton->Enable(b);
	m_pEditButton->Enable(b);
	
	::SetTimeCallback(1000,THISBACK(OnTimer));	
}


in order to update the state of my toolbar buttons. As you can see, OnTimer is called every second for the whole time my software is running. The crash happens when I am running other threads concurrently. Am only posting this here because the call stack consists entirely of UPP code.

Nick
  • Attachment: callStack.png
    (Size: 44.39KB, Downloaded 298 times)

[Updated on: Wed, 10 March 2010 21:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PostCallback executes 2 at once?
Next Topic: partial parametrizing of Callback<>
Goto Forum:
  


Current Time: Thu Feb 25 19:51:59 CET 2021

Total time taken to generate the page: 0.00987 seconds