Ticket #106 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

WIN64 dcast bug

Reported by: amz Owned by: unassigned
Priority: critical Milestone: 1.8 Release
Component: System Version: 1.8
Keywords: WIN64 Cc:

Description

Hi,

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?

Attachments

OpenSG-win64-dcast-bug.cpp Download (3.9 KB) - added by amz 7 years ago.

Change History

Changed 7 years ago by amz

comment:1 Changed 6 years ago by amz

  • Status changed from new to closed
  • Resolution set to fixed

Service pack 1 for the visual studio 2005 compiler fixed the problem :-)

Note: See TracTickets for help on using tickets.