Bug with Hollywood.DropTarget

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

Bug with Hollywood.DropTarget

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

Re: Bug with Hollywood.DropTarget

Post by airsoftsoftwair »

True, will be fixed. Thanks for reporting!
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Bug with Hollywood.DropTarget

Post by airsoftsoftwair »

Fixed now.

Code: Select all

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