OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Bugs in plugin-gz


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
lwren
Guest





PostPosted: Sat Feb 28, 2009 12:39 pm    Post subject:
Bugs in plugin-gz
Reply with quote

Hi guys, i found tow bugs in plugin-gz in osg2.8.

1. ln174 in ReaderWriterGZ.cpp
std::ifstream fin(fileName.c_str()); // error code
std::ifstream fin(fileName.c_str(), std::ios_base::in|std::ios_base::binary); // should be opend as binary

2. ln260 in ReaderWriterGZ.cpp
strm.avail_in = fin.readsome((char*)in, CHUNK);
It can't work as expected on ms's implementation.(http://support.microsoft.com/kb/246934/en-us)
You can take "read" for replace.

Should i report bugs this way? And any question please me know.


with regards,
renliwei

------------------
Post generated by Mail2Forum
Back to top
GordonTomlinson
Appreciator


Joined: 22 Dec 2008
Posts: 171

PostPosted: Sat Feb 28, 2009 12:43 pm    Post subject:
Bugs in plugin-gz
Reply with quote

Hi Renliwei


Yes bugs can be reported to this list,

If you’re also providing a fix for a bug you have come across then see this page http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol
It contains the instructions on the correct way to submit the fix or enhancement.




______________________________________________________________________________
Gordon Tomlinson

(
Only registered users can see emails on this board!
Get registred or enter the forums!
)

IM: (
Only registered users can see emails on this board!
Get registred or enter the forums!
)

www.vis-sim.com www.gordontomlinson.com
______________________________________________________________________________


From: [mailto:] On Behalf Of lwren
Sent: Saturday, February 28, 2009 7:39 AM
To:
Subject: Bugs in plugin-gz



Hi guys, i found tow bugs in plugin-gz in osg2.8.



1. ln174 in ReaderWriterGZ.cpp

std::ifstream fin(fileName.c_str()); // error code

std::ifstream fin(fileName.c_str(), std::ios_base::in|std::ios_base::binary); // should be opend as binary



2. ln260 in ReaderWriterGZ.cpp

strm.avail_in = fin.readsome((char*)in, CHUNK);

It can't work as expected on ms's implementation.(http://support.microsoft.com/kb/246934/en-us)

You can take "read" for replace.



Should i report bugs this way? And any question please me know.





with regards,

renliwei

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Problems with dae plugin John Richardson Plugins [osgPlugins] 0 Thu Apr 11, 2019 5:00 pm View latest post
No new posts [PARTIALLY SOLVED] Problems with dae ... Nikkitta Plugins [osgPlugins] 4 Mon Apr 08, 2019 3:51 pm View latest post
No new posts Add search location for textures in F... bbjorn Submission 1 Mon Feb 04, 2019 2:22 pm View latest post
No new posts OSG GLTF loader plugin Chris Hanson General 0 Thu Dec 06, 2018 9:55 pm View latest post
No new posts playing videos with audio channels wi... Trajce Nikolov NICK General 7 Wed Nov 21, 2018 9:17 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP