Oh wait, actually I am calling dWorldCreate and dWorldDestroy when it crashes on exit, but that's it. When I take those out, everything's fine. I'm more concerned about this warning "LNK4098: defaultlib "LIBC" conflicts with use of other libs" thing. Does anyone have an idea about this?