Silverfrost Forums

Welcome to our forums

Program crash with ListView (XP-style) under Windows 7

6 Jul 2010 12:12 #6596

The following program ill-behaves when clicking on any of the editable boxes (each BEGIN_EDIT is immediately followed by an END_EDIT for no reason) and, worse, clicking on any of the boxes of the last row triggers an instant crash. This does happen with every Windows7 we tried (ftn95 from current down to 5.21 tested) but works fine for XP. Removing the XP-style manifest (resources section) makes the problem go away.

winapp 
program listbox
   implicit none
   integer, dimension(3):: selection
   integer              :: view
   character (len=*), dimension(4), parameter ::lvdata = &
     (/'|Header_100|', '|Data1     |', '|Data2     |', '|Data3     |'/) 
   integer i
   selection = 0
   view = 1
   i=winio@('%lv[edit_cells]',150, 100, lvdata, 4, selection, view)
end program listbox
resources
 1  24  default.manifest
10 Dec 2010 10:00 #7220

This still crashes on Win7 using FTN95 v6.0

11 Jan 2011 3:43 #7461

This bug has now been fixed for the next release of salflibc.dll.

11 Jan 2011 5:39 #7462

Thank you, if this can be tested in advance please let me know (we're using a lot of complex listviews so this is of high interest).

13 Jan 2011 10:06 #7484

This turns out to be a Microsoft bug and I am finding it difficult to construct a work-around.

In the short term all you can do is avoid using the XP manifest under Windows 7.

Please login to reply.