Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CD close session error. please help!

1 view
Skip to first unread message

zhongtian yan

unread,
Nov 7, 2002, 9:16:57 AM11/7/02
to
Hi, there,

I'm writing a CD burning program. There's a problem
I can't figure out.

My program wrote data into CD without error, but the
close session command always return an error without
additional sense key infomation(sense key, ASC, ASCQ
are all '0's). The burned data seems O.K, and the
session actually was closed. When I tried to burn a
new session, the new session couldn't be closed
without
any sense key infomation either.

My program works as following:

1. set Write Mode page (multi-session, track at
once, Mode2 form 1)
2. write CD
3. syncache
3. close track
4. close session
Loop 1 to 4.

But the second time the close session command won't
close the session.

please help me.
Thank you for any suggestions.


Zhongtian




__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2


--
To UNSUBSCRIBE, email to cdwrite...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@other.debian.org

bunny

unread,
Nov 7, 2002, 9:56:35 AM11/7/02
to
zhongtian yan wrote:
> Hi, there,
>
> I'm writing a CD burning program. There's a problem
> I can't figure out.
>
> My program wrote data into CD without error, but the
> close session command always return an error without
> additional sense key infomation(sense key, ASC, ASCQ
> are all '0's). The burned data seems O.K, and the
> session actually was closed. When I tried to burn a
> new session, the new session couldn't be closed
> without
> any sense key infomation either.
>
> My program works as following:
>
> 1. set Write Mode page (multi-session, track at
> once, Mode2 form 1)
> 2. write CD
> 3. syncache
> 3. close track
> 4. close session
> Loop 1 to 4.
You dont need to use close track, synchronize cache does that for you in
TAO mode. You only need 1 close session per session. Other than making
absolutely sure you are setting the next session bit in the mode page. I
cant see any reason why this shouldnt work. If you are getting errors
with no sense info I would investigate that closer too. Perhaps you are
retreiving the sense info incorrectly. Or perhaps the error isnt in the
target.
0 new messages