CONTINUE from previous page.
COMPILING: FTN95 aaa.f95 /link or FTN95 aaa.f95 /link /check
module mod1
INCLUDE <clearwin.ins>
integer:: kpol1=1, nAxialSlices=1, n_CurrSheetSettings=1, kPrintScreenLoadedDensity=1
integer (7) khwCtrlSettingsMain
real*8 SIZEINCRFORZ1
Contains
integer*4 function MainSettings ()
! save
!....... one of sources of Access Violation if n_CurrSheetSettings not set (= 1)
i=winio@('%sy[3d_raised]&')
i = winio@('%ca[&Main]&')
i = winio@('%sh',ish1)
i = winio@('%ca[&Selection]&')
i=winio@('%1.3ob[raised]&')
i=winio@(' nAxialSlices %ta%9rd%ff&', nAxialSlices)
i=WINIO@('%cb&')
i=winio@(' Factor and RGBA Colors to highlight Z1%ta%9rf %ff&', SizeIncrForZ1)
i=WINIO@('%cb&')
i=winio@(' Print after read densities to text window %ta%rb[PrintScreen Density]%ff&', kPrintScreenLoadedDensity)
i=WINIO@('%cb&')
i = winio@('%sh',ish2)
i = winio@('%ca[&Palette]&')
i = winio@('%sh',ish3)
i = winio@('%ca[Tab3]&')
i = winio@('%sh',ish4)
i = winio@('%ca[&After 4]&')
i = winio@('%sh',ish5)
i = winio@('%ca[Debug]&')
! if remove kpol6 - not crashing
I = winio@('kpol1 ... 6 %ta%4rd%4rd%4rd%4rd%4rd%4rd %ff&', kpol1, kpol2, kpol3, kpol4, kpol5, kpol6)
i = winio@('%sh',ish6)
i = winio@('%ca[Vol]&')
i = winio@('%sh',ish7)
i = winio@('%ca[Misc]&')
i = winio@('%sh',ish8)
i = winio@('%ca[Res.]&')
i = winio@('%sh',ish9)
i = winio@('%ca[Res2]&')
i = winio@('%sh',ish10)
i = winio@('%ca[Res3]&')
i = winio@('%sh',ish11)
i = winio@('%^`11ps&',ish1, ish2, ish3, ish4, ish5, ish6,&
& ish7, ish8, ish9, ish10, ish11, &
& n_CurrSheetSettings, cbupdateSettings)
i = winio@('%ww%bg[gray]&')
i = winio@('%ac[Esc]&', 'exit')
i = winio@('%ac[Alt+X]&', 'exit')
i = WINIO@('%ff%cn%6`^bt[&OK] %6^bt[&Cancel]&',&
& 'set', lwCtrlSettingsMain, 0,&
& 'set', lwCtrlSettingsMain, 0)
m = WINIO@('%hw&', khwCtrlSettingsMain)
m = WINIO@('%lw', lwCtrlSettingsMain)
10000 MainSettings = 2
end function
!....................................................
INTEGER*4 FUNCTION cbupdateSettings()
call see_propertysheet_page@ (n_CurrSheetSettings)
cbupdateSettings=2
end function
end module mod1
!====================================================
Program CrashingPS
use mod1
!.... With this line it crashes
i=winio@('%mn[File[Settings]]%es', MainSettings ) ! variant1 crashes
!.... With this line instead previous one - not crashing
!i=winio@('%ww%^bt[Settings]%es', MainSettings ) ! variant2 not crashing
end program