Rocket Division Software

CD/DVD/Blu-Ray/HD-DVD recording, iSCSI and AoE (ATA-over-Ethernet)




 [ 6 posts ] 
AuthorMessage
 Post subject: DiscInfo.TotalSize may be incorrect?
Posted:
Offline

Joined: S
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?
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
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?

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
Posted:
Offline

Joined: S
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?
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
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?

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 Post subject: Re: DiscInfo.TotalSize may be incorrect?
Posted:
Offline

Joined: S
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?
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
Location: British Virgin Islands
Good!

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 [ 6 posts ]