Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

EXCEPTION HANDLER (code 18)

hello all,

While developing a VI for simple image processing on a  real timea target
7.1.1....When I run the VI on WIn xp it runs fine,.,,,,but on the real time taget the
VI crashes the sytem
heres the rtlog.txt file.-.....can someone figure out waht went wrong....Am i running out of memory?

System log started Fri Jul 22 14:03:57 2005


*** REGISTER DUMP FROM EXCEPTION HANDLER (code 18) ***

EAX = 0x00000000    EBX = 0x00000001
ECX = 0x00000000    EDX = 0x00000000
ESI = 0x0020E2DC    EDI = 0x0020E330

EBP = 0x0020E330    ESP = 0x0020dffc
CS = 0x0018  DS = 0x0020  ES = 0x0020
EIP = 0x007026fa

Thread name: Main Application Thread
Thread stack base: 0x001EE5A0  stack size: 131072

Call Stack:
Level 1 :  Code pointer: 0x0068A716  Stack Base: 0x00614800
Level 2 :  Code pointer: 0x00000007  Stack Base: 0x00000000

DLLs loaded:
DLL: EMBLVIEW.EXE     First export address: 0x002DE040
DLL: FTPSERVE.DLL     First export address: 0x0027EBE8
DLL: I8254X.DLL       First export address: 0x0027A003
DLL: I8255X.DLL       First export address: 0x002BE6CD
DLL: LVRT.DLL         First export address: 0x0031EB00
DLL: SMC9.DLL         First export address: 0x002C2000

System log started Fri Jul 22 14:04:33 2005
**************************************************************
Thank you,
Dhananjay
0 Kudos
Message 1 of 4
(3,588 Views)

Dhananjay,


As a disclaimer, I am not interpreting the error log file that you posted. The single most common cause that I have found for crashing a RT target with Error Code 18 is for the RT system to run out of memory. You may want to look at the VI to determine how much memory it is using (VI Description>>Memory Usage). If you are allocating many arrays of large arrays of data, and you are not manipulating it effectively (causing extra copies of the data), it is very easy to overload the available memory of many of the RT targets.

 

Regards,

Aaron

LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 4
(3,584 Views)
Hello,
 
It is very likely that you are running out of memory.  If you do a search on our website, you can see that there are other reasons why you can get this error.  What RT target are you using? You can check the memory that it is been used through the Tools--> Real-Time System Manager.  It will let you check memory and CPU.
Hope this helps.
 
Ricardo
National Instruments
0 Kudos
Message 3 of 4
(3,570 Views)
Hello,
Thank you Aaron and Ricardo....
Somehow,the application started working,maybe I tweaked the code a little bit,tho I cant put my finger on it.
The exception handler 18 has been giving me constant trouble.
There is also the description of the real time target in here...
http://forums.ni.com/ni/board/message?board.id=280&message.id=1174

thanks again...
dhananjay

0 Kudos
Message 4 of 4
(3,566 Views)