[CoinUtils-tickets] [COIN-OR Common Utilities] #45: Win32 Memory problem (bad allocation)

COIN-OR Common Utilities coin-trac at coin-or.org
Wed Feb 6 09:22:21 EST 2008


#45: Win32 Memory problem (bad allocation)
------------------+---------------------------------------------------------
Reporter:  tomba  |       Type:  defect  
  Status:  new    |   Priority:  critical
 Version:  2.0.0  |   Keywords:          
------------------+---------------------------------------------------------
 We are using CBC version 2.0.0 (CBCSolve standalone console application
 with little modification to make MPS file), to perform a MILP binary
 problem on win32 platform (windows XP). Program is compiled by MS Visual
 Studio 2005 version 8.0.50727. In many cases it works fine, but here we
 have one case (TZ.MPS file) where after some time (about half hour -
 depends on processor power) exception std::bad_alloc is raised. A new
 operator, from which exception is raised, is located in
 CoinPackedMatrix.cpp line 2459.
 {{{
  int * newIndex = new int[maxSize_];
  where maxSize_=33736
 }}}

 Lack of memory is not the problem! During the execution of program,
 memory, seeing from Windows Task Manager, raised from 30MB to 70MB, but
 more then 1GB of RAM was free.

 Identical or similar problem was detected by AJK (CbcModel?.cpp, line5369)

 Questions: Is there something that we can modify in our system that will
 help to solve this problem on Win32 platform?

 Attached files:

 Example.zip - MPS file to perform CBC test

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/45>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list