delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/20/16:45:56

From: "Thorsten Erdmann" <thorsten DOT erdmann AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: How to flush CDROMs and MSCDEX buffers
Date: Thu, 20 Jul 2000 20:28:47 +0200
Organization: AddCom AG
Lines: 19
Message-ID: <8l7gic$2ku$1@riker.addcom.de>
NNTP-Posting-Host: 62.96.162.201
X-Trace: riker.addcom.de 964117900 2718 62.96.162.201 (20 Jul 2000 18:31:40 GMT)
X-Complaints-To: news AT news DOT addcom DOT de
NNTP-Posting-Date: 20 Jul 2000 18:31:40 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I have some problems with my Joliet driver. For reading from CD I use
MSCDEX. It's Readblock and DiskInfo functions return the same sectors even
if I change the CD. So I read the directory of the first CD, all works fine.
When I insert another CD and read the directory again I get that one from
the old CD. So someone seems to buffer some CD sectors, maybe the CD drive
itself or  MSCDEX.

How can I flush that buffer to read the actual info?

I traced it down to MSCDEX's ReadBlock routine. It really reads old data
sectors. It's not a problem in my own buffer mimic.

Thank you
Thorsten



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019