Page 1 of 1

Bug with Hollywood.DropTarget

Posted: Wed Mar 17, 2021 8:19 am
by PEB
Using RapaGUI, setting Hollywood.DropTarget to TRUE when it is already TRUE leads to a crash when a file is dropped.

This code causes a crash on OS4:

Code: Select all

@REQUIRE "RapaGUI"

EnableLayers()

AppGUI$=[[<application id="app">
<window id="Main" Title="Test">
	<vgroup>
		<hollywood id="MainDisplay" display="1" droptarget="true" notify="dropfile" fixwidth="true" fixheight="true"/>
	</vgroup>
</window>
</application>]]

moai.CreateApp(AppGUI$)

;moai.Set("MainDisplay", "droptarget", False); This line can prevent the crash.
moai.Set("MainDisplay", "droptarget", True); This is the line that causes the problem when a file is dropped on the display.

Function p_MainGUIFunc()
	DebugPrint("Dropped")
EndFunction


InstallEventHandler({RapaGUI=p_MainGUIFunc})

Repeat
	WaitEvent
Forever

Re: Bug with Hollywood.DropTarget

Posted: Sun Mar 21, 2021 1:54 pm
by airsoftsoftwair
True, will be fixed. Thanks for reporting!

Re: Bug with Hollywood.DropTarget

Posted: Sun May 02, 2021 7:27 pm
by airsoftsoftwair
Fixed now.

Code: Select all

- Fix [Amiga]: Setting XXX.DropTarget multiple times caused a crash