THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/09/2012 at 01:19, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Howdy,
Here is the crash error message:
... and the debugger points to the second line of the called function:[/DIV][DIV]Matrix GetRPMatrix(LONG pole, Vector o, Vector g, Vector p)[/DIV][DIV]{[/DIV][DIV]<span ="Apple-tab-span" style="white-space:pre"> </span>Matrix m = Matrix();[/DIV][DIV][/DIV][DIV]<span ="Apple-tab-span" style="white-space:pre"> </span>m.off = o; // here's where it crashes[/DIV][DIV]
It just doesn't make any sense, because that line is simply setting the value of m.off equal to the passed Vector o.
Why?
Adios,
Cactus Dan
Dan, DENs are perfectly valid and the FPU (or SIMD) engine can work with it properly.
What might cause trouble in are cases where you've special handling for a float value being EXACTLY "0.0". The DEN is close too (and in some situations like a division could create a div by zero too), but it ain't id. with "0.0". Therefore a cast from float to int where you're using that casted int as index later on could create values you're not expecting.
That would be a good reason for a crash, but that 's hard to find out without a compiling (and crashing) sample code - I'm pretty sure that the debugger is fooling you here and you see a side effect of the crash, not the real issue.
Best regards,
Wilfried