#1 Burning Software

It is currently Thu Dec 19, 2024 6:16 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Memory leak in StarBurn_DVDVideo_Create
PostPosted: Wed Mar 14, 2007 8:06 am 
Offline

Joined: Thu Apr 27, 2006 12:32 am
Posts: 99
I'm getting memory leak errors when using the StarBurn_DVDVideo_Create function to create a DVD image from a VIDEO_TS directory. I've simplified my function all the way down to where all it does is call StarBurn_DVDVideo_Create then immediately calls StarBurn_DVDVideo_Destroy and I still get three leak errors. I'm not allocating any memory on the heap myself, and the leak errors only come up when I call this particular function so I know it's not any of my other code, so it has to be a leak in the StarBurn SDK. Also, in case it helps, the three leaks are all 2048 bytes in length. (the same size as a DVD block)

Dan


Top
 Profile  
 
 Post subject: Re: Memory leak in StarBurn_DVDVideo_Create
PostPosted: Wed Mar 14, 2007 11:43 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
What do you use to detect these leak errors? I've re-verified the code and did not find anything criminal... So more hints are required :) Thanks!

Dan203 wrote:
I'm getting memory leak errors when using the StarBurn_DVDVideo_Create function to create a DVD image from a VIDEO_TS directory. I've simplified my function all the way down to where all it does is call StarBurn_DVDVideo_Create then immediately calls StarBurn_DVDVideo_Destroy and I still get three leak errors. I'm not allocating any memory on the heap myself, and the leak errors only come up when I call this particular function so I know it's not any of my other code, so it has to be a leak in the StarBurn SDK. Also, in case it helps, the three leaks are all 2048 bytes in length. (the same size as a DVD block)

Dan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 4:05 pm 
Offline

Joined: Thu Apr 27, 2006 12:32 am
Posts: 99
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 6:06 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
OK, should be reproducable in such a case. I'll give it a try during this weekend and would let you know about progress. Thanks in any case for pointing :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 20, 2007 6:43 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
We've build a test VS2005 project, put a sample directory with DVD-Video content and... there are no memory leaks at processing :) Could you please try the version 7.2.20 (what's the version of the StarBurn you're using BTW) and issue us with a bit more information about what you do? Thank you very much for cooperation!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group