Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-09

\\.\CDROM: How to read CD sectors from CD (Windows and Linux)

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michail A.Baikov

Hi people,

I tried read with help \\.\E:, but working only open of CD. ReadFile return 0 (zero).

What's wrong? Anybody maked work version of CD sectors reader?

Thanks a lot.

---
Kind Regards,
Michail A.Baikov
Linderdaum Team
http://www.gamedot.ru

Reply by email

Pierre Muller
to Michail A.Baikov
you wrote
Hi people, I tried read with help \\.\E:, but working only open of CD. ReadFile

return 0 (zero).

Look into Dos win32 sources,
but I am afraid that with add
the \\.\ prefix without testing if its present...

Maybe you can submit a patch?

What's wrong? Anybody maked work version of CD sectors reader?

Reply by email

Maxim Artemev
to Rimgaudas Laucius
Show quoted text 8 lines
Hi. 1. It is in the attached file, line: 111. I just added inocent looking line and program crashes on it. The full source code with comments is in: http://aldona.mii.lt/pms/fps/gdbint.html.

Under GUI the stdin,stdout and stderr file handles are not used. If you want to use writeln, define {$APPTYPE CONSOLE}

Perhaps after calling "StartTrace()" the libgdb opens this file descriptors (std*) and all works fine.

---
WBR, Max Artemev.
Mathematical department of the Pedagogic University of Moscow, Russia. The Raccoons Homepage http://theraccoons.lionking.ru [Furry] [Pascal++] [*NIX]

Reply by email

Rimgaudas Laucius
to Maxim Artemev
> Under GUI the stdin,stdout and stderr file handles are not used. If you want to use writeln, define {$APPTYPE CONSOLE}

Console is created by default.
It is not because of writeln. I can write there any other statment and program will crash there.

Reply by email

Anton Tichawa
to Rimgaudas Laucius

hi,

just one remark after looking at your program, line 111: is it possible (or even intended) that TDGB.LoadFile calls itself recursively?

ciao,

anton.

you wrote 14 lines
> Under GUI the stdin,stdout and stderr file handles are not used. > If you want to use writeln, define {$APPTYPE CONSOLE} Console is created by default. It is not because of writeln. I can write there any other statment and program will crash there. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email