#1 Burning Software

It is currently Thu Mar 28, 2024 8:05 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Mutiple Drives / Starburn_destroy
PostPosted: Fri Nov 11, 2005 1:40 pm 
Offline

Joined: Tue Nov 01, 2005 3:50 pm
Posts: 20
Hello all,

I am expirmenting with burning two different dvd video discs, in seperate drive, at the same time.

I am creaing a starburn device object for each drive, and producing a UDF tree in memory from pre-encoded dvd files. Each drive is controlled by its own thread,

i have found that when i call Starburn_Destroy(StarBurnObjectPointer) that objects for both drives are destroyed, not just the one referenced.

Is this the intended behaviour of this function? If so, is there some way that i can free the memory of just the referenced object?

Thanks

Vertuas


Top
 Profile  
 
 Post subject: Re: Mutiple Drives / Starburn_destroy
PostPosted: Fri Nov 11, 2005 7:00 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Of course it should not happen!

Please double check your code and after you'll make sure it's not your problem I'd check StarBurn.

BTW, is there any way to get your project source code? At least the part which does burning (I'm not interested in anything else).

Thanks!

vertuas wrote:
Hello all,

I am expirmenting with burning two different dvd video discs, in seperate drive, at the same time.

I am creaing a starburn device object for each drive, and producing a UDF tree in memory from pre-encoded dvd files. Each drive is controlled by its own thread,

i have found that when i call Starburn_Destroy(StarBurnObjectPointer) that objects for both drives are destroyed, not just the one referenced.

Is this the intended behaviour of this function? If so, is there some way that i can free the memory of just the referenced object?

Thanks

Vertuas


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 1:57 pm 
Offline

Joined: Tue Nov 01, 2005 3:50 pm
Posts: 20
Since i posted i have set up a little test

procedure TForm1.Button1Click(Sender: TObject);
var starburn1 : pointer;
starburn2 : pointer;

SystemError : cardinal;
ExceptionText : array [0..255] of char;
FailInfo : CDB_FAILURE_INFORMATION;
begin
StarBurn_UpStart;

StarBurn_CDVDBurnerGrabber_Create(starburn1, ExceptionText, sizeof(exceptiontext), SystemError, @FailInfo, @StarBurnCallBack, nil, 0,0,0,0,0);
StarBurn_CDVDBurnerGrabber_Create(starburn2, ExceptionText, sizeof(exceptiontext), SystemError, @FailInfo, @StarBurnCallBack, nil, 0,0,1,0,0);


StarBurn_destroy(StarBurn1);

if StarBurn1=nil then
begin
showmessage('StarBurn1 is NIL');
end
else
begin
showmessage('Starburn1 is OK');
end;

if StarBurn2=nil then
begin
showmessage('StarBurn2 is NIL');
end
else
begin
showmessage('Starburn2 is OK');
end;

Starburn_DownShut;
end;

this code works as expected, so i will go over my other code, and get back to you on this.........watch this space

i know that you said setting the address to all zores is bad, but thats the address of my drive!

Thanks

Vertuas


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 7:14 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
OK, so when you'll have a code snippet not working as expected please let us know - we'll take a look at it. I was not able to reproduce you problem here so far... Thanks!


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

All times are UTC


Who is online

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