From: Chris Jones Newsgroups: comp.os.msdos.djgpp Subject: Re: SIGSEGV problem with DJGPP (deleting array) Date: Wed, 14 Apr 1999 22:51:48 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 27 Message-ID: <7f3660$4f4$1@nnrp1.dejanews.com> References: <7f0g7a$qg7$1 AT nnrp1 DOT dejanews DOT com> <7f0h9o$u6g$1 AT news8 DOT svr DOT pol DOT co DOT uk> <7f0sse$51k$1 AT nnrp1 DOT dejanews DOT com> <7f2ah3$m1t$1 AT news6 DOT svr DOT pol DOT co DOT uk> NNTP-Posting-Host: 128.40.205.1 X-Article-Creation-Date: Wed Apr 14 22:51:48 1999 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95) X-Http-Proxy: 1.1 x15.dejanews.com:80 (Squid/1.1.22) for client 128.40.205.1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <7f2ah3$m1t$1 AT news6 DOT svr DOT pol DOT co DOT uk>, "Michael Stewart" wrote: > >The function (which just reads the 2nd element) works OK and gives the > correct > >output, but then the program aborts before perfoming the cout! > > Post the get_elelement_at function I've sorted that problem now, but there are more.... I should really rewrite a lot of the code as it all looks inefficient now anyway (funny how it seemed perfectly sensible when I wrote it), not to mention plain wrong in places. I'll attack it myself for the next few days, as an exercise, and if I can't resolve anything I'll ask in here. (Perhaps I should explain that I'm not a proper programmer, but an astrophysicist who's been asked to write a planet orbit simulation after only 8 hours tuition. And I'm finding it heavy going!) Many thanks to all who posted/emailed help and advice. -- Chris Jones "Everybody who believes in psychokinesis, raise my right hand" -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own