Silverfrost Forums

Welcome to our forums

Scrollable format window?

16 Mar 2018 6:54 #21628

Creating the child window (formerly my main) and inserting it as a child works fine. When I added the vertical scroll bar for the child window, my program crashes with some unknown error (no FTN95 error box). I tried doubling the stack and heap for the linker (/heap:12000000,6000000 /stack:9600000,4800000) but no good effect.

The child window is quite complex. Too long to post here. Are there controls that are incompatible in the child window with the child window scrollbars? %re? %ob? %ls? Any ideas?

Bill

27 Mar 2018 3:06 #21672

Bill,

I do not think anything is specifically explicitly incompatible, the Clearwin withstands severe torture and after swearing and yelling eventually almost everything works.

There exist one not so clear Clearwin+ problem: the FTN95 (with one of its golden debug features to check for undefined variables) does not check if variables inside winio@ controls are undefined. As a result the %ls for example with some undefined variable can cause sometimes the crash of %ps.

Another not directly related thought - seems you are still using 32 bit FTN95. When your code growing in size starts to need adjustments of stack/heap that means it overgrown 32bit. This code will never reach stability in 32bits. Good is that we have 64bit FTN95. It is maturing fast but 64bit debugger is not yet perfectly polished compared to 32bit one. So try to rebuild the code such a way that both 32 and 64 will be working and if some hidden error will occur return to 32bits to debug.

Third, the crash also can occur when you are scrolling or continuously refreshing window using sliders %sl etc and did not ensure that previous I/O operation was fininished and did not overlap with the new request to plot or print

27 Mar 2018 4:24 #21673

Dan, thanks for the insights.

I'm sure that all the variables have an initial value. I've experienced the awful results when a winio@ call has an 'undefined'! Never good.

I would have thought that increasing stack/heap by a factor of 4 might be enough in the case where allocations need to be made to do the internal scrolling. Perhaps not. That said, I understand that 64-bit is the wave of the future, and transitioning to this might be the thing to do to get this particular feature to work. I'm just not ready to go there.

So I have abandoned the scrolling of the window for now. I may revisit again when I get more time. I have a stripped down version for a Plato project to be used specifically for this; when I get the time, I play with it, trying to find which combination of controls I can remove and get it to work! If I get success, then I'll let you all know!

28 Mar 2018 6:26 #21692

John,

The idea of an MDI is intriguing, and this may actually be better than what I currently have working. Time will tell!

I tried the %sh and %ww both (slightly different examples in the help file and differences in control variables and handles), but essentially the same results.

So, as time permits, I'll look at the MDI to see if that is a better solution. I'll take a gander at your posting to see how that might work!

Thanks for taking the time with this! Bill

28 Mar 2018 10:23 #21693

John,

Works for me with 8.10.

Eddie

10 Apr 2018 5:12 #21784

Congrats, John, for taking this milestone with Clearwin+. How much swearing this took for you? Over the 2 decades of lifetime of similar design I probably spent a month for doing and redoing it learning also best English expressions. Additionally when I started Clearwin+ and FTN95 just appeared and were not very stable

Please login to reply.