delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
From: | Christopher Faylor <cgf AT cygnus DOT com> |
Message-ID: | <19990220134012.A2877@cygnus.com> |
Date: | Sat, 20 Feb 1999 13:40:12 -0500 |
To: | Murli Ganeshan <murli AT juno DOT com>, cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: runtime STATUS ACCESS VIOLATIONS |
References: | <19990221 DOT 123247 DOT -193569 DOT 1 DOT murli AT juno DOT com> |
Mime-Version: | 1.0 |
X-Mailer: | Mutt 0.93i |
In-Reply-To: | <19990221.123247.-193569.1.murli@juno.com>; from Murli Ganeshan on Sun, Feb 21, 1999 at 12:32:36PM -0600 |
On Sun, Feb 21, 1999 at 12:32:36PM -0600, Murli Ganeshan wrote: >I have a simple c++ program that generates ACCESS VIOLATIONS at >runtime. The same code does not generate any runtime errors while >running the executable generated from djgpp on the same machine. Also, >there are no runtime errors when compiled on a Linux 2.0.36 box or a >SUNos 4.1.4 box. > >I saw some old postings related to ACCESS VIOLATIONS with malloc and >the solution was to replace that with mmalloc. Is there a similar one >for the "new" dynamic memory allocator in c++ that I can use? > >Here's a command line snippet. I would appreciate any >feedback/suggestions to debug the problem. Here's some feedback: Use gdb to debug the problem. The information below doesn't provide any information about where the program is dying. gdb will give you that information. 99.9% of the time this will be due to some kind of programming error in your code, just like on UNIX. > >bash.exe-2.02$ g++ list2.cpp listex2.cxx -o exam >bash.exe-2.02$ exam >[main] C:\MSDEV\PROJECTS\HMWK3\EXAM.EXE 1011 (0) handle_exceptions: >Exception: STATUS_ACCESS_VIOLATION >[main] EXAM 1011 (0) handle_exceptions: Dumping stack trace to >EXAM.EXE.core -- cgf AT cygnus DOT com http://www.cygnus.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |