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


Welcome Guest ( Log In | Register )

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

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

I'm getting an error:

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

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
post Nov 25 2007, 09:36 AM
Post #2

Group: Members
Posts: 793
Joined: 28-November 04
From: NM, US, sometimes Asia
Member No.: 5,633

Just curious ...

mapp.cpp, line 147
char Line[60];
for(int y = 0; y < 15; y++)

Should 61 MapIn.getline(Line, 61) be 60 instead? This might be causing an overflow or write pass buffer error, which can/will cause corruption if the byte past Line[59] is code or something vital.


Have not read the other code yet, but this could be a place to start perhaps. smile.gif
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: 5th October 2015 - 10:52 AM