Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Please clarify: what is the runtime error? Commented Nov 12, 2008 at 10:35
  • Unfortunately, I am not sure what the runtime is. I am using Dev-c++ to compile and the runtime is "mysql.exe has encountered an error and needs to close" Commented Nov 12, 2008 at 10:38
  • (1) Make sure where the runtime error really occurs. since mysql.exe fails, I'd expect it's not exactly crashing on that line (2) How is "query" declared? (3) Inspect the resulting query string (output to log file, debug trace, or simple in the editor). Is it OK? Commented Nov 12, 2008 at 14:27
  • Have you tried stepping into/or over the strcat() call in a debugger? What's getting passed to it? Commented Nov 12, 2008 at 18:53