Tuesday, December 22, 2009

Week 13 Day 2

Today I fixed the memory bug that was discovered yesterday, and it was due to the fact that when initalizing the rubic cube, the program will "hang" for 2-3 seconds, and during that time, the thread gets to run first before the main method have the chance to initialize an IplImage variable, and hence this resulted in the thread modifying an uninitialized variable.

The problem was fixed by implementing an if-else to only allow the program to proceed to process image if the variable required was not null.

I have also implemented proper positioning for the windows of the rubic cube application (the rubic cube windows won`t stack on each other now), and also the exit function which will exit the program.

Currently I am working on the save and load functions for the min and max hue, saturation and value for each color, and will complete that by tmr

No comments:

Post a Comment