Paul,
I was able to track down the problem. It occurs in combination with a %og OpenGl graphic area.
Here is the code of my simple example:
winapp
!=======================================================================
!=======================================================================
Program Test_Listview
!=======================================================================
! use lvt
integer :: winio@
integer :: iw
integer(kind=7) :: handle_ogl_mainwin
external :: c_func
iw = winio@ ('%ca[Test lv]&')
iw = winio@ ('%mn[Listview]&',c_func)
iw = winio@ ('%`og[depth16]', 400, 300, handle_ogl_mainwin)
stop
end
!=======================================================================================================================
integer function c_func()
!=======================================================================================================================
! use lvt
integer :: winio@
integer :: iw, nitems, listview
integer,dimension(2) :: isel
character(len=20),dimension(0:2) :: items
external :: c_func
items(0) = '|Header|Value'
items(1) = '|Test |1.0'
items(2) = '|Test2|2.0'
nitems = 3
listview = 1
iw = winio@ ('%ca[lv]&')
iw = winio@ ('%lv[single_selection,edit_cells, go_down_on_return]', &
150,100,items,nitems,iselect_legend,listview)
end
I have linked it with the following linker file (lw):
lo testlv
lo tlv.res
windows
file Test_lv
the resource file tlv.rc is an empty file
the makefile has the following lines:
src tlv.rc /r
ftn95 /64 testlv.f95
slink64 @lw
The crach occurs, if I open the listview from the menu, click into one of the cells and then press return.