10-14-2022 08:13 AM
Hello,
now it has hit me... running CVI2020 I can compile and run my function well in debug mode. However, when compiled and run in debug64 mode I get the fatal run-time error at unknown source position... (at address 1) when the function returns
I remember to have seen such an issue, but I am not sure and don't remember where...
My function looks like this
{
// block of code executing properly without issues //
} <- the error is thrown when the function returns; if I have a breakpoint before such as
{
// block of code executing properly without issues //
; <- statement with breakpoint: all fine until here
} <- the error is thrown when the function returns;
Any help is much appreciated, thanks a lot in advance!
By the way, the resource tracking utility also does not show any issue
Solved! Go to Solution.
10-15-2022 03:10 AM
hi
try to increase yout stack size on build option window or the default calling convention
10-17-2022 03:26 AM
Thanks, I will give it a try and let you know 🙂
10-18-2022 05:24 AM
I have increased the numbers maximum stack size and stack allocation size by a factor of 100 with no change in behavior.
However, when I deselect debugging (no run-time checks) everything works fine, so I conclude that this is an internal limitation of 32 bit CVI respective its debugger.
I will try to have NI look at it via filing a service request, but at the end of CVI's lifetime I am not so optimistic.
Thanks anyway for the suggestion!
11-15-2022 06:47 AM
I have been in contact with NI - and unfortunately, as I already expected, it turned out that the crash is another limitation of the LabWindows/CVI 32 bit application.
And because CVI uses its own memory manager it would be too much effort to fix this in a patch, according to NI - hence it will never happen 🙄