PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

First-chance exception in (KERNEL32.DLL): 0xE06D7363:

Hi all,
 
I'm using VC++ 6.0 to program the NI-5661. When I call the following function
 
ViError = niRFSA_init ("DownConverter5600_0", VI_TRUE, VI_FALSE, &DigitizerHandle);
 
I get twice
 
First-chance exception in App.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
 
Does anyone know the reason?
 
Cheers, Vedis
0 Kudos
Message 1 of 4
(7,716 Views)
Hello Vedis,

it is difficult to say what the reason is for this error. It could be a problem with the driver installation or hardware conflict.
Do you have some more information?
Do you see the 5661 in MAX? Is it possible to run the selftest? Is it possible to run an example?

Regards,
Wolfgang

0 Kudos
Message 2 of 4
(7,700 Views)

Hi Wolfgang

I have two 5661-RFSAs, two preamps and two RF-multiplexers installed in one chasis. I can use MAX to reset all boards and to do all selftests without any problem. Programs run in release mode. In VC++6.0 debugging mode the aforementioned first chance exception could be ignored since it is usually handeled by Windows. But I still want to get rid of it as I'm not sure if it causes stability problems in the release mode. Strange is that, I initialize the 5661s, preamps and RF-multiplexers in the same way, and the first chance exception only happes when initializing 5661. I wrote a simplified test program that includes only the 5661 relevant parts, and the same can be observed.

When watching the Disassembly in the debug window I can see the exception happens at the last line (00441D15) of the following code extraction.

2287:     // Initialize RFSA 0
2288:     DeviceName = "DownConverter5600_0";
00441CD9   mov         dword ptr [ebp-0Ch],offset string "DownConverter5600_0" (00510ac8)
2289:     ViBoolean DigitizerIDQuery = VI_TRUE;
00441CE0   mov         word ptr [ebp-0DCh],offset CDVBQOSView::OnMainViewBtnBootpxi+1F7h (00441ce7)
2290:     ViBoolean DigitizerReset = VI_FALSE;
00441CE9   mov         word ptr [ebp-0E0h],offset CDVBQOSView::OnMainViewBtnBootpxi+200h (00441cf0)
2291:     ViError = niRFSA_init (DeviceName, DigitizerIDQuery, DigitizerReset, &DigitizerHandle0);
00441CF2   mov         ecx,dword ptr [ebp-4]
00441CF5   add         ecx,186BCh
00441CFB   push        ecx
00441CFC   mov         dx,word ptr [ebp-0E0h]
00441D03   push        edx
00441D04   mov         ax,word ptr [ebp-0DCh]
00441D0B   push        eax
00441D0C   mov         ecx,dword ptr [ebp-0Ch]
00441D0F   push        ecx
00441D10   call        niRFSA_init (004a76ea)
00441D15   mov         dword ptr [ebp-1Ch],eax

Thank you for any hints.

Vedis

0 Kudos
Message 3 of 4
(7,613 Views)
😮 = : O
0 Kudos
Message 4 of 4
(7,611 Views)