#1 Burning Software

It is currently Thu Dec 19, 2024 7:10 am

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: DAO and Visual Basic 2005
PostPosted: Sat Nov 25, 2006 9:25 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
I'm new to Visual Basic 2005 so I'm probably just doing something stupid here but I can't seem to get the declares for DAO set up. Here is what I have.

<StructLayout(LayoutKind.Sequential, pack:=1)> Private Structure DAO_Disk_Layout_Entry
Public TrackSizeInLBAs As Integer
Public TrackStartInLBA As Integer
Public TrackName As String
Public FilePointer As Integer
Public IsDataTrack As Byte
Public IsRawTrack As Byte
End Structure
<StructLayout(LayoutKind.Sequential, pack:=1)> Private Structure DAO_Disk_Layout
Public NumberOfEntries As Integer
Public DAO_Entries() As DAO_Disk_Layout
End Structure

but when I try to add a trackname to the DAO_Disk_Layout varible i get "A first chance exception of type 'System.NullReferenceException' occurred". I also get "'Is' requires operands that have reference types, but this operand has the value type 'DAO_Disk_Layout_Entry'.
A first chance exception of type 'System.NullReferenceException' occurred in EventRecorder.exe" when I check to see if the array entry is Nothing.


Top
 Profile  
 
 Post subject: Progress
PostPosted: Sat Nov 25, 2006 10:22 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
I made some progress and got the structure declared. Now I'm getting an error when I call the StarBurn DAO routine.

Private Declare Ansi Function StarBurn_CdvdBurnerGrabber_DiscAtOncePQFromFile Lib "StarBurn.dll" (ByVal CdvdBurnerGrabber As Integer, ByVal pExceptionText As IntPtr, _
ByVal ExceptionTextSize As Integer, ByRef SystemError As Integer, _
ByRef PCDB_Fail_Info As CDB_Failure_Type, _
ByRef Dao_Layout As DAO_Disk_Layout, _
ByVal IsXA As Byte, ByVal IsTestRight As Byte, ByVal IsNextSessionAllowed As Byte, _
ByVal IsSubChannelRepairRequired As Byte, ByVal WriteReportDelayInSeconds As Integer, _
ByVal BufferReportDelayInSeconds As Integer) As Integer

Here is the structure as they are declared now:

<StructLayout(LayoutKind.Sequential, pack:=1)> Private Structure DAO_Disk_Layout_Entry
Public TrackSizeInLBAs As Integer
Public TrackStartInLBA As Integer
Public TrackName As String
Public FilePointer As Integer
Public IsDataTrack As Byte
Public IsRawTrack As Byte

Public Sub New(ByVal TrackName As String)
Me.TrackSizeInLBAs = 0
Me.TrackStartInLBA = 0
Me.TrackName = TrackName
Me.FilePointer = 0
Me.IsDataTrack = 0
Me.IsRawTrack = 0
End Sub
End Structure
<StructLayout(LayoutKind.Sequential, pack:=1)> Private Structure DAO_Disk_Layout
Public NumberOfEntries As Integer
Public DAO_Entries() As DAO_Disk_Layout_Entry
End Structure

When I set up the structure with my track names I use this.

Public Sub AddDAOTrack(ByVal TrackName As String)
Dim Mystruc As DAO_Disk_Layout_Entry

If DAOLayout.NumberOfEntries = 0 Then
ReDim DAOLayout.DAO_Entries(Number_of_Tracks)
End If
Mystruc = New DAO_Disk_Layout_Entry(TrackName)
DAOLayout.DAO_Entries(DAOLayout.NumberOfEntries) = Mystruc
DAOLayout.NumberOfEntries = DAOLayout.NumberOfEntries + 1
End Sub

Public Sub BurnDAO()
Dim ret As Integer

ret = StarBurn_CdvdBurnerGrabber_DiscAtOncePQFromFile(0, pExceptionText, ExceptionTextSize, SystemError, _
PCDB_Failure_Information, DAOLayout, 0, 0, 0, 0, 0, 0)
End Sub


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 9:57 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Send us StarBurn debug log.


Top
 Profile  
 
 Post subject: Debug Log
PostPosted: Sun Nov 26, 2006 6:18 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
Can you tell me how to set that up?


Top
 Profile  
 
 Post subject: Re: Debug Log
PostPosted: Sun Nov 26, 2006 8:21 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Read the FAQ. Everything is there.

bbriggstkd wrote:
Can you tell me how to set that up?


Top
 Profile  
 
 Post subject: FAQ Doesn't have anything about Debug Log
PostPosted: Sun Nov 26, 2006 10:08 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
I searched the FAQ page, there is nothing about a Debug Log in there. Can you send me a link or something? Is there a different FAQ someplace?


Top
 Profile  
 
 Post subject: Re: FAQ Doesn't have anything about Debug Log
PostPosted: Sun Nov 26, 2006 10:15 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
FAQ coming with StarBurn SDK.

bbriggstkd wrote:
I searched the FAQ page, there is nothing about a Debug Log in there. Can you send me a link or something? Is there a different FAQ someplace?


Top
 Profile  
 
 Post subject: Found it
PostPosted: Sun Nov 26, 2006 10:21 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
Thank you. I eventually found it just as you were replying. I appreciate the quick response. Here is the log.

StarBurn CD/DVD Burning, Grabbing and Mastering Toolkit for Windows 95/98/Me/NT/2000/XP/2003 Version 6.6.30 ( 0x20060630 )
Copyright (c) Rocket Division Software 2001-2006. All rights reserved.

< ... rest of the log removed as it was truncated ... >


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 10:26 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
The one you've sent is whole history from 20 A.D. and is truncated. Delete it, capture new one with unsuccessful burn and send to info@rocketdivision.com. That's all.


Top
 Profile  
 
 Post subject: VB Structures
PostPosted: Tue Nov 28, 2006 1:18 am 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
Can you help me with the DAO structure declares? I put it at the beginning of post. I'm new to VB 2005 and am not sure I'm declaring the structures correctly.

Does VB 2005 use zero terminated strings like C++ or do I need to do that? I thought that was part of the CLR but I'm not sure.


Top
 Profile  
 
 Post subject: Progress made
PostPosted: Tue Nov 28, 2006 2:38 am 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
I have made some progress. I'm getting a different error now but I'm in the DAO module now. Here is the log file data. Can you tell me what I'm doing wrong?

StarBurn CD/DVD Burning, Grabbing and Mastering Toolkit for Windows 95/98/Me/NT/2000/XP/2003 Version 6.6.30 ( 0x20060630 )
Copyright (c) Rocket Division Software 2001-2006. All rights reserved.

< ... rest of the log removed as it was truncated ... >


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 6:31 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Logs get truncated in the most interesting place (when actual burning starts). Nothing changed since the time I was asking to send them via e-mail. Please do the same with this one as well. Thanks!

P.S. I'd edit your posts to remove some data so don't be scared.


Top
 Profile  
 
 Post subject: Restart
PostPosted: Tue Nov 28, 2006 12:57 pm 
Offline

Joined: Mon Sep 06, 2004 1:45 pm
Posts: 118
I'll delete the file and send it to you through email then. Hopefully, I'm doing this thing right.


Top
 Profile  
 
 Post subject: Re: Restart
PostPosted: Tue Nov 28, 2006 1:08 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Yes, absolutely! Waiting for your e-mail with the log. Thanks!

bbriggstkd wrote:
I'll delete the file and send it to you through email then. Hopefully, I'm doing this thing right.


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

All times are UTC


Who is online

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