POV-Ray : Newsgroups : povray.general : Interesting bug in Win, memory leak : Re: Interesting bug in Win, memory leak Server Time
29 Jul 2024 10:29:32 EDT (-0400)
  Re: Interesting bug in Win, memory leak  
From: Christopher James Huff
Date: 8 Apr 2004 13:49:12
Message: <cjameshuff-695713.13495808042004@news.povray.org>
In article <Xns94C560E9071CCraf256com@203.29.75.35>,
 "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote:

> Interesting - this spot is beeing in different position in each render 
> (with same source !) so it is some kind of memory-leek or uninitialized 
> variable (btw You dont use tools like Electric Fance to debug?).

A memory leak occurs when memory is allocated but never released. The 
only result is that the program uses more memory than it should...if it 
leaks enough memory, it can use up all that is available. It will not 
cause any difference in the resulting image.

Electric Fence provides "guard pages", areas of memory before and after 
allocations that account for buffer overruns or underruns. This kind of 
error could cause rendering problems, but is more likely to crash. 
Electric Fence does not check for using uninitialized variables or stale 
pointers, and a quick look at the POV-Ray source code will reveal that 
it already includes facilities for debugging memory problems, including 
leaks, double frees, and so on.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.