i am writing a small WPF app in c# which uses drag and drop.
When i drop multiple files with lonf pathe i get an error (in german) :
System.Runtime.InteropServices.COMException: “Der an einen Systemaufruf übergebene Datenbereich ist zu klein. (0x8007007A)”
the causing code line is :
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
Am i doing something wrong or is there a workaround to this issue ?
Chris…
i tried this line :
var files = e.Data.GetData(DataFormats.FileDrop);
an the error still happens. So I think there is a problem with the GetData method, not with the data conversion.