Silverfrost Forums

Welcome to our forums

Spin wheel bug

22 May 2025 8:56 #32121

I have some problems using 2 spin wheels on the same dialog. When I use the second spin wheel several times, the variable of the first spin wheel changes its value. The problem occurs with 32bit and 64bit compiled with ftn95 version 9.10. Compiled with 9.02 I can not see any issues.

Here is my sample code:

      winapp 
!==================================================================
      MODULE data_module  
      integer*4 :: var_1        = 1  
      integer*4 :: var_2        = 2             
      end module data_module	
!==================================================================
      Program Test	  
      integer :: winio@, iw      
      external :: cb_func_1  
	  
      iw = winio@ ('%ca[Test]&')
      iw = winio@ ('%mn[CB1]',cb_func_1) 
      end  
!==================================================================
      integer*4 function cb_func_1()	  
      use data_module
      integer :: winio@, iw
      external cb_func_2, cb_func_3
  
      cb_func_1 = 2  
      iw = winio@ ('%`ca[Test]&')
      iw = winio@ ('Variable 1  &')
      iw = winio@ ('%dd%`bg[window]%^6rd%nl&',1, var_1, cb_func_2)
      iw = winio@ ('Variable 2  &')
      iw = winio@ ('%dd%`bg[window]%^6rd%nl&',1, var_2, cb_func_3)
      iw = winio@ ('%ff%2nl%`10bt[Close]')       
      end
!==================================================================
      integer*4 function cb_func_2()
      use data_module
      cb_func_2 = 1
      end
!==================================================================
      integer*4 function cb_func_3()            !
      use data_module
      cb_func_3 = 1
      end
22 May 2025 10:42 #32123

Ralf, please see the following post:

https://forums.silverfrost.com/Forum/Topic/4556

Please login to reply.