[Coin-discuss] Problem with coinUnitTest in Visual Studio

J P Fasano jpfasano at us.ibm.com
Thu May 26 13:09:10 EDT 2005


Hans reported this problem when running coinUnitTest on windows in released
mode:
> Testing CoinIndexedVector
> 3 nElements_ - checkClear
>
> This application has requested the Runtime to terminate it in an unusual
way.
> Please contact the application's support team for more information.
> Press any key to continue

The file /COIN/Coin/Test/CoinIndexedVectorTest.cpp has been changed to fix
this problem.
The changes were:
   diff -r1.3 CoinIndexedVectorTest.cpp
   395c395,396
   <     assert(v2.clean(10.0)==0);
   ---
   >     int numberRemaining = v2.clean(10.0);
   >     assert(numberRemaining==0);

When building in released mode the assert is not getting expanded so the
call to v2's clean method was not getting done.
This caused the checkClear failure in subsequent code.

JP Fasano
jpfasano at us.ibm.com
(914)945-1324  (tie line 862-1324)
COIN-OR www.coin-or.org





More information about the Coin-discuss mailing list