Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

ImgX crash - drag & drop

Last post 29 Jan 2008, 2:30 AM by Michal. 0 replies.
Sort Posts: Previous Next
  •  29 Jan 2008, 2:30 AM 13049

    ImgX crash - drag & drop

    Hi,

    I'm using ImgX 6.4 with VB6sp6 in my application.  I use a lot of ImgX controls that are embedded within user controls.  Many user controls are created at runtime through the use of a control array.

     

     Recently I enabled OLE drag drop on the ImgX controls so that I can drag image files from an explorer like control into the User Control, to load the files as images.

     
    The code works fine but my VB6 IDE has become rather unstable.  Sometimes when debugging my application the application and IDE spontaneously exit without errors.  More often my application will hang when creating the user controls with this error:


     Atalasoft - ImgX Control
    Run-time error '-2147221247 (80040101)':
    System Error &H80040101 (-2147221247).  This window has already been registered as a drop target.

     

    Other times I get this:

    Run-time error '-2147417848 (80010108)':
    Method 'Left' of object '_ImgXCtrl' failed

     

    The OLE drag/drop properties are set in the Initialize section of the user control.  The first error states the target has already been registered as a drop target, yet the OLE drag mode property is still set to 0 when the error occurs. Other times the OLE drag mode will be set correctly, but as soon as the ImgX control is resized (when the user control is created), I get a message that Left has failed in _ImgXCtrl.

     

    These errors also happen at runtime, but usually result in the application spontaneously exiting without errors.  The exit can happen at any time, even when I'm not using the ImgX control.

     

    Any suggestions? 

View as RSS news feed in XML