Jump to content

Crash - Drag 'n' Drop on ListView


Recommended Posts

Hey there,

I have a ListView that is filled with songinformation while searching in the database.

The GUI:

Global $SearchGUI = GUICreate("PPlayer - Search", 500, 500, -1, -1, -1, -1, $PlaymodeGUI)
Global $Searchview = GUICtrlCreateListView("Track                         |Artist   |Album    |Genre |Rating", 0, 0, 500, 480)
GUICtrlSetOnEvent(-1, "SearchView")
$Label = GUICtrlCreateLabel("Searching", 10, 480, 480, 20)
GUISetOnEvent($GUI_EVENT_CLOSE, "SearchEnd")
GUISetState()
....
GUICtrlCreateListViewItem($aRow[2] & "|" & $aRow[0] & "|" & $aRow[1] & "|" & $aRow[3] & "|" & $aRow[7], $Searchview)

But when I drag an item and then drop it AutoIt crashes.

I have a similar ListView that works without any problems...

Greetings,

Pascal

Edit: Btw I already searched that issue and found nothing useful. The user must be able to doubleclick the items (deactivated due to testing that issue), drag and drop is not needed (no function capturing it where the error could be.)

I also deactivated any GUIRegisterMsg to avoid errors.

Edit the second: Now it crashes on the second listview too. Bug of autoit?

Edited by Pascal257
Link to comment
Share on other sites

Does the script crash, or do you have a issue with AutoIt3.exe crashing? If it is the later, can you screenshot the info in the crash?

No AutoIt-Error available. That would be easy ^^

No the script crashes and autoit3 returns with 1073741819.

Link to comment
Share on other sites

Well I did some testing and came to this result:

The last func started before crash is very often:

$data = UDPRecv($Socket, 1000)

But its not because the program idles after this:

Func CheckUDP()
    While 1
        $data = UDPRecv($Socket, 1000)
        If $data <> "" Then
            SetList($data)
        Else
            ExitLoop
        EndIf
    WEnd
EndFunc  ;==>CheckUDP

Well $data contains filepaths but was surely NULL.

Why does it crash then?

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...