i got the problem, that my program chrashes in an endless loop in my main() func. but i have no idea why. (when the program is running press a key and it will crash - see the code where *g*)
This are the main parts of my code (i cut a bit around - it would be too much code to post it all), so there may be some unused variables and stuff like this....
i'm sorry for the much code - but i'm not able to reduce it more
see the attached files