Page 1 of 1

wxTimer Start/Stop/Start sequence

Posted: Mon May 26, 2008 7:27 am
by msdobrescu
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.

Posted: Mon May 26, 2008 8:51 am
by vdell
Please provide some code.

Posted: Thu Jul 17, 2008 5:48 am
by msdobrescu
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).

Posted: Thu Jul 17, 2008 6:44 am
by Jorg
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

Posted: Thu Jul 17, 2008 8:52 am
by msdobrescu
Thanks,

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

Posted: Fri Jul 18, 2008 12:11 am
by Auria
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.