 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
| View previous topic :: View next topic |
| Author |
Message |
Ralf
Joined: 30 Aug 2007 Posts: 52 Location: munich
|
Posted: Fri Dec 05, 2025 5:03 pm Post subject: number of rows in list view control |
|
|
I have program crashes with listview controls, if the number of rows is getting larger. I was able to reproduce a similar crash with a simple test program:
| Code: |
winapp
Program Test_lv
!=======================================================================
integer, parameter :: lv_len = 109
integer :: winio@
character(len=20),dimension(0:lv_len) :: items
integer :: iw, nitems, view
items(0) = '|Header|Value'
do i=1,lv_len
write(items(i),'(a5,i3.3,a1,f7.1)') '|Test',i,'|',float(i)
enddo
nitems = lv_len+1
view = 1
iw = winio@ ('%ca[Test lv]&')
iw = winio@ ('%lv&',200,100,items,nitems,isel,view)
iw = winio@ ('%ff%nl%cn%`12bt[Close]')
iw = winio@ ('%ff%nl ')
stop
end |
This example crashes with an access violation error in clearwin64.dll for 109 or more rows. With a smaller number of rows it works fine. The 32bit version runs without problems.
I am using ftn95 v9.13. |
|
| Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8305 Location: Salford, UK
|
Posted: Fri Dec 05, 2025 5:30 pm Post subject: |
|
|
| I will aim to take a look at this on Monday. |
|
| Back to top |
|
 |
wahorger

Joined: 13 Oct 2014 Posts: 1275 Location: Morrison, CO, USA
|
Posted: Sat Dec 06, 2025 12:53 am Post subject: |
|
|
I don't see a declaration for "isel". This should be dimensioned from 1:lv_len when used with %lv of type=1.
It should be initialized to zero. The appropriate element of the vector will be changed to 1 when a row is selected. You cannot select row=0, hence the dimensioning starting at 1. |
|
| Back to top |
|
 |
DanRRight
Joined: 10 Mar 2008 Posts: 2957 Location: South Pole, Antarctica
|
Posted: Sun Dec 07, 2025 2:33 am Post subject: |
|
|
I got inferiority complex for two decades after I touched bugotron %lv.
GL to you. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|