Re: [Flightgear-devel] VC90 compile fail in WaypointList.cxx

2010-02-22 Thread Manuel Massing
Hi Frederic, Yes, I am afraid. This code construction show up in the code from time to time and we have to provide a replacement. I think the best approach is to use an auto_ptr. std::auto_ptrchar buf( new char[len] ); in order to be exception safe. For array allocations, you need to

Re: [Flightgear-devel] VC90 compile fail in WaypointList.cxx

2010-02-22 Thread Manuel Massing
The last time I went down this path, I ended up back at good ole std::vector. In this context, std::string would be just fine too. second that :-) Manuel -- Download Intel#174; Parallel Studio Eval Try the new

Re: [Flightgear-devel] VC90 compile fail in WaypointList.cxx

2010-02-22 Thread Manuel Massing
Hi Fred, In theroy, you are correct, but as long as char doesn't have a destructor, this is totally overkill, and not very efficient. If the type has no destructor, it won't be called, so the efficiency argument is moot. But the real issue is that calling delete on an array has undefined

Re: [Flightgear-devel] Improved 3D Clouds patch ( fu rther invesigations )

2008-11-10 Thread Manuel Massing
Hi Roman, I played with 3D clouds patch in my sandbox and forgive me if I'm not familiar with whole flightgear/simgear system. Now I try modify existing code of 3Dclouds to pointsprite usage. Roman I am not sure point sprites are a good solution here... Altough they're put to good use in

Re: [Flightgear-devel] Improved 3D Clouds patch

2008-11-08 Thread Manuel Massing
Hi Stuart, Attached is a small fix for the sorting in CloudShaderGeometry.cxx. I think the sorting problem stems from the osg idiosyncracy to store transposed matrices...so the intuitive osg::Vec4f p = vm * osg::Vec4f(_cloudsprites[i]-position.osg(), 1.0f); needs to be replaced with...

Re: [Flightgear-devel] FlightGear/Plib periodic stutter notes

2007-09-30 Thread Manuel Massing
Hi Durk, Firstly, yesterday I managed to speed-up the replay system, by using dynamic allocation instead of pushing copies of rather large objects into the STL lists. Using the timestamping code I mentioned yesterday, and committed to CVS earler today, I found that memory allocation was very

Re: [Flightgear-devel] compilation pb: error: 'const class osg::Viewport' has no member named 'getViewport'

2007-01-07 Thread Manuel Massing
Sébastien, I posted a compilation fix yesterday, see http://sourceforge.net/mailarchive/message.php?msg_id=37837809 bye, Manuel - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay