[comp.sys.ibm.pc] VDI problems

schonfeld-dan@CS.YALE.EDU (Dan Schonfeld) (04/09/89)

For several months I have been using IBM's VDI (Virtual Device Interface)
package under OS/2 without any problems. Recently, I tried to install the
DOS version and am having major difficulties with this version. My test
program is actually a subroutine I was going to call from a FORTRAN simulation
I had written earlier. The routine simply opens the workstation and then
closes it. When I link witout any options, I get a bunch of "segment fixup
errors" in the FORVDI.LIB library. When I use the /DOSSEG option with link,
the errors go away.

Now comes the strange part. If I change "subroutine" to "program" in my
test routine, and just link it by itself to the two libraries (forvdi.lib
and fortran.lib), I don't need the /DOSSEG option to get rid of the segment
fixup errors - it works! It's only when I link it with other subroutines
that I need the /DOSSEG option. The other subroutines definitely work
properly by themselves. Now, if I link all the subroutines, including the
test subroutine and use /DOSSEG, I get an error while opening the workstation!
It gives me error -190, device unavailable.

But it can't be that my config.sys is wrong, because if I take away /DOSSEG
from link and only link the test routine to the libraries, it works.
Moreover, if I do the whole program under OS/2, it works just fine (/DOSSEG
is not used under OS/2).

Does anybody have any idea what's going on here? The IBM manual for VDI is
terrible (as usual), and really is not clear about what the errors mean.
I'm running this mess on a PS/2 Model 80 with the VDIDY011 display driver.

Thanks!

Dan
-------------------------------------------------------------------------------
schonfeld-dan@cs.yale.edu, schonfeld-dan@yalecs.bitnet, schonfeld-dan@yale.uucp

Dan Schonfeld
P.O. Box 1605 Yale Station
New Haven, CT 06520
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Dan Schonfeld			|	schonfeld-dan@cs.yale.edu
P.O. Box 1605 Yale Station	|	schonfeld-dan@yalecs.bitnet
New Haven, CT 06520		|	schonfeld-dan@yale.uucp
-------------------------------------------------------------------------------