12-07-2007 10:31 AM
12-10-2007
05:26 PM
- last edited on
12-10-2025
12:57 PM
by
Content Cleaner
12-12-2007 08:31 AM
lion-o,
The program I created errors when referencing a vi/function where the errorin is wired to the errorout (no other logic is included in this vi/function), in this case I should not be getting any errors. As previously mentioned in order to avoid this error I would need to initialize the cnt = 0 for the errorin struct. When setting cnt =0 (for the errorin) the errorout returns a cnt = 0 thus the char [ ] = null. So when I try to initialize the errorin to generate an error with cnt = total # char in the char [ ], I run into a LabVIEW error: "MemoryManager.cpp line 406". This error is generated when I try to initialize the errorin in which the cnt !=0.
The following is the struct for the LV error description:
typedef struct {
int32 cnt; /* number of bytes that follow */
uChar str[1]; /* cnt bytes */
} LStr, *LStrPtr, **LStrHandle;
What I dont understand is why the char [ ] only contains 2 elements. Also the comments for both the cnt and str are not clear.
-r
12-12-2007 09:19 AM
labwhat wrote:
lion-o,
The program I created errors when referencing a vi/function where the errorin is wired to the errorout (no other logic is included in this vi/function), in this case I should not be getting any errors. As previously mentioned in order to avoid this error I would need to initialize the cnt = 0 for the errorin struct. When setting cnt =0 (for the errorin) the errorout returns a cnt = 0 thus the char [ ] = null. So when I try to initialize the errorin to generate an error with cnt = total # char in the char [ ], I run into a LabVIEW error: "MemoryManager.cpp line 406". This error is generated when I try to initialize the errorin in which the cnt !=0.
The following is the struct for the LV error description:
typedef struct {
int32 cnt; /* number of bytes that follow */
uChar str[1]; /* cnt bytes */
} LStr, *LStrPtr, **LStrHandle;What I dont understand is why the char [ ] only contains 2 elements. Also the comments for both the cnt and str are not clear