DragDrop from Explorer

Discussions about document viewing.
Post Reply
User avatar
Sephir
Posts: 13
Joined: Wed Sep 17, 2014 5:38 pm
Location: Germany
Contact:

DragDrop from Explorer

Post by Sephir » Wed Sep 17, 2014 5:53 pm

Hello GDPicture Community,

i also have a Problem using Drag&Drop. I Managed using Drag and Drop intern in my Application and in all Layers, DragDrop is allowed.
When i use Drag & Drop from the Explorer (i.e. Desktop), i got a ErrorCode -1073740777. It appears, after i uses this.thumbnailEx1.AddItemFromFile(file) and tries to Refresh or Reload the Thumbnails. Here is my Code:

Code: Select all

  if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
             
                foreach (string file in files)
                {
                  this.thumbnailEx1.AddItemFromFile(file);
                    this.thumbnailEx1.LoadNewThumbnails();
                   
                }
                for (int i = 0; i < this.thumbnailEx1.ItemCount; i++)
                {
                    Console.WriteLine("Element " + i); // Claims that there's now a new item in the List
                }
                
                //this.thumbnailEx1.Refresh();             // cause ErrorCode 1073740777
              
               // this.thumbnailEx1.ReloadThumbnails();       // causes ErrorCode 1073740777
                this.thumbnailEx1.Update();
           
            }
Furthermore,(i think as a Result of that) a hover at the new Item (If i comment out the lines like above) causes a "first chance exception of type 'System.NullReferenceException'" in the

Code: Select all

Page.Display(gdViewer1, Options);



Any advice ?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: DragDrop from Explorer

Post by Loïc » Wed Sep 17, 2014 6:06 pm

Hello Sephir,

Unfortunately I can't do anything with such snippet.

Please reproduce the issue in a standalone application and send it through our helpdesk for escalation: https://www.gdpicture.com/support/getting-support-from-our-team

With best regards,

Loïc

User avatar
Sephir
Posts: 13
Joined: Wed Sep 17, 2014 5:38 pm
Location: Germany
Contact:

Re: DragDrop from Explorer

Post by Sephir » Thu Sep 18, 2014 9:17 am

Thanks for the Quick reply, i will try to reduce the application to a minimum :)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests