[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #43: Win32 memory allocation problem.

COIN-OR Branch-and-Cut MIP Solver coin-trac at coin-or.org
Wed Feb 6 07:41:09 EST 2008


#43: Win32 memory allocation problem.
-------------------------+--------------------------------------------------
  Reporter:  tomba       |       Owner:  somebody              
      Type:  defect      |      Status:  new                   
  Priority:  blocker     |   Milestone:  milestone1            
 Component:  component1  |     Version:  2.0                   
Resolution:              |    Keywords:  Win32 memory fault CBC
-------------------------+--------------------------------------------------
Comment (by tomba):

 Replying to [comment:2 jpfasano]:
 > I have duplicated the problem in debug mode with the code from trunk
 using the MS V8 compiler.[[BR]][[BR]]
 >
 > The message displayed in a popup window is "Unhandled exception at
 0x7c812a5b in cbc.exe: Microsoft C++ exception: std::bad_alloc at memory
 location 0x001219dc."[[BR]][[BR]]
 >
 > It occurs at line 2608 of !CoinPackedMatrix.cpp which is
 > {{{
 >    double * newElem = new double[maxSize_];
 > }}}
 > where maxSize_ is 32412.[[BR]][[BR]]
 >
 > I don't know if this is a Cbc(or !CoinUtils) problem. The Operating
 system is failing to return the requested memory.


 You are right. The problem was detected in Cbc project, but it is problem
 in CoinUtils project. We report this problem in CoinUtils project.

 We try to catch exceptions in our calling program, but we lost any
 information about solution process. Before exception Cbc find Best
 Objective and Best Possible Objective solution. [[BR]]

 Q: How to save this current solution after exception (memory bad
 allocation) ?[[BR]]
 Q: How to solve memory lack because no memory deallocation when exception
 raised. [[BR]]
 Q: Who can help about this problem?

 Thanks a lot,

 Tomba

-- 
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/43#comment:3>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.



More information about the Cbc-tickets mailing list