Simple Test Crashing on Windows

Discuss GUI programming with the RapaGUI plugin here
Post Reply
PEB
Posts: 567
Joined: Sun Feb 21, 2010 1:28 am

Simple Test Crashing on Windows

Post 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?
User avatar
msu
Posts: 71
Joined: Mon Jun 13, 2016 11:36 am
Location: Sinzig/Germany

Re: Simple Test Crashing on Windows

Post 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
PEB
Posts: 567
Joined: Sun Feb 21, 2010 1:28 am

Re: Simple Test Crashing on Windows

Post by PEB »

You're right! In order not to crash, this is needed:
@REQUIRE "RapaGUI"


Thanks for figuring that out!
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Simple Test Crashing on Windows

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Simple Test Crashing on Windows

Post by airsoftsoftwair »

Fixed now.
Post Reply