From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: a rather strange error with global variables... Date: Wed, 21 Oct 1998 13:09:59 -0700 Organization: Alcyone Systems Lines: 29 Message-ID: <362E3F97.6B4816B1@alcyone.com> References: <70k64a$gu$1 AT katie DOT vnet DOT net> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.34 i686) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Paul Byrne wrote: > I've been getting some unusual errors with a program I'm writing. I > was > writing temporary code to help test some new classes. I included the > following global variables ... > and everything worked fine. However, simply changing the order ... > causes problems. Everything compiles fine. Running produces a > SIGSEGV. > Further playing with the order produces a range of ugly errors. You're going to have to give us more information. Where is it crashing? Have you debugged it? Likely you're overrunning a buffer, which, with the previous order, just happens to allow the pointer to hit the next buffer, and so doesn't cause a crash in one order, but does cause one in another. As for "range of ugly errors," no one can help you unless you tell us what those errors are. -- Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/ USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE \ / An ounce of hypocrisy is worth a pound of ambition. / Michael Korda