File attached to message.
With this code, the input loop for the vector won't run. And there's also a heap corruption error occurring in get_from_jack() in there somewhere. When I allocate more than 13 or so doubles for data_arr sometimes. And even though it'll definitely leak memory without the delete[] on line 146, having it there triggers a breakpoint and it shows me this code:
void __CRTDECL operator delete(void* const block) noexcept
{
#ifdef _DEBUG
_free_dbg(block, _UNKNOWN_BLOCK);
#else
free(block);
#endif
}
the red mark indicating a breakpoint is on the _free_dbg(block, _UNKNOWN_BLOCK); line.
Would someone please help me out here? Thanks in advance.