|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: Pointing to the wrong thing......
*** Hello.
>Therein lies your problem is correct :) When you free() the space, >you are
>saying to the computer/compiler "I am done with this." After >that, the
>results are undefined as to what happens to the space >and/or access
>violations regarding that space.
>
>Only free() space when you are really done with it, since often >compilers,
>especially in debug mode, will write over that space >immediately.
*** Thanks.
I fixed the problem by having the caller function free the space
allocated in the callee. Here are some new logs:
edge1 @ 4F47:0004 = x = 20 y = 90
edge2 @ 4F92:0004 = x = 20 y = 0
edge3 @ 4FDD:0004 = x = 20 y = 90
edge1 @ 4F47:000A = x = 20 y = 89
edge2 @ 4F92:000A = x = 19 y = 0
edge3 @ 4FDD:000A = x = 20 y = 89
edge1 @ 4F47:0010 = x = 20 y = 88
edge2 @ 4F92:0010 = x = 18 y = 0
edge3 @ 4FDD:0010 = x = 20 y = 88
edge1 @ 4F47:0016 = x = 20 y = 87
edge2 @ 4F92:0016 = x = 17 y = 0
edge3 @ 4FDD:0016 = x = 20 y = 87
edge1 @ 4F47:001C = x = 20 y = 86
edge2 @ 4F92:001C = x = 16 y = 0
edge3 @ 4FDD:001C = x = 19 y = 86
*** Thanks all who have helped.
If anyone whats to look at an object oriented implementation of
polygonal scan conversion, letme know.
Josiah.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once
To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html
|
|