Rocket Division Software
http://www.starburnsoftware.com/forum/

Mutiple Drives / Starburn_destroy
http://www.starburnsoftware.com/forum/starburn-sdk-f3/mutiple-drives-starburn-destroy-t523.html
Page 1 of 1

Author:  vertuas [ Fri Nov 11, 2005 1:40 pm ]
Post subject:  Mutiple Drives / Starburn_destroy

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

Author:  anton (staff) [ Fri Nov 11, 2005 7:00 pm ]
Post subject:  Re: Mutiple Drives / Starburn_destroy

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

Author:  vertuas [ Sat Nov 12, 2005 1:57 pm ]
Post subject: 

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

Author:  anton (staff) [ Sat Nov 12, 2005 7:14 pm ]
Post subject: 

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!

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/