HDTenEightyP/NetNews huggingface dataset:
From: eletanjm@nuscc.nus.sg (TAN JIN MENG)
Subject: Re: realtime application
Organization: National University of Singapore
Date: Thu, 3 Sep 1992 03:04:02 GMT

fred@world.std.com (Fred A Putnam) writes:
: Our company, LABTECH, is the developer of a data acquisition software
: application package which runs on DOS and OS/2 (LABTECH NOTEBOOK).
: 
: If you think you can take a data acq app that is currently running on DOS
: with a 250 Hz interrupt rate, and get two of those to run in real time in
: two OS/2 "DOS boxes", you're mistaken.  The DOS boxes won't run in real
: time at all because they are being time-sliced with each other and with the
: rest of OS/2.  The timer ticks are virtualized, and do not track in real time.
: 
: Sorry, but I don't think this plan will fly..
: 
: --
: Fred Putnam, LABTECH, fred@labtech.com, 1-800-TRY-LABTECH

Sorry, the DOS box stuff isn't meant to be the "serious" stuff. But we
need a pro tem solution to show potential backers - we're a .edu
institution - kind of like a prototype.

jin meng
Newsgroups: comp.os.os2.programmer
From: pmaggs@uxh.cso.uiuc.edu (Peter B. Maggs)
Subject: linear executable 32-bit header
Organization: University of Illinois at Urbana
Date: Tue, 1 Sep 1992 01:13:41 GMT

Can someone post (or tell me where to ftp) a formal explanation
of the "linear executable" 32-bit header of OS/2 2.0 executable
files?   Thanks.
peter maggs            pmaggs@uxh.cso.uiuc.edu
From: tnt@netcom.com (Terry Turner)
Newsgroups: comp.os.os2.programmer
Subject: ipmd and dde (was: Problem with WM_ACTIVATE.)
Date: 3 Sep 92 17:22:54 GMT
	<19920903.065139.232@almaden.ibm.com>
Organization: Watch the Skies

In article <19920903.065139.232@almaden.ibm.com> francis@vnet.ibm.com (Tim Francis) writes:

    Warning:  Do not operate the C Set/2* debugger in asynchronous mode if
    the PM application that you are debugging requires the appropriate
    response to its messages.  For example, a dynamic data exchange (DDE)
    message would require the appropriate response.

tim, i was right with you up to the last sentence. i have found that 
when debugging dde clients and servers i must run the debugger in 
asynch mode or os2 hangs as soon as i step over the WinDdeInitiate() 
call. if i run it in asynch mode at least i can debug but it is no 
fun debugging dde using ipmd. i solved most problems with log files 
(i.e. printf).
-- 
terry
	tnt@netcom.com
From: alexande@genghis.borland.com (Mark Alexander)
Newsgroups: comp.os.os2.programmer
Subject: Findfirst in DOS box can crash OS/2
Date: 28 Aug 92 19:41:03 GMT
Organization: Borland International
Originator: alexande@genghis.borland.com


Using the 'findfirst' system call in a DOS program can crash OS/2 2.0
6.307 if the filename argument is very close to the end of the stack
segment.  In my test program, the filename being searched for was
"blorch", and was stored at SS:FFF6.  This can happen if you are using
Borland C++, and the filename is passed on the command line.

The workaround is to use strdup() to make a copy of the filename in
a "safer" location.

Here is the test program.  I compiled it with BC++ 3.1 using small model.

#include <stdio.h>
#include <dir.h>

int main(int argc, char *argv[])
{
    struct ffblk ffile;

    if (argc != 2)
    {
        printf("You must supply one argument.\n");
        return 1;
    }
    if (findfirst(argv[1],&ffile,0x3f) != 0)
        printf("Unable to find %s\n", argv[1]);
    else
        printf("Found %s\n", argv[1]);
    return 0;
}
Newsgroups: comp.os.os2.programmer
From: shiva@well.sf.ca.us (Kenneth Porter)
Subject: Include files disappearing
Organization: Whole Earth 'Lectronic Link
Date: Tue, 1 Sep 1992 06:31:04 GMT

