your turn now mate...come on dude, i made a new project, created the two files, got it to compile and stepped through the debugger a couple of times, and gave you info on what was going on when it crashed...you wrote it, you should well be able to sort it out now