The following should help you isolate the problem if you are using Visual C++. Load your workspace and open the source code that contains the main() function body. Press your right mouse button on the first line of your function (I believe this is an integer declaration) and select Insert/Remove breakpoint from the context menu. A little red circle should now appear in the left margin next to your line of code. Select Build->Start Debug->Go to start the Visual C++ debugger, when this happens execution will stop at your breakpoint; you can now use the F10 and F11 keys to step through your code. You will also notice that two tabbed windows are present, the first one with the Auto page displays memory/objects in the scope of the functions you are stepping through. The other window is the watch window, you can drag/drop/enter expressions and variables to watch checking for uninitialised memory etc.
In summary using these simple debugging techniques will allow you isolate where you program is failing.
HTH
Neil
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only