delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/17/21:20:18

From: gingko69 AT aol DOT com (Gingko 69)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SIGSEGV for unknown reason in wireframe drawer
Date: 17 Aug 1997 20:20:35 GMT
Lines: 8
Message-ID: <19970817202000.QAA05699@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
Organization: AOL, http://www.aol.co.uk
References: <33E5EFDF DOT 580EEEE0 AT mwci DOT net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>>        for( curr_vertex=0; curr_vertex < the_object->num_points;
>> curr_vertex++)

Try the_object->num_points - 1. In your object the first vertex is [0],
the second [1] and so on, so you are eventually accessing one vertex that
doesn't exist.

Gingko

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019