NeroDone function / memory

vbimport

#1

Hi,

if I compile the NeroFiddles sample application with Visual Studio .Net without any changes, I get the following error message , when I simply start and then quit the “NeroFiddles” application :

“Detected memory leaks in NeroFiddles”

Probably this is due to the lines :

if(NeroDone())
{
AfxMessageBox(“Detected memory leaks in NeroFiddles”);
}

Any suggestions?

Bernd


#2

may be it is due to a return type changed (NeroDone function) in release 6.0.0.0 of Nero. See pag. 90 of NeroApi documentation


#3

This is what the current documentation says:

7.2.14. NeroDone
Call this function before closing the DLL. This is necessary because some cleanup
actions like stopping threads cannot be done in the close function of the DLL.
NeroDone returns TRUE if some memory blocks were not unallocated using
NeroFreeMem. They are dumped in the debug output.
NeroDone returns FALSE if it succeeded.

If it was changed it wasn’t documented.

Bernd


#4

Hi Bernd

I had your same problem, and I was using Nero engine release 5.5.10.28.
Documentation on NeroDone (table in the bottom) says that before release 6.0.0.0 this function returned void.

Which release are you using?


#5

Ok, sorry. This was stupid indeed.

I am using an older Nero release (5.5.7.8), but downloaded the
newest documentation from the web page.

Maybe I should upgrade…

Thanks for your help.

Bernd