Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Fatal Run-Time Error When Hovering Over Files in the LabWindows/CVI FileSelectPopup Dialog

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package

Problem:
When I execute the FileSelectPopup function call and hover the mouse over a file in the Desktop folder until the tooltip appears, then call FileSelectPopup again, a Fatal Run-time Error is thrown when I once again hover my mouse over a file in the Desktop folder. Is this an issue with LabWindows/CVI?

Solution:
This crash is caused by the installation of Adobe Acrobat Reader 7.0 in Windows XP. The program does not have to be running. It merely has to be installed. For more details, refer to the Google Discussion Group: Problems with GetOpenFileName and GetSaveFileName.

The error can happen in any LabWindows/CVI program, including the interactive execution window. This error is not due to a problem with the CVI environment. In particular, this problem can also happen when using other Windows applications, like Microsoft Notepad.

In order to workaround this issue, prior to calling FileSelectPopup, co-initialize the LabWindows/CVI main thread with the following call: CA_InitActiveXThreadStyleForCurrentThread (0, COINIT_APARTMENTTHREADED).

Related Links:
Google Discussion Group: Problems with GetOpenFileName and GetSaveFileName

Attachments:





Report Date: 11/28/2005
Last Updated: 02/14/2006
Document ID: 3RME6KD1

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit