I wrote a very small procedure to get any window "floating" independent of the main BlackBox window. Maybe that also helps? PROCEDURE DecoupleChildWindow*; (* Decouples the currently focussed child window from the Hostwindows.main, such that it can float freely over the desktop *) VAR win:...
Almost 4 year late , but I have experience running blackbox as a Windows Service using nssm.exe (The "non-sucking service manager"). Works great. Only disadvantage is that you cannot have any interaction via Dialogs or so,..
Nice to learn that my code of 15 years back is also used by others :geek: I still check out this forum and the Component Pascal Collection regularly for nice improvements to BlackBox. Unfortunately,I didn't have (make :oops: ) much time to make my own programs generic and share them with the communi...
Good point.
The more comments, the better, I would say. I tend to put a lot of comments in my source code, since typically a few years down the line, you have a hard time understanding your own "smart" code
There is no run-time problem. The stack overflow problem only occurs when trying to load (internalize) a big model. Building the big model, running it and also saving (externalizing) it are no problem. Maybe it's indeed the 32-bit limit. There are quite some cyclic data structures in the defined obj...
Thanks for the suggestion, but the large arrays that I use are already in a dynamic form and take the actual size. I always try to minimize the allocation of new objects. There is quite a deep recursion, though. There are typically a lot of smaller arrays in my models, not several large ones. For ex...
Hi Ivan, A bit hard to give an example module. To have an idea about what our models look like have a quick look at this video: https://www.mobatec.nl/web/videos/Mobatec_Modeller.webm What we store is a mixture of a lot of information in a "Mobatec Modeller Model": Graphical, mathematical,...
Josef Templ wrote:
The only other idea that I currently have is to avoid the large stack by allocating large data structures on the heap.
This would give you much more memory but it is of course a change in your model loader.