Skip to content

Win32 Memory problem (bad allocation) #45

Open
@svigerske

Description

@svigerske

Issue created by migration from Trac.

Original creator: tomba

Original creation time: 2008-02-06 14:22:21

Version: 2.0.0

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions