Status & Roadmap
Authors & License
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
Re: Strange crash connected to Timer [message #25797 is a reply to message #25796] Fri, 12 March 2010 08:32 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13252
Registered: November 2005
Ultimate Member
nixnixnix wrote on Thu, 11 March 2010 20:14

Hi Mirek,

The other threads listed are all in either ntdll.dll or in USER32.dll. In each case there is no call stack to paste here, just an address within each dll. They are below:

thread ID | DLL | address
0x80c - this is the thread which was described in my original post
0x564 | USER32.dll | 0x768f7e47
0x610 | ntdll.dll | 0x77cf00fd
0xbf8 | USER32.dll | 0x768f7e47
0xf84 | ntdll.dll | 0x77cefd31
0xcf0 | ntdll.dll | 0x77cf1ee6

My app ran for almost 200 iterations before it hit this. Sometimes its as few as 13 iterations. Other times it can run for over 5000 iterations.

EDIT: how do I copy and paste the callstack please? I've tried various things but can't quite figure it out. Also, I have disabled the OnTimer method and still get the crashes. I think I have a better example to paste but it would be good to know how to copy the callstack.

Have tried to look into Debug menu?


EDIT2: I do not use GuiLock but I didn't think I needed to if I always use PostCallback to update the interface. Is this correct?

Yes. But possible problem is that it is way too easy to call something that actually needs GuiLock. E.g. reading some data from some widget or doing some operation that access GUI. (Remember that problem last time with ImageDraw?)


What if I have several threads posting GUI related callbacks to a function in the main thread?

That should not be a problem.
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: Sun Apr 11 09:48:20 CEST 2021

Total time taken to generate the page: 0.01159 seconds