Search found 18 matches

by Mobatec
Thu Oct 14, 2021 1:03 pm
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

Thanks for the nice comments, Marcel ;)

- Mathieu.
by Mobatec
Tue May 12, 2020 7:32 am
Forum: Common questions
Topic: How to move a BlackBox document view to the second monitor?
Replies: 16
Views: 22568

Re: How to move a BlackBox document view to the second monit

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:...
by Mobatec
Sat May 09, 2020 7:25 pm
Forum: Common questions
Topic: BlackBox as a Windows service?
Replies: 5
Views: 13465

Re: BlackBox as a Windows service?

Hi Josef,

Almost 4 year late :geek: , 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,..

Kind regards,
Mathieu.
by Mobatec
Wed Aug 07, 2019 10:16 am
Forum: Feature
Topic: Scrolling
Replies: 4
Views: 11258

Re: Scrolling

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...
by Mobatec
Tue Nov 06, 2018 8:10 pm
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

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 :geek:
by Mobatec
Thu Nov 01, 2018 10:33 pm
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

Wow, Josef (and luowy), Thanks very much, this really seems to be the solution to the strange issue I have been encountering! Great.
by Mobatec
Wed Oct 31, 2018 8:31 pm
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

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...
by Mobatec
Wed Oct 31, 2018 9:55 am
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

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...
by Mobatec
Sun Oct 28, 2018 12:31 pm
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

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,...
by Mobatec
Thu Oct 25, 2018 7:28 am
Forum: System
Topic: Stack Commit Size, Stack Reserve Size
Replies: 36
Views: 247661

Re: Stack Commit Size, Stack Reserve Size

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.
Hi Josef,

Any hints on how to do this?

- Mathieu.