I'm having problems with MSC 6.0 intermittently not finding include
files along the include path.  This usually occurs when making from
inside of Epsilon 5.0, but occasionally occurs on the command line.
The compiler exits with "Fatal error C1024 cannot open include file
'file'".  The include file is always a nested file (ie. it's included
by another include file). Here's the include path:

set INCLUDE=E:\C600\INCLUDE;.;E:\U\PRJ2\INCLUDE

Both the main include file and the nested include file are in the
last directory. It doesn't seem to matter whether I use quotes or
angle brackets around the include file name.
 
I'm running a dual-boot/Multiboot system with DOS, OS/2 1.3, and OS/2
2.0 on a PS/2 Model 95. (The DOS and 1.3 systems are set up as dual
boot, occupying one position on the Multiboot menu, with 2.0 taking
the second position.)  This problem usually happens in 2.0, less
frequently in 1.3.

Can someone tell me what's going on and what I need to do to fix it?
It's terribly frustating to have to leave the editor to compile,
especially when it means I have to chase errors manually rather than
letting the editor automagically position to them.  It's even more
frustrating when the problem starts occurring on the command line and
I have to switch to the other OS version to get relief.  I live in
fear of the problem happening simultaneously under both versions.

Ken
Xref: sparky comp.os.os2.programmer:4352 comp.lang.c:12592
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer,comp.lang.c
Subject: Re: malloc causes a segmentation violation!?
Date: 20 Aug 92 21:16:46 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <chuckb.714275722@milton> chuckb@milton.u.washington.edu (Chuck Bass) writes:
>I am wondering if this is common among people who program in C.  I
>haven't been programing in multiple environments (TurboC and an SGI
>workstation only).  I write code that runs on both and do *lots* of
>dynamic memory allocation.  Is this a bad habit, terrible habit, good
>habit?  It seems to me that a general program should be able to
>adjust to the required size dynamically.  

Bugs in the compiler/library aside, C programs can and should use
malloc().  Malloc, free and realloc are all defined by K&R in their
ANSI-C book.  It's part of <stdlib.h>

C++ programs, however, should not.  They should use the "new" operator
for dynamically allocating and deallocating storage.

For instance:

To allocate an integer:
        pInteger = new int;

To allocate space for 100 integers:
        pInteger = new int[100];


and so on.

-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
Newsgroups: comp.os.os2.programmer
From: craig@phenix.cc.uregina.ca (Craig Knelsen)
Subject: Re: Need MOUSEMSG quickly!
Reply-To: craig@cc.uregina.ca (Craig Knelsen)
Organization: Does it matter?
Date: Sat, 29 Aug 1992 04:21:00 GMT

In article <oebbNma00VotA3REMm@andrew.cmu.edu> sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:
>I forgot to write down the MOUSEMSG macro, and can't seem to find it in
>Petzold's book.  If its in the book, just tell me the page number.  If
>not, I'd really not like to have to use this damn macro, since it seems
>to not really be supported anymore, so if you could, just let me know
>what the two MPARAM's return with on a WM_MOUSE or WM_MOUSEMOVE message.
>I don't remember if these macros are used with the WM_BUTTON* macros, so
>I guess I would need it to be able to use those too.  Thanks.

	I use the MSEMSG macro myself (under 2.0) to access the mouse position
that is passed in one of the message parameters for the WM_BUTTON* messages.
I don't have the source code handy (it being at work and me at home) but
I am fairly sure that MSEMSG is defined in one of the OS/2 header files.
-- 

Craig Knelsen		craig@phenix.cc.uregina.ca
			Craig_Knelsen@f20.n140.z1.fidonet.org
From: ramdas@natinst.com (Malathi Ramdas)
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
Subject: Exporting variables from DLL's
Date: 26 Aug 92 21:35:14 GMT
Organization: National Instruments, Austin, TX


     Is it possible to export global variables from a DLL? I have written a
DLL that exports 3 variables. I have created an import library for an appl
ication that wishes to use this DLL. As soon as I try to run this application
it complains about not being able to find these variables in the DLL module.
It seems like from the export declararions in the .def file it is assuming
that these are functions and not variables. Should I be doing anything differe
nt or is it simply impossible to export global variables? By the way, I am compi
ling and linking the DLL application using CSET/2 and LINK386.
Newsgroups: comp.os.os2.programmer
From: wcn@cs.brown.edu (Wen-Chun Ni)
Subject: Re: GLIB.EXE for GCC/2
Organization: Brown University Department of Computer Science
Date: Wed, 2 Sep 1992 21:56:07 GMT

