PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on February 10, 2012, 10:03:46 PM

Title: Crash at listview sort command....
Post by: Elias Montoya on February 10, 2012, 10:03:46 PM
The whole app crashes when i sort column one of my listview. Works fine with the rest of the columns.

If theColumn = 1 Then
     LISTVIEW Sort hWndForm, IDC_FTPFILES_LISTVIEW1, TheColumn, Ascend, NUMERIC
Else
     LISTVIEW Sort hWndForm, IDC_FTPFILES_LISTVIEW1, TheColumn, Ascend, ALPHANUM
End If


  If i remove the NUMERIC it works, but sorts in an undesired way. If i add the NUMERIC keyword
to any other columns, it crashes as well.

Using PBEdit 10.00.0076, compiler version could not be retrieved by the properties in explorer. Any ideas before checking for updates (proccess is tedious)?

Update:
It crashes with 10.02 as well.

Update
My mistake, 10.02 seems to solve it.

Title: Re: Crash at listview sort command....
Post by: Rolf Brandt on February 11, 2012, 03:36:17 AM
Jean Pierre had published a nice ListView sorting example (with column head click) some time ago. You might find that useful.

http://www.planetsquires.com/protect/forum/index.php?topic=1631.msg15165#msg15165 (http://www.planetsquires.com/protect/forum/index.php?topic=1631.msg15165#msg15165)

Rolf
Title: Re: Crash at listview sort command....
Post by: Paul Squires on February 11, 2012, 06:53:40 PM
I would be cautious mixing DDT commands in FireFly which uses pure winapi.