Visual Studio 2005's debugger. I don't know if it matters or not, but I'm using the statically linked version of StarBurn and it's still running in freeware mode. (I plan on upgrading once I verify everything works correctly)
Here is the exact code I'm using...
Code:
// Create DVD file system
CString ExceptionText;
ULONG SystemError = ERROR_SUCCESS;
PVOID pDVDVideo = NULL;
EXCEPTION_NUMBER ExceptionNumber =
StarBurn_DVDVideo_Create(
&pDVDVideo,
"C:\\DVD\\VIDEO_TS\\",
TRUE,
ExceptionText.GetBuffer(1024),
sizeof(ExceptionText),
&SystemError,
"VOLUMELABEL",
"Publisher",
"Application",
2006, // Year
10, // Month
20, // Day,
12, // Hour
10, // Minute
0, // Second
50 // Millisecond
);
// Free allocated memory
StarBurn_DVDVideo_Destroy(pDVDVideo);
and here is the output of the debugger when the program exits...
Quote:
Detected memory leaks!
Dumping objects ->
{690} normal block at 0x012EF4D8, 2048 bytes long.
Data: < Gb > 01 01 02 00 D2 00 00 00 47 62 18 00 0D 00 00 00
{689} normal block at 0x012EEC98, 2048 bytes long.
Data: < Gb > 01 01 02 00 CB 00 00 00 47 62 18 00 06 00 00 00
{688} normal block at 0x012D0068, 2048 bytes long.
Data: < Gb > 01 01 02 00 C8 00 00 00 47 62 18 00 03 00 00 00
Object dump complete.
If I comment out that section of code then the leak goes away.
Dan