I have a project that I am working on. This is basically an extension of that. There is this weird error (Seg fault) when I run this code. What makes this error weird is that I print the value stored in the pointer and in the next line I pass that in a function at the curly braces where the function starts it throws an error saying "Cannot access memory location". GDB shows that a new thread was being created, I believe that thread invalidated the memory but the question is why. I have no clue. Appreciate your help. It's lots of files there so you can check it out using following command if you have svn installed:
svn checkout http://logic-simulator.googlecode.com/svn/trunk/ logic-simulator-read-only
The error is when we call InsertItems function. Thanks for looking.