02-14-2011 07:54 AM
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
02-15-2011 03:10 PM
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.
05-17-2011 02:10 PM
I'm running LV2010 SP1, and getting this error. it's not fixed.
05-18-2011 11:33 AM
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.
10-31-2011 03:04 PM
I'm getting this error trying to create a wrapper for a DLL.
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.
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;
11-01-2011 10:25 AM
What version of LabVIEW are you running?
11-01-2011 10:27 AM
2010 SP1
11-01-2011 10:35 AM
@NelsonUWP wrote:
I'm getting this error trying to create a wrapper for a DLL.
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.)
11-01-2011 11:03 AM
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.
11-01-2011 11:07 AM
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.