Board index » delphi » Unit graph and Windows NT 4.0

Unit graph and Windows NT 4.0

Hi,

I have problems with running a DOS (real/protected mode)
program using the Unit graph under Windows NT 4.0.

Does anybody know about these problems?

Thanks,

  Ingo Rieping
  riep...@t-online.de

 

Re:Unit graph and Windows NT 4.0


Quote
Ingo Rieping wrote in message <6u12ln$hl...@news00.btx.dtag.de>...
>Hi,

>I have problems with running a DOS (real/protected mode)
>program using the Unit graph under Windows NT 4.0.

>Does anybody know about these problems?

>Thanks,

>  Ingo Rieping
>  riep...@t-online.de

What kind of problems are you having exactly?

Greetings,

Willy Dockx
(Willy.Do...@Vereycken.be

Re:Unit graph and Windows NT 4.0


Quote
Ingo Rieping wrote:
> I have problems with running a DOS (real/protected mode)
> program using the Unit graph under Windows NT 4.0.

> Does anybody know about these problems?

Can you tell us more about the problem?
It works fine here...

Andras

Re:Unit graph and Windows NT 4.0


Papai Andras schrieb:
Quote

> Ingo Rieping wrote:

> > I have problems with running a DOS (real/protected mode)
> > program using the Unit graph under Windows NT 4.0.

> > Does anybody know about these problems?

> Can you tell us more about the problem?
> It works fine here...

Thanks, so it does not seem to be a general NT 4.0 problem.

When I try to run the program below on a Pentium II, NT 4.0,
my IDE will be killed when the gettime operation is executed.
(no runtime error)
When I execute the program after leaving the IDE
it is the same - the program is killed without showing the
system time.
The program runs correctly when
  - I start it on the same PC running only DOS 6.x
  - I start it on another PC with NT 3.51
  - I exclude the "graph" commands from the program
    (and start it on NT 4.0)

Any Ideas?

  Ingo Rieping
  riep...@t-online.de

--------------------------------------------
program test;
uses dos, graph;
var
  a,b,c,d: word;
  Gd, Gm: Integer;
begin
  Gd := Detect;
  InitGraph(Gd, Gm, '');
  if GraphResult <> grOk then
    Halt(1);
  Line(0, 0, GetMaxX, GetMaxY);
  Readln;
  CloseGraph;   { Shut down graphics }
  Gettime (a,b,c,d);
  Writeln ('time is ', a, ':', b, ':', c, ':', d);
  Readln;
end.

Other Threads