Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-17 Thread Andreas Goebel
> Thibault Thank you, so I memorized this wrong. I will carefully look if some part of my project links against the wrong dll. I pretty much guess that I configured wxWidgets to link static runtime, probably the problems come from there. (Hope I haven't sounded rude

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-17 Thread Thibault Genessay
On 4/17/07, Andreas Goebel <[EMAIL PROTECTED]> wrote: > > It's wrong > The OSG links against the DLL version of the CRT which is msvcrt.lib > (and needs msvcrt.dll at runtime). Libcmt is the static version of the > multi-threaded runtime (libc.lib the static single-threaded) and > should not be

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-17 Thread Andreas Goebel
It's wrong The OSG links against the DLL version of the CRT which is msvcrt.lib (and needs msvcrt.dll at runtime). Libcmt is the static version of the multi-threaded runtime (libc.lib the static single-threaded) and should not be used. I don't know why Microsoft continues to ship the static

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-17 Thread Thibault Genessay
Hi Andreas On 4/16/07, Andreas Goebel <[EMAIL PROTECTED]> wrote: Hi, the problem was the std::vector copy-constructor. I am probably still having problems with different c-runtimes somewhere, though I carefully tried to avoid this. [...] Though the reference is better code at this place anyw

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-16 Thread Andreas Goebel
Hi, the problem was the std::vector copy-constructor. I am probably still having problems with different c-runtimes somewhere, though I carefully tried to avoid this. Using a reference instead of a copy of the intersection-vector made the crash go away (hopefully for ever): if (

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-16 Thread Robert Osfield
Hi Andreas, Try adding adding LineSegmentIntersector::Intersection copy constructor, assignment operator and destructor to see if this has any effect, perhaps MSVC isn't creating these appropriately. Robert. On 4/16/07, Andreas Goebel <[EMAIL PROTECTED]> wrote: Andreas Goebel schrieb: > >> MSV

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-16 Thread Andreas Goebel
Andreas Goebel schrieb: MSVC allows you to generate debug info even in Release Mode; make sure you set the Debug Information Format in the C++ project options, and tell the Linker to generate Debugging output. That might produce more useful information when you run in the debugger. HTH, T

Re: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-16 Thread Andreas Goebel
MSVC allows you to generate debug info even in Release Mode; make sure you set the Debug Information Format in the C++ project options, and tell the Linker to generate Debugging output. That might produce more useful information when you run in the debugger. HTH, Thanks, that´s a good ide

RE: [osg-users] Strange problem with osgUtil::LineSegmentIntersector

2007-04-16 Thread Thrall, Bryan
Andreas Goebel wrote on Monday, April 16, 2007 1:42 PM: > Hi, > > I have a strange problem with the osgUtil::LineSegmentIntersector. > Everything works as I expect, only in MSVC Release-Mode I get > occasional crashes. In Debug-Mode and with my MinGW-Build-system I > cannot reproduce those crashes