Ay caramba, it's bigger then I thought!
Okay, have you tried it out in the debugger? I wouldn't be able to spot the problem in something this big that uses libraries I can't see (ie I don't know the function headers).
Off the cuff your main should return 0. If a function in c/c++ returns an integer to indicate success then it should be zero. A non-zero integer is usually used to mean failure. That isn't the issue though.
What type of crash do you get? The exact error message? And can you post the full code somewhere so I can copy/paste and run it? What is the output you get? We still don't have enough info to easily spot it.
__________________
"It better be funny"
|