Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Burning Doesn't Start at International Chat: Software related forum; When I click on the burn button on my app I get an error and burning doesn't even start. I'm burning images from a specified directory. I'm using NeroCom and Visual Basic. Here is the part of the code that is causing the error:: ------- Public WithEvents Drive


Reply
 
Thread Tools
Old 02-11-2004   #1 (permalink)
New on Forum
 
Join Date: Nov 2004
Posts: 4
Burning Doesn't Start

When I click on the burn button on my app I get an error and burning doesn't even start. I'm burning images from a specified directory. I'm using NeroCom and Visual Basic. Here is the part of the code that is causing the error::

-------
Public WithEvents Drive As NeroDrive
Dim nDrives As INeroDrives
Dim nFolder As INeroFolder
Dim nISOTrack As NeroISOTrack

Private Sub BuildFileTree()
Dim neroTmpFile As NeroFile
Dim name As String
Dim index As Integer

'add all files in current directory
For index = 0 To listFiles.ListCount - 1 'listFiles is a ListBox that list all files' name that I need to burn
Set neroTmpFile = New NeroFile
name = listFiles.List(index)
neroTmpFile.name = name
neroTmpFile.SourceFilePath = gszHardcopyPath & "\" & name
nFolder.Files.Add neroTmpFile
Next
End Sub

Private Sub rbtnBurn_Click()
Dim fso As Scripting.FileSystemObject
Dim burnFolder As NeroFolder
Dim nFileSystemDescContainer As NeroFileSystemDescContainer

On Error GoTo PROC_EXIT

Set fso = New Scripting.FileSystemObject
Set Drive = nDrives(0)
Set nFolder = New NeroFolder
Set nISOTrack = New NeroISOTrack
Set nFileSystemDescContainer = New NeroFileSystemDescContainer

driveFinished = False
burnCanceled = False 'abort
listMsgs.Clear 'nero messages

'wait for drive event done
Drive.CDInfo NERO_READ_ISRC 'driveFinished set to true in Drive_OnDoneCDInfo()
Do While Not driveFinished
If burnCanceled Then 'abort
GoTo PROC_EXIT
End If
DoEvents
Loop

' is there a disc in the burner drive
...
' is the cd empty
...
' is enough space on the CD to burn all files
...

' set name of CD
If txtCDName.Text = "" Then
txtCDName.Text = "Exported Images"
End If
nFileSystemDescContainer.Name2 = txtCDName.Text

nFolder.Name = txtCDName.Text + " " + Format(Now, "dd") + "-" + Format(Now, "mm") + "-" + Format(Now, "yyyy") + _
"-" + Format(Now, "hh") + "-" + Format(Now, "nn") + "-" + Format(Now, "ss")

'build file tree
On Error GoTo PROC_EXIT
BuildFileTree

nISOTrack.Name = "ExportedImages"
nISOTrack.RootFolder = nFolder
nISOTrack.BurnOptions = NERO_BURN_OPTION_CREATE_ISO_FS + NERO_BURN_OPTION_USE_JOLIET

driveFinished = False
On Error GoTo PROC_ERR
'check if underrun protection is available, if it is then use
If Drive.Capabilities And NERO_CAP_BUF_UNDERRUN_PROT Then
Drive.BurnIsoAudioCD "Export", "Image", 0, nISOTrack, Nothing, Nothing, NERO_BURN_FLAG_WRITE + _
NERO_BURN_FLAG_BUF_UNDERRUN_PROT, 4, NERO_MEDIA_CD
Else
Drive.BurnIsoAudioCD "Export", "Image", 0, nISOTrack, Nothing, Nothing, NERO_BURN_FLAG_WRITE, _
4, NERO_MEDIA_CD
End If

**THIS IS WHERE THE CODE STOP EXECUTING**

Do While Not driveFinished 'driveFinished set to true in Drive_OnDoneBurn()
If burnCanceled Then
GoTo PROC_EXIT
End If
DoEvents
Loop

'reset form buttons & list boxes

PROC_EXIT:
Exit Sub
End Sub
-----

I get the same error when I try burning mp3 with the NeroFiddles sample.
Any help would be greatly appreciated.

Thanks,
Grace
Grace is offline   Reply With Quote
Old 02-11-2004   #2 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
Can you please quote the exact error you are getting?
alexp is offline   Reply With Quote
Old 02-11-2004   #3 (permalink)
New on Forum
 
Join Date: Nov 2004
Posts: 4
Re: Burning Doesn't Start

I get the Dr.Watson for Windows NT error window stating "An application error has occurred. Exception: access violation (0xc0000005), Address: 0x1000f027"

Thanks,
Grace
Grace is offline   Reply With Quote
Old 02-11-2004   #4 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
That is quite strange. Can you post a zipped version of your project? You can remove all your proprietary code and just leave enough code that reproduces the problem.

What NeroCOM version are you using?
alexp is offline   Reply With Quote
 
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cd wont start after burning lmvind Copy Protection 1 27-03-2007 10:03
Burner will not start burning after formatting stonecoldstip VSO Software 0 24-04-2005 22:22
HELP: Start to finish DVD movie burning? csbullock Burning Software 1 13-12-2004 21:17
nero failed to start burning Ultimate_Traveler Nero & InCD 1 16-11-2004 05:12
Every burning program I start Win2000 restarts... MrStinky Burning Software 2 27-06-2004 09:50


All times are GMT +2. The time now is 20:46.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0