LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fatal internal error: error "thevent.cpp"

I'm getting the following error when I shut down LV 2010.

 

   Fatal Internal Error: error "ThEvent.cpp", line 236.

 

A search of the NI site didn't help. What is causing this?

 

George

0 Kudos
Message 1 of 13
(6,000 Views)

The error you are seeing is a bug in 2010 and has been submitted to R&D for corrective action. Should be fixed in LabVIEW 2010 SP1.

Jake H | Product Manager
0 Kudos
Message 2 of 13
(5,980 Views)

I'm running LV2010 SP1, and getting this error.  it's not fixed.

0 Kudos
Message 3 of 13
(5,859 Views)

Hi Britoa,

 

What are the steps to reproduce this error in LabVIEW 2010 SP1? Many instances that caused this error were fixed in the service pack but it is a generic error that may have previously unknown causes. If you can detail the process you went through when the error occurred I can reproduce it and report to R&D to make sure that it is fixed in a future version.

0 Kudos
Message 4 of 13
(5,852 Views)

I'm getting this error trying to create a wrapper for a DLL.

 

ThEvent.JPG

 

I created a cluster of an array of CHAR (8 bit unsigned) and a WORD (16 bit unsigned).

 

I created a cluster of an array of the previous cluster and an integer.

 

Block Diagram Clusters.JPG

 

I'm trying to mimic the code here: 

 

// receives list of supported board types
DL615_SUPPORTED_BOARD_LIST boardList;

// obtain list of supported board types
dl615_get_supported_boards(&boardList);

 

Where DL615_SUPPORTED_BOARD_LIST is a struct of type:

 

typedef struct
{
INT numBoardTypes;
DL615_SUPPORTED_BOARD boardType[32];
} DL615_SUPPORTED_BOARD_LIST;

 

and 

 

typedef struct
{
CHAR desc[32];
WORD type;
} DL615_SUPPORTED_BOARD;

 

0 Kudos
Message 5 of 13
(5,777 Views)

What version of LabVIEW are you running?

Applications Engineer
National Instruments
0 Kudos
Message 6 of 13
(5,762 Views)

2010 SP1

0 Kudos
Message 7 of 13
(5,759 Views)

@NelsonUWP wrote:

I'm getting this error trying to create a wrapper for a DLL.

 

ThEvent.JPG

 

I created a cluster of an array of CHAR (8 bit unsigned) and a WORD (16 bit unsigned).

 

I'm trying to mimic the code here: 

 

// receives list of supported board types
DL615_SUPPORTED_BOARD_LIST boardList;

// obtain list of supported board types
dl615_get_supported_boards(&boardList);

 

Where DL615_SUPPORTED_BOARD_LIST is a struct of type:

 

typedef struct
{
INT numBoardTypes;
DL615_SUPPORTED_BOARD boardType[32];
} DL615_SUPPORTED_BOARD_LIST;

 

and 

 

typedef struct
{
CHAR desc[32];
WORD type;
} DL615_SUPPORTED_BOARD;

 

 



Sadly, the array inside the cluster wont work for labview, it will turn it into a pointer.  If you feed in an array of U8s, 4+32*(1*32+2) long (int + 32 of (32 char + word)), it shouldn't give you grief.  but your output will come back as an array of U8s, so you will have to decode it. (first 4 U8s make the Int, next 32 are the name of the first, next two is the word for the first, then the second, etc.)

Message 8 of 13
(5,755 Views)

I tried that yesterday and if my math is correct I'd be looking at a single array of 1092 U8s.

 

I've tried using both stdcall (WINAPI) and C for the calling convention. Some of which crash LabVIEW without popups some of which crash with the ThEvent.cpp dialog shown above. I've also tried different data types. Nothing.

 

1092 Array.JPG

0 Kudos
Message 9 of 13
(5,748 Views)

Ok, so I decided to be smart about this and output an array rather than adapting to type.

I'm actually getting data from this, I don't know if it's the correct data yet, but data is better than crashing.

 

1092 the right way.JPG

0 Kudos
Message 10 of 13
(5,743 Views)