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


Commercial message



Nero SDK Discussion Forum Discuss, OnDoneBurn event problem at International Chat: Software related forum; I'm writing a C# application using NeroCOM (v1.3, installed with Nero 6.3). The problem is that the OnDoneBurn event is not called everytime! It seems that something goes wrong and Nero doesn't call the OnDoneBurn event, but it happens randomly!!! I tried many times... but the


Reply
 
Thread Tools
Old 06-10-2004   #1 (permalink)
New on Forum
 
Join Date: Oct 2004
Posts: 8
OnDoneBurn event problem

I'm writing a C# application using NeroCOM (v1.3, installed with Nero 6.3).
The problem is that the OnDoneBurn event is not called everytime!
It seems that something goes wrong and Nero doesn't call the OnDoneBurn event, but it happens randomly!!! I tried many times... but the event is not always called!!! However the CD or DVD burned is ok, but the application doesn't know when Nero finish the burning process...

Here's the main procedure of the program (in C# with VS.NET 2003).
Any suggestions? Thanx a lot.

private void btnBurn_Click(object sender, System.EventArgs e)
{
try
{
EnableControls(false);
Log("Burning...");

NEROLib.NeroDrives drives = nero.GetDrives(GetSelectedNeroMediaType());

NEROLib.NeroDrive drive = (NEROLib.NeroDrive)drives.Item(comboDrives.SelectedIndex);

NEROLib.NeroFileSystemDescContainer fs = new NEROLib.NeroFileSystemDescContainerClass();
fs.BurnOptions = NEROLib.NERO_BURN_OPTIONS.NERO_BURN_OPTION_CREATE_ISO_FS
| NEROLib.NERO_BURN_OPTIONS.NERO_BURN_OPTION_USE_JOLIET;
NEROLib.NeroDirectoryContainer dir = fs.RootDirectoryContainer;

for(int i = 0; i < listBoxFiles.Items.Count; i++)
{
dir.AddFile2(
Path.GetFileName(listBoxFiles.Items[i].ToString()),
listBoxFiles.Items[i].ToString(),
-1,
-1
);
}

drive.OnProgress += new NEROLib._INeroDriveEvents_OnProgressEventHandler(OnProgress);
drive.OnSetPhase += new NEROLib._INeroDriveEvents_OnSetPhaseEventHandler(drive_OnSetPhase);
drive.OnDoneBurn += new NEROLib._INeroDriveEvents_OnDoneBurnEventHandler(OnDoneBurn);

int speed = drive.WriteSpeeds.Item(drive.WriteSpeeds.Count-1);
Log("Speed: " + speed.ToString() + "x");

drive.BurnFileSystemContent(
fs,
NEROLib.NERO_BURN_FLAGS.NERO_BURN_FLAG_WRITE
| NEROLib.NERO_BURN_FLAGS.NERO_BURN_FLAG_DAO
| NEROLib.NERO_BURN_FLAGS.NERO_BURN_FLAG_DISABLE_EJECT,
speed,
GetSelectedNeroMediaType()
);
}
catch(Exception ex)
{
Log(ex.Message + nero.LastError);
EnableControls(true);
}
}
lucapan is offline   Reply With Quote
Old 07-10-2004   #2 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
Some problems have been identified in the COM - .NET interaction which prevent NeroCOM from working properly in the .NET environment.

The next release will fix these issues.
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
nero_OnNonEmptyCDRW event no fired Diego82 Nero SDK Discussion Forum 1 29-09-2007 00:35
A Sad Event pipemanid CD Freaks Living Room 18 06-05-2006 02:13
OnDoneBurn event does not fire cornel001 Nero SDK Discussion Forum 2 05-05-2006 11:57
Getting NERO_BURN_USER_ABORT in the OnDoneBurn event, but user didn't abort. Pamano Nero SDK Discussion Forum 0 13-04-2005 11:46


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


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