Page 1 of 1

Simple Test Crashing on Windows

Posted: Sat Jul 16, 2016 9:13 pm
by PEB
The following code works fine on my Amiga, but crashes when I try running in on Windows.

Code: Select all

AppStr$=[[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
   <window id="win" title="Test">
      <vgroup>
            <button>Test Button One</button>
            <button>Test Button Two</button>
      </vgroup>
   </window>
</application>]]

moai.CreateApp(AppStr$)
Any ideas?

Re: Simple Test Crashing on Windows

Posted: Sat Jul 16, 2016 10:13 pm
by msu
Hallo PEB

This code works (windows7) :

Code: Select all

@VERSION 6,1
@REQUIRE "RapaGUI"


AppStr$=[[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
   <window id="win" title="Test">
      <vgroup>
            <button>Test Button One</button>
            <button>Test Button Two</button>
      </vgroup>
   </window>
</application>]]

moai.CreateApp(AppStr$)

Repeat
	WaitEvent
Forever

Re: Simple Test Crashing on Windows

Posted: Sun Jul 17, 2016 12:47 am
by PEB
You're right! In order not to crash, this is needed:
@REQUIRE "RapaGUI"


Thanks for figuring that out!

Re: Simple Test Crashing on Windows

Posted: Mon Jul 18, 2016 11:20 am
by airsoftsoftwair
Requiring RapaGUI is necessary to use its functions but of course it shouldn't crash when not doing so. I'll add some error messages for that case.

Re: Simple Test Crashing on Windows

Posted: Sat Nov 05, 2016 1:35 pm
by airsoftsoftwair
Fixed now.