LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic memory problems using tab panels

Hello,

When I use the EasyTab_ConvertFromCanvas() , it seems that I have memory leaks ( verified with the function CVIDynamicMemoryInfo() )...

The Message "Dynamic memory corrupt" appears sometimes... and the system become unstable...

The problem stills when i use DiscardControl and DiscardPanel when i quit the panels with tabs...

Has somebody have the same problem and resolved it ?

Thanks
0 Kudos
Message 1 of 3
(3,143 Views)
Hello clem006

We effectively have seen this kind of problem on certain cirumstances.
For example:
CVIDynamicMemoryInfo() displays a memory leak occuring if EasyTab_ConvertFromCanvas() and InstallCtrlCallback() are used together.
Are you programming the same way.
Could you please provide us a tiny code wich can reproduce the bug.

Regards

Salissou ISSA
Applications Engineer
NI France
Message 2 of 3
(3,143 Views)
Hello,

Thanks for your help...
Yes i used EasyTab_ConvertFromCanvas() and DuplicateCtrl...

I think i have found the solution :
all the created controls ( with DuplicateCtrl() ) must be discarded before exiting the panel.

But EasyTab_ConvertFromCanvas() seemed to be bugged because if you put CVIDynamicMemoryInfo() at the end of ni example project for tabs( simpledemo.prj and simpledemo2.prj), there is a memory leak...

Regards

Clement PRESSON
0 Kudos
Message 3 of 3
(3,143 Views)