Ticket #106 (closed defect: fixed)
WIN64 dcast bug
|Reported by:||amz||Owned by:||unassigned|
I ported my app to windows x64 and stumbled into some strange OpenSG problems. I'm using the visual studio 2005 x64 compiler. Ok rendering works nice but for example the statistic doesn't. I attached a small test program for reproducing this bug. The output of the test program is:
stat: 0 0 0
stat: 12 0 0
ok the first dynamic cast in OSG::calcPrimitiveCount()
lens32Ptr = GeoPLengthsUI32Ptr::dcast(geoPtr->getLengths());
fails but actually it shouldn't.
Now calling a exact copy of calcPrimitiveCount (calcPrimitiveCount2) works as expected. Looks like a strange dll boundary problem? Any ideas how to fix this?