lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hash: SHA1

Steve Heller wrote:
> Yes, that would be a good approach if I had an indefinite amount of
> time to find the problem, and it may in fact be the only way. Of
> course, if it is a hardware problem, even that approch won't work.
> However, clearly there is something seriously wrong somewhere either
> in my code, in Lua, or in the Windows environment in which my code is
> running.

Get a copy of memtest86 (if you have an Ubuntu CD handy, just boot from that
and there's an option to start it). That will do a thorough test of your RAM,
if you're worried about hardware problems.

Are you using any DirectX code as part of your program, by any chance? There's
a DirectX bug (well, more of a designed in misfeature) that leaves the FPU in
the wrong mode, which causes Lua's fast truncate-to-int code to produce
incorrect results.

- --
┌── ─── ───────────────────
│ "There does not now, nor will there ever, exist a programming language in
│ which it is the least bit hard to write bad programs." --- Flon's Axiom
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -