I am writing a program (as part of a larger app) that uses the MYSQL C API. Some initial code seemed to work fine, but then I did something more complicated and got a crash whe