thetwistedpanda Posted June 14, 2007 Share Posted June 14, 2007 (edited) 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.zipDragon_Court_Client_v2.0.au3 Edited June 16, 2007 by thetwistedpanda Link to comment Share on other sites More sharing options...
evilertoaster Posted June 14, 2007 Share Posted June 14, 2007 (edited) would you be able to disable the listview?GUICtrlSetState(-1,$GUI_DISABLE)also- have you seedn this one- http://www.autoitscript.com/forum/index.php?showtopic=33956 ? Edited June 14, 2007 by evilertoaster Link to comment Share on other sites More sharing options...
thetwistedpanda Posted June 14, 2007 Author Share Posted June 14, 2007 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 More sharing options...
GaryFrost Posted June 14, 2007 Share Posted June 14, 2007 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=281789Not 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 More sharing options...
thetwistedpanda Posted June 14, 2007 Author Share Posted June 14, 2007 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 More sharing options...
GaryFrost Posted June 14, 2007 Share Posted June 14, 2007 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 More sharing options...
thetwistedpanda Posted June 14, 2007 Author Share Posted June 14, 2007 (edited) 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 June 14, 2007 by thetwistedpanda Link to comment Share on other sites More sharing options...
thetwistedpanda Posted June 15, 2007 Author Share Posted June 15, 2007 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? Link to comment Share on other sites More sharing options...
GaryFrost Posted June 15, 2007 Share Posted June 15, 2007 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 More sharing options...
thetwistedpanda Posted June 15, 2007 Author Share Posted June 15, 2007 I didn't mean for my comment to be taken the wrong way, I was just wondering if any progress had been made, cause I'll probably have to scrap the listviews if myself nor anyone else can figure it out. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now