Ben Morrison wrote:
I have downloaded the following source code files: FlightGear 9.8, SimGear 3.8, plib 1.8.4, and zlib 1.1.4. I was able to get this to compile in Visual Studio 2003 but when I try to run flight gear with the following command: “fgfs –fg-root=c:\\GS_PTT\\Flightgear\\data –airport=KSFO – aircraft=A-10cl –disable-sound” and I get the following runtime error almost immediately:You can debug, no problem.
Debug assertion failed!
Program: fgfs.exe
File: isctype.c
Line: 68
Expression: (unsigned)(c+1) <= 256
Has anyone ever encountered this error? Is it possible to set breakpoints in Flightgear and debug it that way?
------------------------------------------------------------------------
_______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
The assert is a known problem, it happens with a debug build under VS, you have to change a view lines in simgear, patch attached.
Harald.
Index: strutils.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/misc/strutils.cxx,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 strutils.cxx
--- strutils.cxx 7 Sep 2002 02:58:19 -0000 1.1.1.1
+++ strutils.cxx 26 Apr 2005 17:01:34 -0000
@@ -41,14 +41,14 @@
while (i < len)
{
- while (i < len && isspace(str[i]))
+ while (i < len && isspace((unsigned char)str[i]))
{
++i;
}
j = i;
- while (i < len && !isspace(str[i]))
+ while (i < len && !isspace((unsigned char)str[i]))
{
++i;
}
@@ -57,7 +57,7 @@
{
result.push_back( str.substr(j, i-j) );
++countsplit;
- while (i < len && isspace(str[i]))
+ while (i < len && isspace((unsigned char)str[i]))
{
++i;
}_______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
