How do I give C++ child threads more stack memory in MATLAB on Windows?
Show older comments
I am using the "NET.addAssembly" function to load a .NET DLL, which is then used to call a C++ DLL on Windows. This C++ DLL spawns child threads that consume a lot of stack memory. In R2019b, this was no problem, as it appears the C++ thread is given about 64 MB. However, when I updated to R2025b, I started getting stack overflow errors. It seems that the threads are only given 1 MB. How can I give the child thread more memory?
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!