LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup causes run-time error

Hi all,

 

I am getting a Fatal Run-Time Error when calling FileSelectPopup in all my programs and even with the sample program “CVI\samples\fileio\arrayfile.prj”. The popup does not even appear.

 

On the other hand… the executable works! Why?

 

The weird thing is that everything run perfectly last week in the same computer. And weird is that I tested the programs now in another computer with the same configuration (winXP SP3, CVI 8.0.1, cvirte.dll version 8.5.0.279) and the fault does not occur!!! But I must work on my own computer. I did not change any configuration issues in it in the last week.

 

Do you know about any automatic windows updates, system configuration, utilities, other programs, building options or something that can be causing the problem? Any idea about how to solve it?

 

Thanks, Kristel

0 Kudos
Message 1 of 16
(5,134 Views)

That is strange - the same thing happened to me today ! I was using a call to FileSelectPopup that we HAVE NOT CHANGED FOR YEARS, all was fine still this morning, but since some hours ago, I get exactly the same message AT THE SAME ADDRESS (0x7C91E4FF).

 

What the hell is that ? As I said, the software has worked unchanged for years.

0 Kudos
Message 2 of 16
(5,113 Views)

Some more info :

it now keeps happening :

 - with ALL CVI applications that use FileSelectPopup WHEN STARTED FROM THE IDE (either debug or release build)

 - with another application, trying executing "error = Excel_NewApp (NULL, 1, LOCALE_NEUTRAL, 0, &ExcelAppHandle);"

 

it DOES NOT happen :

 - when I start the release build's .exe OUTSIDE the IDE

 

So, it seems to have something to do with the IDE. I already played with stack size, and the "Environment->File Browsing->default to project directory when opening files" check box, but nothing seems to help.

 

Please , anybody - our customer's waiting for an urgent application update, and we are not able to debug... Murphy's law again...

0 Kudos
Message 3 of 16
(5,105 Views)

Hello -

 

I've tried to reproduce what you've both described, but I have not had any luck.  What you are describing seems to point to some type of system update.  Because the crash does not occur outside of the LabWindows/CVI development environment, it will be more difficult to track down.  Because of this, Could you both please respond to the following questions?  I know you've each addressed some of them, but I'd like to have them all together to make sure we're all on the same page.

 

  1. What OS (service pack included) is this happening on?
  2. What is the version number (x.x.x.xxx) of cvirte.dll in system32?
  3. Does this crash happen even in example programs?
  4. Does this crash only happen when debugging the program from CVI?
  5. Do the file dialogs in CVI itself crash?  (File»Open»...)

 

Finally, could you both please do the following:

 

  1. Place a breakpoint immediately before the call to FileSelectPopup
  2. When the breakpoint is hit, select Window»Modules
  3. Right click in the Modules window and select Copy All Items
  4. Paste the clipboard into a text file and attach the text file to your response.

 

Thanks -

 

NickB

National Instruments

0 Kudos
Message 4 of 16
(5,096 Views)

Hello Nick,

 

many , many thanks for your quick reply.

  1. What OS (service pack included) is this happening on? : Microsoft Windows XP (32 Bit) Professional Version 2002, SP3
  2. What is the version number (x.x.x.xxx) of cvirte.dll in system32? : 9.1.0.427
  3. Does this crash happen even in example programs? yes: I tried ..\CVI 2009\samples\activex\cvi\cvidemo.prj: "FATAL RUN-TIME ERROR:   "c:\...\CVI2009\samples\activex\cvi\cvidemo.c", line 119, col 26, thread id 0x00001050:   The program has caused a 'Unknown' fault at 0x7C91E4FF.

    "
  4. Does this crash only happen when debugging the program from CVI? : yes, either in debug or in release config. But my release build .exe works fine if double-clicked.
  5. Do the file dialogs in CVI itself crash?  (File»Open»...) : no

Output of Window->Modules:

