Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Algorithmen, Datenstrukturen und Klassendesign (https://www.delphipraxis.net/78-algorithmen-datenstrukturen-und-klassendesign/)
-   -   FMX - Drag and Drop (https://www.delphipraxis.net/194373-fmx-drag-drop.html)

KWin 13. Nov 2017 16:02

FMX - Drag and Drop
 
Hallo!

Ich beschäftige mich seit einiger Zeit unter FMX mit Drag and Drop.
Das Beispielprogramm DragAndDrop.dproj stürzt
bei mir beim Aufruf aus der IDE ab, sobald ich aus der Form hinausziehe.
Ich kann das Programm nur via Taskmanager beenden (die IDE ist komplett Tod).

Direkt aufgerufen DragAndDrop.exe vom File-Explorer scheint alles wunderbar zu funktionieren.

Hat jemand eine Ahnung warum dies so ist.

Im Ereignisprotokoll wird folgendes ausgebegben:

Modul laden: edputil.dll. Ohne Debug-Infos. Basisadresse: $62BA0000. Prozess DragAndDrop.exe (9680)
Debug-Ausgabe:
com\ole32\oleregistrationenumeration\oleregistrati onenumeration.cpp(34)\ole32.dll!7442EC65: (caller: 7442F54C) ReturnHr(1) tid(25cc) 80040154 Klasse nicht registriert

Prozess DragAndDrop.exe (9680)
Debug-Ausgabe:
com\ole32\oleregistrationenumeration\oleregistrati onenumeration.cpp(1009)\ole32.dll!7442F565: (caller: 7442CD4D) ReturnHr(2) tid(25cc) 80040154 Klasse nicht registriert

Prozess DragAndDrop.exe (9680)
Debug-Ausgabe:
com\ole32\ole232\stdimpl\oregfmt.cpp(290)\ole32.dl l!74405009: (caller: 74405A19) ReturnHr(3) tid(25cc) 80040154 Klasse nicht registriert

Prozess DragAndDrop.exe (9680)

Harry Stahl 13. Nov 2017 23:11

AW: FMX - Drag and Drop
 
Drag & Drop für Text funktioniert bei mir.

Drag & Drop für Images nicht, da kann ich das von Dir beschriebene Verhalten bestätigen (funktioniert hier aber auch nicht, wenn Standalone als Exe ausgeführt).

Scheint ein Bug zu sein (unter Mac OS [und Linux] funktioniert Drag & Drop eines Images auch nicht).

Habe derzeit leider keine Zeit da mal näher rein zu schauen, daher nur der Hinweis, dass die Funktion (BeginDragDrop) unter Windows in der Unit FMX.Platform.win implementiert ist, evtl. fällt Dir da was problematisches auf... Ansonsten BUG-Report an EMBA.

Der schöne Günther 14. Nov 2018 09:59

AW: FMX - Drag and Drop
 
Ist bei mir ebenso, es scheint nur so zu sein wenn die Anwendung in der IDE debugged wird. Lässt man die Anwendung ohne Debugger laufen stürzt sie nicht ab 🙄


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz