Hello all,
in my present CVI 7.1 application I get
NON-FATAL RUN-TIME ERROR: "storm_encoder.c", line 862, col 40, thread id 0x00000A80: Local 'sCmd' was referenced before being initialized.
The function wherein this event happens is
WORD_16 enc_fResetEventLog( enc_sEncoderType *psEncoder, enc_pvfCmdConfirmType pvfNotifyFunc, void * pvApplicationData )
{
WORD_16 wRetVal = TRUE ;
storm_sCommandType sCmd ;
sCmd.ubyHeader = 0x10 ;
sCmd.ubyLB = 0x01 ;
sCmd.ubyCmd = 0x93 ;
wRetVal = fSendCommand( psEncoder, sCmd, 3, pvfNotifyFunc, pvApplicationData );
return wRetVal ;
}
So sCmd is a struct declared in the function. Some but not all menbers of the struct are initialized.
Has anybody an idear, why CVI assumes that sCmd is not initialized?
(The "error" does not appear if I add a memcpy after the declaration.)
Kind regards,
ah