wxTimer Start/Stop/Start sequence Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
msdobrescu
Knows some wx things
Knows some wx things
Posts: 35
Joined: Wed Sep 08, 2004 6:22 am

wxTimer Start/Stop/Start sequence

Post by msdobrescu » Mon May 26, 2008 7:27 am

Hello,

I need a timer to do some operations.
It initializes well, starts successfully, triggers the 'OnTimer' event. Here, I use Stop (to avoid it being triggered during its task), then I try to re-start. At this point the application crashes with illegal operation.

What is wrong?

I use Code::Blocks 802 or build 5074 on Windows XP, with VC++ 2008 Express Edition.

Thanks in advance.

vdell
Moderator
Moderator
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland
Contact:

Post by vdell » Mon May 26, 2008 8:51 am

Please provide some code.
Visual C++ 9.0 / Windows XP Pro SP3 / wxWidgets 2.9.0 (SVN) | Colligere

msdobrescu
Knows some wx things
Knows some wx things
Posts: 35
Joined: Wed Sep 08, 2004 6:22 am

Post by msdobrescu » Thu Jul 17, 2008 5:48 am

Hi,

The code is too complex to post it.
I will try to find the issue myself.
It must be my bug.

I just wanted to know, at least, if there is anybody facing this situation and why (if possible).

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Thu Jul 17, 2008 6:44 am

If you can't post a snippet of how you create the wxTimer, what your even looks like and what you do to restart it, then we can't be of much help. And no this seems an error in usage as I have never experienced behviour like that.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

msdobrescu
Knows some wx things
Knows some wx things
Posts: 35
Joined: Wed Sep 08, 2004 6:22 am

Post by msdobrescu » Thu Jul 17, 2008 8:52 am

Thanks,

The logic of using that timer must be wrong, but that's in several parts of code...

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Fri Jul 18, 2008 12:11 am

Try reproducing the issue in a small sample. Or copy your program and trim it down until only this issue is left. In the process of doing this you may as well find the problem.

Post Reply