LabWindows/CVI Gives Combase DebugOutput on FileSelectPopupEx Function

Updated Aug 17, 2022

Reported In

Software

  • LabWindows/CVI

Issue Details

I am using FileSelectPopupEx in LabWindows/CVI. When doing so, I see the CVI Debug Output give a message:
onecore\com\combase\dcomrem\security.cxx(3071)\combase.dll!75A16ACD: (caller: 7BCC7E3A) ReturnHr(1) tid(4624) 80010117 Call context cannot be accessed after call completed.

Solution

LabWindows/CVI uses Microsoft standard functions for OpenFile and SaveFile from the Windows SDK.

FileSelectPopupEx (and FileSelectPopup) both track into the Microsoft API for error handling. The Windows SDK OpenFile function returns “RPC_E_CALL_COMPLETE”, which in CVI translates to the error we see in the debug output. 

This error can be safely ignored as it is an expected response from the Windows SDK call.