In article <1992Sep1.164839.10776@csc.ti.com> jsykes@dadd.ti.com writes:
>I have uploaded version 1.0.0 of GLIB.EXE to ftp-os2.nmsu.edu. It can be
>found in /pub/downloads as:
>
>glib.zoo        .... glib.exe and man page.
>glibsrc.zoo     .... glib source and MS App notes on OBJ/LIB files.
>                     (source requires an HPFS partition)
>
>This program allows you to create and manage .LIB files.
>
>The files should eventually be moved to /pub/os2/2.0/programming.
>
>---
>           __o
>           \<,
>_________()/ ()_______________________________________________________________
>Jon Sykes                                                   jsykes@dadd.ti.com
>Design Automation Div.                                          (214) 997-2916
>Texas Instruments Inc. Dallas, Tx.        
>

I can't make glib.exe run correctly when dealing with the "-b batch"
options. The program reports that all files in the batch file
cannot be opened. Is it my fault or a bug of glib? Thanx!



Wen-Chun Ni
From: bbs.dennis@tsoft.sf-bay.org (Dennis Yelle)
Newsgroups: comp.os.os2.programmer
Subject: How can I read the MBR (Master Boot Record) under OS/2?
Date: 28 Aug 92 18:54:34 GMT
Organization: The TSoft BBS and Public Access Unix, +1 415 969 8238

#if 0
I am trying to read the Master Boot Record from my C: drive
under OS/2.

When I compile the following program with:
    icc getmbr.c
And then run it with:
    getmbr z
I get this:
    GETMBR
    Got handle 5.
    Sorry, the error code is 4400-19
Does anyone know what I am doing wrong?
Can anyone help me?
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INCL_DOSDEVICES
#include <os2.h>

char mbr_buf[ 512];

void internal_error_x( int code, long rc)
{
    printf( "Sorry, the error code is %d-%ld\n", code, rc);
    exit(99);
}

int get_pd_handle( int disk, HFILE *handle)
{
    char cdisk[3];
    APIRET rc;
    
    cdisk[0] = disk; cdisk[1] = ':'; cdisk[2] = 0;
    *handle = 0;
    rc = DosPhysicalDisk( INFO_GETIOCTLHANDLE,
                          handle,
                          2, /* sizeof( *handle), */
                          cdisk,
                          sizeof( cdisk) );
    if ( rc)
        internal_error_x( 1234, rc);
    return 0;
}
int free_pd_handle( HFILE handle)
{
    APIRET rc;
    
    rc = DosPhysicalDisk( INFO_FREEIOCTLHANDLE, 0, 0,
                          &handle, 2 /* sizeof(handle) */ );
    if ( rc)
        internal_error_x( 1245, rc);
    return 0;
}

typedef unsigned short WORD;  /* long didn't work, so... */

typedef struct pp_s {
    BYTE command;         /* 1 */
    WORD head;            /* 0 */
    WORD cyl;             /* 0 */
    WORD first_sector;    /* 1 */
    WORD num_sectors;     /* 1 */
        WORD sector_num;  /* 1 */
        WORD sector_size; /* 512 */
} pp_t;

void read_mbr( int disk, void *p_buf, ULONG p_buf_len)
{
    HFILE handle;
    APIRET rc;
    pp_t pp = { 1, 0, 0, 1, 1, 1, 512};
    ULONG pp_len = sizeof( pp);
    ULONG  b_len = 0 /* p_buf_len */;

    memset( p_buf, 0, p_buf_len);

    get_pd_handle( disk, &handle);

    printf( "Got handle %ld.\n", (long)handle);

    rc = DosDevIOCtl( handle, 9, 0x64 /* read */,
                      &pp, sizeof(pp), &pp_len,
                      p_buf, p_buf_len, &b_len);
    if ( rc)
        internal_error_x( 4400, rc);
    
    free_pd_handle( handle);
}

