HI,
I use the instrcument driver 'PWCTRL.FP' with CVI 8.0. When i use the funciton 'PasswordCtrl_Create' or the function 'PasswordCtrl_ConvertFromString', some memory are not freed when i close my application, event though i call the function'DiscardCtrl()' before the DiscardPanel().
ExAmple :
void main( void ) {
INT32 panel, new_pw, old_pw, confirm_pw;
UINT32 nb_blocks, nb_bytes;
panel = LoadPanel( 0, "C:\\Logiciel\\BCTESYS\\Password\\password_uir.uir", CONFIGURE );
/* ctrl en type password */
old_pw = PasswordCtrl_ConvertFromString (panel, CONFIGURE_OLD);
// new_pw = PasswordCtrl_ConvertFromString (panel, CONFIGURE_NEW);
// confirm_pw = PasswordCtrl_ConvertFromString (panel, CONFIGURE_CONFIRM);
DiscardCtrl( panel, old_pw );
DiscardPanel (panel);
// For memroy checking
CVIDynamicMemoryInfo( "", &nb_blocks, &nb_bytes, 0 );
if ( nb_blocks || nb_bytes ) {
char message[255];
sprintf( message, "Memroy\nNb blocks : %u\nNb bytes : %u", nb_blocks, nb_bytes );
MessagePopup( "Surprise", message );
}
return;
}
=> With this codce , i always get 2 blocks and 80 bytes not freed !
Anyone can help me to use this NI driver ?