[fpc-pascal]Calling intr from Windows

Jonas Maebe jonas at zeus.rug.ac.be
Mon Mar 18 12:15:52 CET 2002


On Mon, 18 Mar 2002, Andreas K. Foerster wrote:

> > I don't see how a call to msdos/intr could be 'non essential' (if they
> > would be, then why are they in te program? :). And even though a program
> > could run for a while calling dummy mark/release procedures, it would
> > eventually consume so much RAM the system would become unusable.
>
> Okay, THEY are essential.
>
> But I meant functions like Sound,

I was only talking about procedures functinos which do nothing at all, not
those that aren't fully functional (unless it's not obvious they aren't
fully functional). OTOH, for you it may be OK that sound() doesn't take
the frequency into account under Win32, but we get regular bugreports
about that. Then again, maing it call runerror wouldn't pchange very much
about that probably :)

> SetVisualPage/GetVisualPage...,

I'm not sure, but I think it's possible for a program to determine whether
these are supported for a certain mode, so it could adapt itself at
runtime.

> where the programs could eventually run without them.

I see your point.

>
> But simply missing sound for example is better than having to look for
> the problem.

A lot if people will also start looking for a problem if their sound
doesn't work correct, so I don't think that's a valid argument.


Jonas





More information about the fpc-pascal mailing list