What's wrong here? Type-creation causing crash

BlitzMax Forums/BlitzMax Beginners Area/What's wrong here? Type-creation causing crash

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I would guess that your main problem is this line :

Type tmouse Extends tgui

The tgui type has a field "mouse", which calls tmouse.create()... which creates a new instance of tmouse (which is a tgui)... which has a field "mouse", which calls tmouse.create()... which creates a new instance of tmouse (which is a tgui)... which has a field "mouse", which calls tmouse.create()... which creates a new instance of tmouse... etc...
...until it crashes.

:-)