main( int argc, char **argv)
{
    char *name;
    FILE *out;
    int len;
    
    printf( "GETMBR\n");
    if ( argc != 2 )
        internal_error_x( 5555, argc);
    name = argv[1];
    out = fopen( name, "wb");
    if ( ! out ) {
        printf( "Sorry, I can't write to the file %s\n", name);
        exit(9);
    }
    read_mbr( '1', mbr_buf, sizeof( mbr_buf) );
    len = fwrite( mbr_buf, 1, 512, out);
    if ( len != 512 ) {
        printf( "Sorry, I can't write to the file %s\n", name);
        printf( "Disk full?\n");
        exit(9);
    }
    return 0;
}

--
Dennis Yelle (bbs.dennis@tsoft.sf-bay.org)
Newsgroups: comp.os.os2.programmer
From: shiva@well.sf.ca.us (Kenneth Porter)
Subject: Finding a thread's hab
Organization: Whole Earth 'Lectronic Link
Date: Wed, 2 Sep 1992 20:09:17 GMT

How can a thread determine whether it has an anchor block?  I'd
like to code debugging functions that put up message boxes without
having to pass an anchor block in as an argument.  The only way I
can see to do this now is to maintain a static array of habs indexed
by thread and updated whenever WinInitialize and WinTerminate are
called.

Ken
From: HXC6@psuvm.psu.edu (H. Choe)
Newsgroups: comp.os.os2.programmer
Subject: Re: Division by 0 crashes OS2/2.0
Date: 4 Sep 92 14:16:02 GMT
 <92Sep03.032755.21494@acs.ucalgary.ca> <1992Sep3.131306.13751@tc.cornell.edu>
 <92Sep04.024410.14613@acs.ucalgary.ca>
Organization: Penn State University

