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 Message-ID: From: "Lincoln, W. Terry" To: "'linus AT odd DOT com DOT au'" Cc: "'Cygwin Mailing List'" Subject: RE: B20: Strange STATUS_ACCESS_VIOLATION Exception Date: Wed, 26 May 1999 18:23:48 -0400 X-Mailer: Internet Mail Service (5.5.2448.0) linus AT odd DOT com DOT au wrote: > > This is the information about the bug > > System used: > Cygwin beta 20.1 > Windows 98 > Intel Celeron 266 > > Attached is the source code, core dump, cygcheck -s -v -r > output and the > Makefile. (My appologies for attaching file in mailing list, > this is the > first time I report a bug and I am not sure if this is appropriate). > > To reproduce the error, do: > > BASH.EXE-2.20$ make > BASH.EXE-2.20$ ./a.exe <-- This is the good version > BASH.EXE-2.20$ make test > BASH.EXE-2.20$ ./a.exe <-- This has a STATUS_ACCESS_VIOLATION > > The only different in the two programs is in the following two source > files: > > 1) ass5.cpp > 2) test.cpp > > Special thanks for Cygwin group at Cygnus Solutions for making Cygwin > available. FWIW: You might try adding the following: To array.h: template ARRAY::ARRAY( int min, int max) { items = 0; // <-- Should have this (or NULL) make( min, max); } To dbtable.h: void add(const int idx, const T new_item) // <-- "void" return type { ROW *r; r = new ROW( idx, new_item); table->grow( table->upper + 1); table->put( r, table->upper); } See if it works better. Other than that I can't see any problems except for missing destructors. Be Well. W. Terry Lincoln - Senior Engineer \ \ _ / Ultimate Technology Corporation \ \ |J| / a Tridex Company (NASDAQ:trdx) \ _|E|_ ICQ \ |_ S _| \ |U| \ / |S| \ \ | | ================================================== ~~~~~ Opinions expressed do not represent the management of UTC. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com