2008-11-09

"bitBrave" simplification

Due to multiple problems with wxWidgets framework, the first version of "bitBrave" is now expected to be a console application. I have spent a lot of time trying to figure out how to solve those problems but the lack of wxWidgets documentation causes spending too much time on it...

The main problem that occured was unhandled exceptions. As I used timers instead of creating my own threads, sometimes code, executed in them, exceeded their intervals. Also, unhandled exceptions occured if timer was activated during dragging the main frame.

When unhandled exception occures, a message box appears allowing to ignore it, but if ignore option is chosen, it looks like some wxWidgets thread dies, because the main frame becomes not draggable and timer stops.

At first I had an idea to stop the timer for as long as timer code execution finishes and then restart it, but it failed as wxWidgets didn't allow me to do that. Also, I tried to catch the exception in many different ways, but it simply didn't work.

At this point, most of bit torrent code is already finished and tested. I still have to create a user interface and several small classes. The first downloadable version is expected to be finished in one to two weeks.

No comments: