Instead of programming the math analyzer myself, I am trying to implement exprtk ( exprtk ) in my project. It works great if I implement it in a console project. However, it does not work in my CLR project. The error says: "Debug verification failed [...] Expression: _CrtlsValidHeapPointer (block) [...]". An error occurs if I write lines
parser<double> parser;
or
symbol_table<double> symbolTable; symbolTable.add_constants();
Some websites say that the _CrtlsValidHeapPointer expression error indicates that the memory address is out of the heap. But since the exprtk.hpp library works fine in a console application, I assume there is another problem. Do you have an idea what could be the real problem?
source share