delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/03/13:04:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.2.7.2.20030202203358.00a84a80@pop3.12move.nl>
X-Sender: sh511973 AT pop3 DOT 12move DOT nl
Date: Mon, 03 Feb 2003 19:02:42 +0100
To: cygwin AT cygwin DOT com
From: Heino Bukkems <heino_bukkems AT ieee DOT org>
Subject: memory (?) problems when executing c++ program
Mime-Version: 1.0

Hello,

I am running a C++ program under cygwin (OS is win98). In the middle of the 
program I get a windows box saying (translated from Dutch): Program has 
performed illegal operation and will be terminated. This stops the C++ 
program, though not cygwin.

The C++ program is compiled under g++ and is object oriented. Several 
objects are created which contain an array of a given size (not dynamically 
defined). If I reduce the standard arraysize the program does execute, 
which gives me the impression that there is a problem with memory 
allocation/available memory. The size of the objects should however not be 
very large (maybe 10 objects of 100 doubles) and there is more than enough 
memory available.
There is also an interaction with the memory for screen-display. Sometimes 
it helps to use a printf, before the programline that fails, with a \n 
command to keep the program running.

Can someone confirm that this is memory related, or is there another cause? 
How can I solve it? I already tried to define heap_chunk_in_mb (from 
suggestions in mailing list) but this did not make a difference.

Thanks,

Heino


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019