Crash at listview sort command....

Started by Elias Montoya, February 10, 2012, 10:03:46 PM

Previous topic - Next topic

Elias Montoya

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.

Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

Rolf Brandt

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

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

I would be cautious mixing DDT commands in FireFly which uses pure winapi.
Paul Squires
PlanetSquires Software