On Wednesday, October 26, 2022 at 3:24:21 AM UTC+11 Albrecht Schlosser wrote:
Such bugs are in many cases user code errors. The workaround is to fix
the bugs ...
Okay, so I have managed to correct this. I would hazard a guess that the Windows version of fltk has a problem with an overlapping window where certain widgets are involved (good luck trying to debug that !).
The simple fix here is to set the ->hotspot to a different position. It seems by some strange twist of fate I managed to position it exactly at the point and used the exact widgets to make this apparent.Complicating this is the fact that you can debug the program and it wont fail (some of the time !!).
if i code:-
cout << *a01_no << " " << a01_name << endl;win2->(show);
And I can see the No and Name on the console rendered correctly but observe the Window display is corrupt, then anything that goes on in win2->show has got nothing to do with me.
Sorry, but I do not want to spend my time debugging C++ programs. I am looking from a GUI Toolkit that I can use as a front end to my own work.If I can't simply call it and let it do it's thing then it is not going to be much use.
On 10/27/22 17:52, roger tunnicliffe wrote:
Why do we need to abstract that into something that bears little resemblance to how a computer actually works. and the scoping...my god.. if you designate an area of memory to hold something and you don't want to access that outside your current section then DON'T ACCESS IT OUTSIDE YOUR CURRENT SECTION.
<RANT>To be completely honest, I find C++ to be an abomination.
</RANT>
I agree. The answer that you are looking for is Python. Python stores with every chunk of memory a description what that chunk is and what it does. You never have to worry about bytes, words, doubles or floats again. You can even continue to use FLTK via pyFLTK.
Or consider also using GNU guile https://www.gnu.org/software/guile/ or even (later, or contribute to it now....) RefPerSys on http://refpersys.org/
Regards from near Paris in France
-- Basile Starynkevitch <bas...@starynkevitch.net> (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/