Hello,

Am 20.09.2006 um 21:04 schrieb Dirk Reiners:

>
>     Hi Praveen,
>
> Praveen Bhaniramka wrote:
>> Hi all,
>>
>> It looks like the g++ out of memory error is back in the 2.0 SVN  
>> tree. I
>> remember that someone had fixed this issue in the CVS tree a few  
>> weeks
>> back, which helped reduce the library size as well as get rid of  
>> these
>> compilation issues. Did those changes not get merged into the 2.0 SVN
>> tree?
>>
> Nope, not yet, just like a lot of other changes.
>
> Patrick, what's involved in doing that? Just switching the scanner or
> more than that?

You just have to update the files in OpenSG/Source/System/FileIO/ 
ScanParseSkel - see http://sourceforge.net/mailarchive/forum.php? 
thread_id=30365463&forum_id=33180

But I'm not sure if it is a good idea to transfer the 1.8 code  
without any changes to 2.0. For the old parser, the concrete loaders  
had to override "void ScanParseSkel::addFieldValue(const Char8  
*szFieldVal)" to retrieve the field values as a string. The loaders  
had to parse the values of the actual field types from this string.  
For the new parser, the loaders have to override one method for each  
VRML data type, e.g. "void ScanParseSkel::addBoolValue(bool b)" or  
"void ScanParseSkel::addColorValue(const Color3f &c)". This is much  
faster, and (in the case of SFImage data types) thread safe. But to  
keep the parser backwards compatible, the default implementations of  
these methods transform the data values back to a string and call  
"void ScanParseSkel::addFieldValue(const Char8 *szFieldVal)". The  
result is that the new parser is as slow as the old parser, and it is  
not thread safe anymore.

So for 2.0 I would like to get rid of the depreciated string API.  
This means that we have to adjust the VRML and the OSG loader.  
Unfortunately, this is not an easy task, and I'm currently not sure  
how to do that.

Bye,

Patrick


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to