Jump to content

Hard Crash w/ ListView Drag & Drop Event


Recommended Posts

I currently have a problem in my script when a user drags and drops an item in a list view, the script exits with the code -1073741819. I stripped the ListViews out of the program and put them into another script to attempt an example script, but the problem does not appear in the example - only in my main script. I've looked over it countless times trying different options but I cannot for the life of me figure out why it crashes in my main script, but not in my example.

To baffle me even more, the main script's ListView does not give me a hard crash if the GUI holding my listviews is moved to anywhere on the screen before attempting to drag / drop.

I'm looking for a method to disable the ListView's ability to drag and drop, but after doing some research on the forums, no one seems to have been able to do this yet. Even to nullify the drag/drop feature with empty functions would work. Or if someone wants to look through the code and attempt to find what is causing these weird errors that would work to.

Thanks,

- Panda

*Edit: Posted Latest Version of Code*

- I've had no luck producing an example script to reproduce the above errors, it seems to be restricted to some element of my script and after reading through the entire script while removing some sloppy coding and not finding it, I've given up. If no one else has any success I will simply have to remove the ListViews.

Oh, and the "Images.zip" part of the upload is only because I couldn't remember if AutoIt would crash if it didn't have the correct icon / image files - I don't think they are required.

*End Edit*

Images.zip

Dragon_Court_Client_v2.0.au3

Edited by thetwistedpanda
Link to comment
Share on other sites

Thanks for the reply.

I can't disable the ListView because users have to select items in the list to be able to modify them. (It's not an Edit-in-place type ListView, users have to click a button to preform a modification)

And yes, I've looked over that link earlier but it did not help me any.

Link to comment
Share on other sites

Without seeing the code for the listview its kind of hard to help with the problem.

If you haven't already looked at http://www.autoitscript.com/forum/index.ph...st&p=281789

Not sure if that will help any or not.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Thanks for the reply.

I can't disable the ListView because users have to select items in the list to be able to modify them. (It's not an Edit-in-place type ListView, users have to click a button to preform a modification)

And yes, I've looked over that link earlier but it did not help me any.

Thanks, but I already tried that. I implemented the code and it still crashed. I would post the code if I knew how to make a code box that had a restrained vertical size, instead of one that goes spralling down the page...

Link to comment
Share on other sites

Thanks, but I already tried that. I implemented the code and it still crashed. I would post the code if I knew how to make a code box that had a restrained vertical size, instead of one that goes spralling down the page...

Can always attach the au3 file to your post.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Can always attach the au3 file to your post.

This is true... Added script to first post.

The ListView is going to be in the $Drag_Hero GUI section, and further down past the GUI declarations is going to be some more ListView code... Not very friendly, that it is not...

Edited by thetwistedpanda
Link to comment
Share on other sites

I'm guessing from the lack of replies no one had any luck figuring out what is causing the pesky crashing, or a way to stop the LV's drag event?

Some of us work for a living, and only can look at in our spare time.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...