[sword-devel] 1.5.8RC2

Lynn Allan l_d_allan at adelphia.net
Tue May 10 09:05:18 MST 2005


> ///////////////
> SWModule *SWMgr::CreateMod(...) {
> ...
> if (pos == 1)  // pos didn't get defined
> ///////////////
>
> Am I doing something wrong or missing a step?
>

Actually, it looks like vc7.1 in debug mode detects that pos was never
initialized and (somehow or other) causes a run-time exception.
(pretty smart compiler <g>)

Diatheke and lookup compile, link, and run when the line
int pos;
is changed to
int pos = 0; // anything but 1




More information about the sword-devel mailing list