MySQL++

Example programs crash on exit in Release mode but not Debug mode
Login

Example programs crash on exit in Release mode but not Debug mode

(1) By anonymous on 2018-10-18 17:27:08 [link] [source]

Hello,

I downloaded the latest 3.2.4 and built it on Windows with VS2017. When I run the resetdb and simple1 examples in the debug build, everything works, but when run in Release mode the programs work but then crash at the end. Per this thread here, this is likely due to overrunning an array:

https://stackoverflow.com/questions/186237/program-only-crashes-as-release-build-how-to-debug

The specific error is:

Unhandled exception at 0x00007FFA5436842B (ntdll.dll) in resetdb.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFA543CC6E0).

(2.2) By Warren Young (tangent) on 2022-05-25 06:00:12 edited from 2.1 in reply to 1 [source]

I've tried working on this, but it's complicated by the fact that Visual Studio 2017 doesn't appear to import the VS2008 project files correctly. That makes me assume you're building using hand-built project files.

Regardless, I cannot replicate the behavior you're seeing.

I'm thinking it's time to abandon Bakefile, which then makes me wonder what to switch to. I'm currently thinking it should be CMake.