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
Capn_Fish
post Nov 26 2007, 04:42 AM
Post #2





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



Thanks for the helpful comments! I love open-source for this reason, that I can just stick my code here with an issue, and somebody will find other things that are wrong with it and point me to them.

1. Never heard of cerr, I'll look into it.

2. Same as #1.

3. Haven't heard of that either. I'll look into it too.

4. I was thinking if I used some globals that would be used commonly, I could sacrifice a tiny bit of RAM to gain some speed from not having to create and destroy them so often. Misconception?

5. I don't usually do that (I never expect anybody else to look at my code), but I actually have comments in this stuff. I'm slowly adding more as I work on different sections.

Thanks a lot (Just note that much of the code posted has been replaced as I am in the process of changing methods for moving the character about).
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: 21st December 2014 - 11:46 PM