nickgillian / grt

gesture recognition toolkit
853 stars 286 forks source link

Debug Build doesn't seem to work in Windows x64 #143

Open morphogencc opened 6 years ago

morphogencc commented 6 years ago

I'm back to trying to get the GRT to work with Windows and Cinder...

I was able to compile a 64-bit version of the .dll and .lib files on Windows by downloading CMake and running the following command in the PowerShell:

cmake -G "Visual Studio 14 2015 Win64" -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TOOLS=OFF ..

I used TinderBox to create a Cinder project for Visual Studio 2015, and in Visual Studio I added:

After doing this, I can include GRT.h into a Cinder project, so I assume that the files are linked properly.

I added the "Getting Started" tutorial code to the setup() function of Cinder, as shown:

https://gist.github.com/morphogencc/5a79631f8e1d343ca024fc870729c99f

The original code is from https://github.com/nickgillian/grt/blob/master/examples/Tutorials/GettingStarted/GettingStarted.cpp

When I run this, the code runs into 2 breakpoints, and then crashes with:

Debug Assertion failed!

Progarm: [ ... ]
file: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 980

Expression: __acrt_first_block == header

This only seems to happen in the Debug build; if I switch over to the Release dll and lib files, everything works fine.

Has anyone else had a similar issue?