I'm attempting to use the CVI Execution Profiler to help optimize a C project I've written. After setting the Profiling build option to User Functions, I simply placed a CVIProfSetCurrentThreadProfiling(1) call at the top of my main function and ran. I immediately got an error stating "An unexpected fatal error occurred in the Execution Profiler." When I end the program, I see main and my exit() callback for closing the program from the main menu, which is interesting because the fatal error message occurs before the exit callback runs. However, no other functions ever appear on the profiler Functions list. I noticed while stepping through in debug that the profiler only crashes after stepping over RunUserInterface().
If I instead move CVIProfSetCurrentThreadProfiling(1) to the function I actually want to profile and try running, the unexpected fatal error occurs immediately after I step over CVIProfSetCurrentThreadProfiling(1).
I'm currently using LabWindows/CVI 2019 Full Development System version 19.0.0 (49155). I've checked NI package manager and have no outstanding updates.
Can anyone help me figure out what's going on?