[gtkada] Bug Report: Drag and Drop win32 - GtkAda-2.4.0

jeff at thecreems.com jeff at thecreems.com
Wed Feb 2 05:39:29 CET 2005


This looks to be a win32 specific problem (after spending 
a little time comparing things in Fedora).

If one runs the testgtk application, goes to the composite
widget drag/drop test and drops files from the windows 
explorer windows onto the "drop anything here" one will 
get some very strange results.

At times on longer filenames one will end up with random 
garbage at the end of the resulting string (always seems 
to be one unprintable but I assume it is a CR/LF) but at 
times there is other stuff there. I see similar results in 
my own code with somewhat inconsistant results of garbage 
at the end of the string.

The bigger issue can be seen by creating a file in C: with 
a short name like hello.txt. When this is dragged and 
dropped the resulting string is sometimes entirely garbage 
(missing even the file:/// prefix)

There appears to be a difference in the length of the 
string returned from Get_Data_As_String and the value 
returned from Get_Length in the cases where there are 
bogus values in the string.



More information about the gtkada mailing list