Jump to content
Sign in to follow this  
Pascal257

Crash - Drag 'n' Drop on ListView

Recommended Posts

Pascal257

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

Share this post


Link to post
Share on other sites
Pascal257

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.

Share this post


Link to post
Share on other sites
Pascal257

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?

Share this post


Link to post
Share on other sites
Pascal257

Ok the UDP is definitely not the problem. Commented the code out and its still crashing

Edited by Pascal257

Share this post


Link to post
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
Sign in to follow this  

×