Skip to content

hxd.File.browse crashes on drag'n'drop with VSCode debugger #783

Description

@deepnight

If you start dragging any file/folder inside a File Open dialog (ie. hxd.File.browse), it crashes HL.

Steps to reproduce:

  1. Create an Open File dialog:
hxd.File.browse( function(browser) {
	trace("open: "+browser.fileName);
});
  1. Run the app with VScode debugger linked
  2. Drag any file/folder inside this dialog
  3. Boom
hl.UI.chooseFile (c:\projects\haxetools\haxe\std\hl\UI.hx:209)
hl.UI.loadFile (c:\projects\haxetools\haxe\std\hl\UI.hx:168)
hxd.File.browse (c:\projects\haxetools\haxe\lib\heaps\deepnight\hxd\File.hx:100)
<local function> (c:\projects\labs\fileBrowser\src\Main.hx:12)
<local function> (c:\projects\haxetools\haxe\std\haxe\Timer.hx:143)
<local function> (c:\projects\haxetools\haxe\std\haxe\Timer.hx:76)
haxe.MainLoop.tick (c:\projects\haxetools\haxe\std\haxe\MainLoop.hx:174)
hxd.System.runMainLoop (c:\projects\haxetools\haxe\lib\heaps\deepnight\hxd\System.hl.hx:134)
<local function> (c:\projects\haxetools\haxe\std\haxe\Timer.hx:143)
<local function> (c:\projects\haxetools\haxe\std\haxe\Timer.hx:76)
haxe.MainLoop.tick (c:\projects\haxetools\haxe\std\haxe\MainLoop.hx:174)
haxe.EntryPoint.processEvents (c:\projects\haxetools\haxe\std\haxe\EntryPoint.hx:99)
haxe.EntryPoint.run (c:\projects\haxetools\haxe\std\haxe\EntryPoint.hx:125)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions