POV-Ray : Newsgroups : povray.unix : Call for help with experimental development : Re: Call for help with experimental development Server Time
2 Dec 2022 21:26:12 EST (-0500)
  Re: Call for help with experimental development  
From: clipka
Date: 14 Jul 2016 14:35:41
Message: <5787db7d$1@news.povray.org>
Am 14.07.2016 um 19:43 schrieb Le_Forgeron:

> Looking at the output of Semaphore, the error location is bogus.

Oh really, is it? I wouldn't have noticed ;)

> It is probably in shapes.inc, but at line 976, not 312.

Now why exactly would you think that? I don't see a "max" in line 976
either.

Never mind, I've found the culprit. The code by which I'm copying the
macro code from the buffered text stream into memory was buggy for any
macro that was too large to fit entirely inside the buffer.

The problem did not manifest on Windows due to the larger buffer size
setting of 64k, as opposed to 0.5k on Unix. The Mac version also
presumably uses a larger buffer size.

The misplaced "max", btw, happened to be the second one in line 324,
which is exactly 512 characters after the start of the macro (presuming
Unix line endings).


Post a reply to this message

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