lua-users home
lua-l archive

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


On Sun, May 30, 2010 at 11:18 AM, Erwin Oegema
<blablaechthema@hotmail.com> wrote:
> I guess it does :p It might have changed, but why would it work in Debug
> mode and not in Release mode?

At a guess, I'd say because getNpc depends upon the value of an
uninitialised variable (whose values are different in Debug mode to
Release mode; they're generally 0 in release mode, whereas they're
0xABABABAB or something similar in Debug mode). If not that, then
perhaps due to the differences in which preprocessor macros are
defined in Debug mode versus Release mode (e.g. if any of your code
has "#ifdef NDEBUG", or calls assert(f()) where f() has side-effects,
etc.).