Luc B. suggests that he got 1.0, but I could not duplicate the result
using Watcom under OS/2 (I don't use DOS).  When I ran the original
program, I did not get any error message.  However, when I tried to USE
THE VALUE OF "z" (for example, writing the value on the screen), I got
a nice error message "*ERR* KO-01 floating point divide by zero".
Note that the original program does not use the calculated "z".
Thus, I still believe I can use WATCOM (of course, level-B patched)
for serious numerical work.  My hardware is SWAN 486-50DX2 local bus
system.   Oh, if one suspects a hardware-related problem, I would suggest
that he may use f2c to check whether he can duplicate the problem.
BTW, f2c with GCC/2 2.2 is very nice and fast in floating point calc.
Although it is a little slower than WATCOM, it is not slower than
f2c with GCC/EMX in my experience (GCC/2 2.1 was a bit slower).
From: serenang@phoenix.Princeton.EDU (Serena Ng)
Newsgroups: comp.os.os2.programmer
Subject: Re: Is there any way to execute a DOS program from a WINOS2 program?
Date: 31 Aug 92 15:31:27 GMT
Organization: Princeton University
Originator: news@nimaster

I downloaded EMX-0.8d from Hobbes and installed the GCC compiler under OS2.
I have a 486/33 with 12 megs of RAM installed. GCC works fine and created
the executable PROG.EXE. However, I need to read in a huge data set 10000 by
20, so I tried to use EMXBIND to combine PROG with EMX.exe.  I tried the
BIND.CMD that comes with EMX-0.8d and came back with an error "cannot open
PROG.EXE". I tried to use EMXBIND manually, got the same message. "PROG.EXE"
was in the default directory where I executed BIND and EMXBIND though. 

This is the first time I use GCC. Are there compiling options I should have
used before I run BIND? The path to all the emx executables seem fine since
the BIND program did not complain about locating EMXL.exe or EMX.exe. Any
tips and advice on this problem would be appreciated.
Newsgroups: comp.os.os2.programmer
Subject: Re: How to crash OS/2 1.2 & 1.3?
From: jstewart@desire.wright.edu
Date: 29 Aug 92 07:43:54 EST
Organization: Wright State University 

In article <1992Aug28.205121.20677@njitgw.njit.edu>, dic5340@hertz.njit.edu (David Charlap) writes:
> In article <1992Aug28.131233.26834@klaava.Helsinki.FI> silvonen@klaava.Helsinki.FI (Mikko Silvonen) writes:
>>The subject says it all: I need a program that crashes OS/2 versions 1.2
>>and 1.3. Plain GP faults are no good; the crasher must stop the whole
>>system without mercy.
> 
> Why do you want this?  Planning on writing a new virus?  Or are you a
> Microsoft field researcher?

	Nice and anal...since when did curiosity become a crime?

						John Stewart

> -- 
>    |)  David Charlap           "I don't even represent myself
>   /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
>  ((|,)
>   ~|~  Hi! I am a .signature virus, copy me into your .signature file.
From: ameline@vnet.ibm.com (Ian Ameline)
Date: Tue, 1 Sep 92 14:33:29 EDT
Subject: Re: C Set/2 CS00013, did it make it out?
Newsgroups: comp.os.os2.programmer
Organization: C-Set/2 Development, IBM Canada Lab.
Disclaimer: This posting represents the poster's views, not those of IBM

In article <21420@optima.cs.arizona.edu>,
merrill@optima.UUCP (Darren Merrill) writes:
>
>From article <19920901.072141.696@almaden.ibm.com>, by ameline@vnet.ibm.com (Ian Ameline):
>>    It's on the Atlanta NSC BBS. 40 lines, high speed modems, and
>> free -- just long distance, or the OS2 Support BBS. Not free, but
>> 800 number access or local call access.
>
>Hey Ian,
>  I just called there this AM and didn't find 'hide-nor-hair' of the
>new CSD.  The only one there is dated 8/18/92.  You would happen
>to know where they are hiding it do you?
>Thanks.
>
>-darren
>--
>Darren Merrill                  UUCP: uunet!arizona!merrill
>University of Arizona           Bitnet: merrill%cs.arizona.edu@arizona.bitnet
>Department of Computer Science  Internet: merrill@cs.arizona.edu
>

   It should be there by the end of the week at the latest. I'll try for
tomorrow.

Sorry.
Ian.
Newsgroups: comp.os.os2.programmer
From: meek@fizzy.csu.murdoch.edu.au (Lindsay Meek)
Subject: Matrox Image640 and OS/2
Organization: Murdoch University
Date:  3 Sep 92 07:07:59 GMT

Hello,
	Have any OS/2 application programmers had experience with the
Matrox Image640 and its associated OS/2 driver? If so, could you please
tell me what the multitasking support is like for process level apps...
i was wondering how easy it is to make use of the pipelined operations
/multiple busses etc..etc..
Thanks
	Lindsay
From: murrayk@prism.CS.ORST.EDU (the Dodger)
Newsgroups: comp.os.os2.programmer
Subject: writing device drivers with MASM 5.1
Date: 30 Aug 92 23:32:23 GMT
Article-I.D.: CS.1992Aug30.233223.23333
Organization: Oregon State University, Computer Science Dept.

I am trying to determine if I have enough to write a device driver for OS/2.
I have MASM 5.1 and it will assemble the sample hrtimer.asm with no problems.
Although I can find no OS/2 libraries to link it with so I get an unresolved
reference to DosWrite. I have heard that MSC 5.1 will compile OS/2 1.x code,
but my MSC is only 5.0. Do I need to get at least 5.1 to make this work? Or
will I need to get the Toolkit. (I will be getting that pretty soon, but I
am impatient.)

Thanks for the help.

Keith

-- 
                              ____          _____  ____
Keith Murray                 /     /___/ /\ \    \ \____    P.O. Box 1889
murrayk@prism.cs.orst.edu   /___  /   / /__\ \____\ ____\   Corvallis OR 97339
   the Dodger                  s  o  f  t  w\ a  r  e
Newsgroups: comp.os.os2.programmer
From: ramesh@cirrus.com (Ramesh Balasubramanian)
Subject: Re: malloc causes a segmentation violation!?
Organization: Cirrus Logic Inc.  Fremont, California
Date: Fri, 4 Sep 1992 15:54:31 GMT

Newsgroups: comp.lang.c,comp.unix.questions
Subject: How to store data files in binary format
Summary: 
Expires: 
Followup-To: 
Distribution: 
Organization: Cirrus Logic Inc.  Fremont, California
Keywords: 


We have data files (ascii now) which are huge. I'd like to know how
one goes about storing these in binary (or some other compressed)
format and have programs read these files to build the necessary
data structures?

Thanks in advance,

 -Ramesh (ramesh@cirrus.com)
Newsgroups: comp.os.os2.programmer
From: jreynold@nmt.edu (John Reynolds)
Subject: Re: FSFILTER.SYS
Organization: New Mexico Tech
Date: Wed, 26 Aug 1992 14:24:05 GMT

(Dennis Yelle) writes:
>Has anyone here gotten FSFILTER.SYS to do anything useful?
>
>I put "DEVICE=FSFILTER.SYS" in the CONFIG.SYS file for MS-DOS 5.0
>in the hopes that it would allow me to read and write the HPFS
>partition on my disk from DOS.  It didn't have ANY effect.
>It did not even produce an error message.
>
>Am I confused about what it is supposed to do, and/or how
>to make it do it?
>
>Is there ANY known way to read the files on the HPFS
>partition without booting OS/2?
>

I THINK (please correct me if I'm wrong) that fsfilter.sys is used when
one literally BOOTs a specific DOS kernel from within OS/2 (the "DOS from
Drive A" icon). If fsfilter.sys is used to boot dos straight, THEN its useless.

-John


-- 
MS-DOS is an interrupt handler with a brain-dead interface.
Windows is a pathetic attempt at.....????
OS/2 is the future....that's here right now!
From: rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden)
Newsgroups: comp.os.os2.programmer
Subject: Do I need EMX and what is it?
Date: 28 Aug 92 00:13:34 GMT
Organization: University of Colorado at Denver

I just got the HPFS version of gcc installed on my machine and then
downloaded GNU make to compile my programs.  Whenever I try to make
anything, it gives me a message about unable to find EMX.  First,
is EMX simply another compiler and second, do I need it to use
make?  BTW I had gnumk362.zoo and was able to compile the Hello World
example manually.

Please reply through e-mail rvaniwaa@coppper.denver.colorado.edu
Thanks,
--Ron
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Recommend text for programming PM api in os2 gcc....
Date: 3 Sep 92 13:17:47 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Sep3.090414.16294@cco.caltech.edu> nyet@cco.caltech.edu (n liu) writes:
>I'm using the non-emx gcc and I need a recommendation for a good
>PM API reference, since I don't have the toolkit. My campus book
>store has one for 1.x, but I didn't get it in hopes that there was
>a more recent one. Do the "red books" carry any of this kind of
>info?

Complete 2.0 API specs are available in the form of on-line references
if you buy the Toolkit/2 2.0.  It lists for $120 from IBM.  I got mine
for $80 from Programmer's Paradise.  Look for their ads in many
computer magazines.


-- 
   |)  David Charlap           "TELEPHONE, n.  An Invention of the devil which
  /|_  dic5340@hertz.njit.edu   abrogates some of the advantages of making a
 ((|,)                          disagreeable person keep his distance."
  ~|~                              --- Ambrose Bierce, The Devil's Dictionary
Newsgroups: comp.os.os2.programmer
From: taipale@kiloapo.tele.nokia.fi (Pekka J Taipale)
Subject: OS/2 FAQ, Programmer Edition, where?
Organization: Finns for Global Warming
Distribution: comp
Date: Wed, 2 Sep 1992 09:29:34 GMT


I have the User edition of OS/2 Frequently Asked Questions.

Where can I find the Programmer's edition? I couldn't find it in
hobbes, nor was it among the articles of OS2-related groups on my NNTP
server.

Thank you.

** Pekka
From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor)
Newsgroups: comp.os.os2.programmer
Subject: Division by 0 crashes OS2/2.0
Date: 2 Sep 92 16:35:08 GMT
Organization: Cornell Theory Center

The following short program compiled with MS-FORTRAN 5.0 with 
coprocessor crashes OS2 Ver. 2 on my machine:

c DBZ.FOR - Division by zero test
      double precision x, y
      x = 1.0d0
      y = 0.0d0
      call devide( x, y )
      end

      subroutine devide( x, y )
      double precision x, y
      double precision z
      z = x / y
      return
      end

However, on OS2 1.3 and plain DOS the program exits gracefully with
the following message:

run-time error M6103: MATH
- floating-point error: divide by 0

Does anybody know a workaround other then masking the numerical 
cooprocessor ?

My machine is 386/33 with 387 copprocessor.

Thanks,
Newsgroups: comp.os.os2.programmer