You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2019. It is now read-only.
Brief Description
I wrote a driver of my own to use CLP libraries. This was working fine with Windows XP for months.
Then I needed to move to Windows 2008 Server and the application crashes at the end. After that I ran a test in Windows 7 and it fails too.
Steps
I ran the driver in Windows 2008 Server, it loads the model and solves it. The solution is fine, but the program crashes when it is about to end.
The problem happens when it calls the destructors to free the memory of the variables/objects when the main() scope ends.
Debugging the application I found that the problem is the gutsOfDelete() function from ClpModel? class. Specifically, the following statements:
In debug mode, the following assertion in the operator delete function fails:
/* get a pointer to memory block header */
pHead = pHdr(pUserData);
/* verify block type */
_ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
In release mode, it throws an unhandled exception for access violation reading a memory block (see attachment).
I already tried adding try/catch blocks to the involved statements in the gutsOfDelete() function, but still not catching the exception. Tried CoinError? and generic exceptions without luck.
I'm using Visual Studio 2008. Also, when debugging the issue, the watch window shows that the pHead->nBlockUse checked in the assertion, is invalid (see attachment).
This gutsOfDelete() function is called many times during the different phases of the solving procedure, but it only fails in the last phase, when memory is being freed.
The text was updated successfully, but these errors were encountered:
Moved from TRAC as part of COIN fORgery: https://projects.coin-or.org/Clp/ticket/36
Brief Description
I wrote a driver of my own to use CLP libraries. This was working fine with Windows XP for months.
Then I needed to move to Windows 2008 Server and the application crashes at the end. After that I ran a test in Windows 7 and it fails too.
Steps
I ran the driver in Windows 2008 Server, it loads the model and solves it. The solution is fine, but the program crashes when it is about to end.
The problem happens when it calls the destructors to free the memory of the variables/objects when the main() scope ends.
Debugging the application I found that the problem is the gutsOfDelete() function from ClpModel? class. Specifically, the following statements:
Those are double *.
In debug mode, the following assertion in the operator delete function fails:
In release mode, it throws an unhandled exception for access violation reading a memory block (see attachment).
I already tried adding try/catch blocks to the involved statements in the gutsOfDelete() function, but still not catching the exception. Tried CoinError? and generic exceptions without luck.
I'm using Visual Studio 2008. Also, when debugging the issue, the watch window shows that the pHead->nBlockUse checked in the assertion, is invalid (see attachment).
This gutsOfDelete() function is called many times during the different phases of the solving procedure, but it only fails in the last phase, when memory is being freed.
The text was updated successfully, but these errors were encountered: