bug with show code line after null pointer exception and "for"

Started by
2 comments, last by WitchLord 11 years, 2 months ago

Hi smile.png

Error:

The script ended with an exception.

funcf: void startGame(string&inout)

sect: Start.as

line: 32

desc: Null pointer access

Code:




class A
{
    int GetCount(){ return 10; }
}


void startGame( string &param )
{


    A @a = null;    // line 23
    
    for( int i=0; i < a.GetCount(); i++ ) // line 25
    {                        
        
        
        
        
        
        int some_val;    // line 32
    }
}
 

Advertisement

Thanks. I'll look into this.

It seems to be missing a marker in the bytecode to give the correct line number.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

i dont know bug this or not smile.png

Unexpected end of file : line 16

but need show line 23

Code:


void F()
{                // Line 16
    int a1;
    int a2;
    int a3;
    int a4;
    int a5;

    F()   '  ;    // Line 23
}
 

I've fixed the for loop issue in revision 1553.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement