You should check for null-pointers but also try sys_marker or any other method to debug your game (printf/error/diag...)