Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [129.78.64.17] From: "Gareth Pearce" To: cygwin AT cygwin DOT com Subject: Re: Cygwin seg faults using dyn. memory Date: Fri, 22 Feb 2002 05:44:52 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 22 Feb 2002 05:44:53.0607 (UTC) FILETIME=[0D395770:01C1BB64] > >cygwin seg faults when i attempt to assign values to >allocated dynamic memory. The same code isn't >seg-faulting on a Compaq Tru64 UNIX V5.1A machine. > > is there a setting where the heap needs to be >adjusted? are there libraries i need to include that >i haven't? > >here's the embarassingly simple problematic code: > >#include "Name.h" >#include "readItem.h" >#include >#include > >using namespace std; > >int main() { > >Name * dummy2; >dummy2 = new Name; >cin >> dummy2; >cin >> *dummy2; >cout << *dummy2; > >return 0; >} >--------------------------------------------------- since you havent given the contents of your local header files nor your compile line ... I dont see how the solution is going to be forthcomming. Gareth _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- 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/