[comp.lang.pascal] What's going on?

cs3ia3ac@maccs.McMaster.CA (Howard Betel) (01/21/89)

I have a weird problem that I hope someone in netland can solve.
I wrote a 4500 line pascal program in TP4 that does both direct
and indirect screen access.  It seems that when I run it in the
integrated environment everything is honky dory   BUT  when I
compile it and run the .exe I get a strange graphic symbol in
different spots on the screen everytime I run.

When I switched to TP5 it seems that this little quirk has disappeared.
Well here is the question.  Is it my fault?  I hate to think so, but
it is quite possible.  Any ideas, comments or suggestions?

-----------------------------------
Howard Betel   cs3ia3ac@McMaster.CA
               cs3ia3ac@maccs.UUCP

fargo@pawl.rpi.edu (Ethan M. Young) (01/23/89)

[In reference to article about direct and indirect screen writes in the same
 program.]

I'm not sure about TP5.0, but I know that TP4.0, when compiling programs,
compiles your program to use all screen writes.  So, using indirect screen
writes is impossible in TP4.0 unless you have the line "USES crt;" at the top
of your program, and then add the line "DirectVideo := FALSE" somewhere in
your initialization code.  Also-as a small aside-normally using BIOS calls and
direct hardware modification in the same program may cause odd quirks.  I
suggest that you either use all direct screen writes, all BIOS calls, or
find a way to use one or the other (based on asking the user, looking at
equipment, etc.) but not both.

Thank you and happy hunting!     Internet: fargo@pawl.rpi.edu                       ____    [> SB <]                       fargo@{paraguay|uruguay}.acm.rpi.edo
   /__      -=>??<=-          Bitnet (??): usergac0@rpitsmts.bitnet
  /   ARGO : 3000 years of regression from the year 4990