Crash with ref to handle

Started by
2 comments, last by WitchLord 1 year, 6 months ago

Hi,

Someone reported an issue to me where a crash would occur when passing handles in a particular way. I am not sure why it's crashing. I narrowed it down to this minimal reproduction case:

class Foo {}

class Bar {
	Foo@ m_foo;
	Bar(Foo@ &in foo) {
		@m_foo = foo; // Crash
	}
}

void Main() {
	Bar(Foo());
}

Obviously Foo@ &in isn't very useful anyway, but a crash doesn't seem correct either ?

Advertisement

Hi Miss,

thanks for the bug report. I'll investigate and have it fixed as soon as possible.

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

I've fixed this in revision 2805.

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