EHP_dbg.exe    0x00400000-0x00828000    c:\SVN\Projekte\Vaillant\Serienprodukte\Wärmepumpe ab SW 3.0\2 technik\software\AMU\Simulation    1.0.0.0    1    Loaded
ntdll.dll    0x7C910000-0x7C9C9000    ntdll.dll    5.1.2600.5755    2    Not loaded
kernel32.dll    0x7C800000-0x7C908000    C:\WINDOWS\system32    5.1.2600.5781    3    Not loaded
USER32.dll    0x7E360000-0x7E3F1000    C:\WINDOWS\system32    5.1.2600.5512    4    Not loaded
GDI32.dll    0x77EF0000-0x77F39000    C:\WINDOWS\system32    5.1.2600.5698    5    Not loaded
cvirte.dll    0x68420000-0x6896C000    C:\WINDOWS\system32    9.1.0.427    6    Not loaded
WINMM.dll    0x76AF0000-0x76B1E000    C:\WINDOWS\system32    5.1.2600.5512    7    Not loaded
ADVAPI32.dll    0x77DA0000-0x77E4A000    C:\WINDOWS\system32    5.1.2600.5755    8    Not loaded
RPCRT4.dll    0x77E50000-0x77EE3000    C:\WINDOWS\system32    5.1.2600.6022    9    Not loaded
Secur32.dll    0x77FC0000-0x77FD1000    C:\WINDOWS\system32    5.1.2600.5834    10    Not loaded
MPR.dll    0x71A80000-0x71A92000    C:\WINDOWS\system32    5.1.2600.5512    11    Not loaded
COMCTL32.dll    0x5D450000-0x5D4EA000    C:\WINDOWS\system32    5.82.2900.6028    12    Not loaded
MSIMG32.dll    0x76320000-0x76325000    C:\WINDOWS\system32    5.1.2600.5512    13    Not loaded
WINSPOOL.DRV    0x72F70000-0x72F96000    C:\WINDOWS\system32    5.1.2600.5512    14    Not loaded
msvcrt.dll    0x77BE0000-0x77C38000    C:\WINDOWS\system32    7.0.2600.5512    15    Not loaded
COMDLG32.dll    0x76350000-0x7639A000    C:\WINDOWS\system32    6.0.2900.5512    16    Not loaded
SHELL32.dll    0x7E670000-0x7EE91000    C:\WINDOWS\system32    6.0.2900.6018    17    Not loaded
SHLWAPI.dll    0x77F40000-0x77FB6000    C:\WINDOWS\system32    6.0.2900.5912    18    Not loaded
ole32.dll    0x774B0000-0x775EE000    C:\WINDOWS\system32    5.1.2600.6010    19    Not loaded
OLEAUT32.dll    0x770F0000-0x7717B000    C:\WINDOWS\system32    5.1.2600.5512    20    Not loaded
IMM32.DLL    0x76330000-0x7634D000    C:\WINDOWS\system32    5.1.2600.5512    21    Not loaded
comctl32.dll    0x773A0000-0x774A3000    C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202    6.0.2900.6028    22    Not loaded
uxtheme.dll    0x5B0F0000-0x5B128000    C:\WINDOWS\system32    6.0.2900.5512    25    Not loaded
MSCTF.dll    0x746A0000-0x746EC000    C:\WINDOWS\system32    5.1.2600.5512    26    Not loaded
SynTPFcs.dll    0x63000000-0x63014000    C:\WINDOWS\system32    7.5.17.27    27    Not loaded
VERSION.dll    0x77BD0000-0x77BD8000    C:\WINDOWS\system32    5.1.2600.5512    28    Not loaded
msctfime.ime    0x75250000-0x7527E000    C:\WINDOWS\system32    5.1.2600.5512    29    Not loaded
btmmhook.dll    0x10000000-0x10013000    C:\WINDOWS\system32    5.5.0.3100    30    Not loaded
mesa.dll    0x029A0000-0x02A7A000    C:\Programme\National Instruments\Shared\Mesa    3.0.0.0    31    Not loaded

0 Kudos
Message 5 of 16
(5,072 Views)

Idea: is there any temporary file of the IDE itself that may be damaged ? I keep thinking that it might  have something to do with the "Options->Environment->Default to project directory when opening files" thing (although I started playing with it AFTER the problem turned up).

0 Kudos
Message 6 of 16
(5,071 Views)

Oh, haven't seen at first glance : the problem started with "Kristel" YESTERDAY ? That might point to a anti-virus update problem. I will contact my admin in order to try it in protected mode.

0 Kudos
Message 7 of 16
(5,067 Views)

Hello Nick,

 

here the answers:

  1. What OS (service pack included) is this happening on? Windows XP Professional Version 2002 SP 3
  2. What is the version number (x.x.x.xxx) of cvirte.dll in system32? 8.5.0.279
  3. Does this crash happen even in example programs? Yes, for example in National Instruments\CVI85\samples\fileio\arrayfile.prj
  4. Does this crash only happen when debugging the program from CVI? Yes
  5. Do the file dialogs in CVI itself crash?  (File»Open»...) No

Now I set the breakpoint but I do not see Window>>Modules (?). Instead I have Run>>>Loaded Modules. The output is in the attachment.

 

I use AVIRA as antivirus which updates automatically. Any ideas about how to solve the problem (yes, it started yesterday!)?

Many thanks,

Kristel

0 Kudos
Message 8 of 16
(5,062 Views)

I had to uninstall Avira, now all programs work. The problem was caused by the antivirus updates posterior to 6th december Smiley Mad

0 Kudos
Message 9 of 16
(5,033 Views)

Thanks for the advice - we are using avira, too, but just disabling its services did not do the trick. We found out that the problem is gone when in protected mode, but disabling one system service after another did not help so far.

I will ask my admin to uninstall Avira, and report our result.

0 Kudos
Message 10 of 16
(5,027 Views)