Crash when compiling script
Posted: Wed May 28, 2014 5:09 am
When I was zeroing in on the other bug I reported, I encountered another unexpected crash while editing a script. Regardless of what's in the RUBE scene, this script crashes the program when I paste it into the scratch-pad:
I'm running Windows 7. I understand that the script might not compile in the current format, but I don't expect it to crash RUBE.
Here is the error encountered before the program is terminated:
Code: Select all
body b = sb()[0];
void test(body b){
//string parentName = b.parentName;
string parentName = b.getCustomString('parentName');
body parentBody = getBody(parentName);
if(parentBody.valid)
print('parent is valid');
}
void main(){
test(b);
}
Here is the error encountered before the program is terminated: