The misadventures of Geno

.::[ tech :: society :: people :: life :: code :: stuff ]:..

XPBurn component issue… June 14, 2005

Filed under: un.categorized — Geno @ 11:36 am

Not been posting for a while, been busy busy busy! Currently working on a new project, thing is, I now have to build in CD burning capabilities, which it seems is turning to be more challenging than I thought. I’m busy experimenting with the XPBurn component provided by Microsoft, which is simple, but it does the job…unfortunately, this library is very basic and as it turns out, buggy…no comment :(   This is VB.Net code. When I step through the code it seems to get stuck on the

fDataDiscWriter.AddData(fRootStorage, 1);

statement in RecordDiscThread() method of XPBurn.cs:

private void RecordDiscThread()
       {
           try
           {

               fDiscMaster.Open();
               AddProgressEvents();
              fDiscMaster.SetActiveDiscRecorder(fActiveRecorder);       ‘<————- HERE PROBLEM
               CreateIStorage();
               fDataDiscWriter.AddData(fRootStorage, 1);
               fDiscMaster.RecordDisc(fSimulate, fEjectAfterBurn);
               DeleteIStorage();
               fDiscMaster.Close();
               fIsBurning = false;
           }
           catch(Exception ex)
           {
               fDiscMaster.Close();
               throw new XPBurnException(@ex.ToString());
           }
       }

More investigation is needed…unless someone has a solution ?