Originally posted by: R9UA_Ishan_Mukherjee
I am using Visual Studio 2008, C++
I have this line of code in my program:
IloNum r = cplex.getValue(varX[i][j]);
Which is called after I solve a model. When that line is commented there are no problems (other than I can't read my results). When that line is not commented and I try to run the program, I end up getting this error message pop up: Unhandled exception at 0x7655b9bc in routemodel.exe: Microsoft C++ exception: IloCplex::Exception at memory location 0x0018f2b8..
It opens up tidtable.c and takes to here:
_CRTIMP PFLS_GETVALUE_FUNCTION __cdecl __set_flsgetvalue()
{
#ifdef _M_IX86
PFLS_GETVALUE_FUNCTION flsGetValue = FLS_GETVALUE;
if (!flsGetValue)
{
flsGetValue = _decode_pointer(gpFlsGetValue);
TlsSetValue(__getvalueindex, flsGetValue);
}
return flsGetValue;
#else /* _M_IX86 */
return NULL;
#endif /* _M_IX86 */
}
Specifically it points to the error being on this line: PFLS_GETVALUE_FUNCTION flsGetValue = FLS_GETVALUE;
I don't have the technical understanding to have any idea what's going on. How do I fix this?
#CPLEXOptimizers#DecisionOptimization