OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Another C++ Issue
Capn_Fish
post Nov 21 2007, 04:28 PM
Post #1





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



I'm getting an error:

CODE
terminate called after throwing an instance of 'std::ios_base::failure'
    what():  basic_ios::clear
Aborted


With my latest C++/SDL app. What causes this, and what can I do about it? It works fine on my laptop, but when I try to run it on my Z, I got the above error.

Any help would be much appreciated.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
koan
post Nov 22 2007, 01:05 AM
Post #2





Group: Members
Posts: 328
Joined: 25-February 04
From: UK
Member No.: 2,025




I don't know so much about exception processing or lowlevel ios stuff, so this is a bit of a guess.

The code is clearing a stream and setting some flags; the flags being set aren't supported by the Z C++ RTL. I would grep the code for "clear(" and look for an iostream. You'll need to change the parameters to clear(), probably some weird default that doesn't really matter or something new that isn't supported by the Z RTL.

Don't know about the what(); maybe it's the what() function that is calling clear() ? Another thing to grep for.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 02:13 AM