#1 Burning Software

It is currently Wed Dec 18, 2024 11:00 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: DiscInfo.TotalSize may be incorrect?
PostPosted: Sun Dec 06, 2009 5:10 am 
Offline

Joined: Sun Dec 06, 2009 4:44 am
Posts: 3
I am using starburnx working in c#. I have set up a loop to fill m_dataBurner.AddFile() to the size of the disc. Then go to burn. However, when I play:

disksize = (m_starBurnX.Drives[selecteddrive].DiscInfo.TotalSize);
disksize returns 2295104
Window disc property returns 4700372992

The disc is a dvd. Obviously disksize is not in bytes. How do I get disksize to return in bytes?


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
PostPosted: Sun Dec 06, 2009 12:37 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Logical blocks. 2048 bytes in size each.

( 2295104 * 2048 ) = 4700372992

kbodkin wrote:
I am using starburnx working in c#. I have set up a loop to fill m_dataBurner.AddFile() to the size of the disc. Then go to burn. However, when I play:

disksize = (m_starBurnX.Drives[selecteddrive].DiscInfo.TotalSize);
disksize returns 2295104
Window disc property returns 4700372992

The disc is a dvd. Obviously disksize is not in bytes. How do I get disksize to return in bytes?


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
PostPosted: Tue Dec 15, 2009 12:07 am 
Offline

Joined: Sun Dec 06, 2009 4:44 am
Posts: 3
Anton

Logical blocks. 2048 bytes in size each.

( 2295104 * 2048 ) = 4700372992

This makes perfect since, However this is what happens:

disksize=m_starBurnX.Drives[selecteddrive].DiscInfo.TotalSize*2048
disksize returns 405405696
(Window disc property returns 4700372992)
This is not even close to 4700372992, Now what?


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
PostPosted: Tue Dec 15, 2009 12:13 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Let me guess... disksize variable is 32-bit and you cannot store such a big number in it and need 64-bit or it gets truncated?

kbodkin wrote:
Anton

Logical blocks. 2048 bytes in size each.

( 2295104 * 2048 ) = 4700372992

This makes perfect since, However this is what happens:

disksize=m_starBurnX.Drives[selecteddrive].DiscInfo.TotalSize*2048
disksize returns 405405696
(Window disc property returns 4700372992)
This is not even close to 4700372992, Now what?


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
PostPosted: Tue Dec 15, 2009 12:45 am 
Offline

Joined: Sun Dec 06, 2009 4:44 am
Posts: 3
Thanks for all the help.

I got it corrected. Now I am working on the "OnProgress" statusbar. I am sure I will have more questions.

Thanks again


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
PostPosted: Tue Dec 15, 2009 11:34 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Good!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 57 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group