#1 Burning Software

It is currently Thu Dec 19, 2024 8:42 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: How to track progress durring appending files...
PostPosted: Fri Mar 23, 2007 3:49 pm 
Offline

Joined: Fri Mar 16, 2007 6:11 pm
Posts: 9
I need help again and hopefully this will be the last thing I need. I did not find out how to track progress while StarBurn is appending files. I have about 550MB to add and its taking 10 min or so.

Is there a way to track progess just like the callback being done to the JolietImage object?


Quote:

Dim Device As StarBurn.CDevice = Devices.Item(DriveComboBox.SelectedIndex + 1)
Try
Dim Root As New StarBurn.CNode
Dim JolietImage As StarBurn.CJolietImageClass
JolietImage = New StarBurn.CJolietImageClass
Root = JolietImage.Root

Root.AddFolder("I386", "C:\I386")
Root.AddFile("WIN51", "C:\WIN51")
Root.AddFile("WIN51IP", "C:\WIN51IP")
Root.AddFile("WIN51IP.SP2", "C:\WIN51IP.SP2")

JolietImage.SetBootImage("C:\CDimage\boot.img", StarBurn.SBX_MEDIA_TYPE.SBX_ELTORITO_MEDIA_CUSTOM, 4, True)

Dim cb As CallBack
cb = New CallBack(Me)

ToolStripStatusLabel1.Text = "Writing image to file"

JolietImage.Build(0, "CUSTOMXP", "CUSTOMXP")
JolietImage.SaveImageToFile("F:\XP.ISO", cb)

'JolietImage.Build(0, "TEST", "TEST")

'Device.TrackAtOnceFromFileSystemHandle(JolietImage.FileSystemHandle, False, False)

Catch ex As Exception
Dim strException As String = ex.Message
MessageBox.Show(strException)
Finally
If Not IsNothing(Device) Then
Device.Eject()
Device = Nothing
End If
End Try



Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 24, 2007 2:55 pm 
Offline

Joined: Fri Mar 16, 2007 6:11 pm
Posts: 9
Any thing?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 24, 2007 3:03 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Two of the guys who know Visual Basic have bad habit of spending Saturdays with their girlfriends and families. So please wait for Monday, they already got reply to you in their schedule.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 24, 2007 3:50 pm 
Offline

Joined: Fri Mar 16, 2007 6:11 pm
Posts: 9
LOL Yeah I hear ya. :) Sorry just kinda excited to get started. Thanks again. Have a great weekend!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 24, 2007 7:38 pm 
Offline
Site Admin

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

Not me. I'm kind of "Slave of the Lamp" (c) ...

KevinHead wrote:
LOL Yeah I hear ya. :) Sorry just kinda excited to get started. Thanks again. Have a great weekend!


Top
 Profile  
 
 Post subject: StarBurn OCX
PostPosted: Mon Mar 26, 2007 9:41 pm 
Offline

Joined: Thu Mar 22, 2007 10:33 am
Posts: 4
Hi!

1. So, to avoid freeze of the user interface we recommend calling the long processes in a new thread (because the StarBurn OCX "provides" only synchronous callbacks!!)
2. JolieteImage class does not provide callback for tracking progress of operations of adding files/directories. In this case we propose to use the Net ProgressBar with the Marquee style or use the "Hourglass" cursor to indicate that process in the progress.

Thanx,


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 11:03 pm 
Offline

Joined: Fri Mar 16, 2007 6:11 pm
Posts: 9
Thats what I was thinking too. Thanks again!

Quote:
JolieteImage class does not provide callback for tracking progress of operations of adding files/directories. In this case we propose to use the Net ProgressBar with the Marquee style or use the "Hourglass" cursor to indicate that process in the progress.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 7:21 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
...unfortunately Windows does not have any number of node counters for each foder. So there's virtually no way to trace and build correct progress for adding big folder (we need to parse it ourselves recursively to calculate # of entries per node - amount of time to do this is approx. the same we need to build file tree - does not make any sense :). That's it :)

KevinHead wrote:
Thats what I was thinking too. Thanks again!

Quote:
JolieteImage class does not provide callback for tracking progress of operations of adding files/directories. In this case we propose to use the Net ProgressBar with the Marquee style or use the "Hourglass" cursor to indicate that process in the progress.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 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