home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4593 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.5 KB  |  48 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!dxcern!dscomsa.desy.de!fplpc.desy.de!lohse
  3. From: lohse@desy.de (Frankpeter Lohse)
  4. Subject: Crashing OS/2 from DOS window
  5. Message-ID: <lohse.2.0@desy.de>
  6. Sender: news@dscomsf.desy.de (USENET News System)
  7. Nntp-Posting-Host: fplpc.desy.de
  8. Organization: Deutsches Elektonen Synchrotron DESY
  9. Date: Mon, 31 Aug 1992 11:16:38 GMT
  10. Lines: 36
  11.  
  12. Hi,
  13.  
  14. when I tried to test the DOS features of my OS/2 2.0 machines it crashes!
  15. I wrote the following simple test program :
  16.  
  17. #include <stdio.h>
  18.  
  19. main()
  20. {
  21.    int i;
  22.    int far *a;
  23.    a = 0;
  24.    for (i=0; i<10000; i++) a[i]=i;
  25. }
  26.  
  27. When runing this program on a DOS machine the computer hangs and after 
  28. reboot, the setup is destroyed.
  29. On an OS/2 machine I expected to get a general protection fault or 
  30. something like that but what I got was system crash. I can reproduce two
  31. diffenrent results (with different machines) :
  32.  
  33. 1. A register dump and a stopped system, reboot works fine.
  34. 2. System hangs (no reg dump) and setup is destroyed.
  35.  
  36. My question : what is the reason for this crash and can I protect my
  37. system against it?
  38.  
  39. Thanks in advance,
  40. Frankpeter
  41.  
  42. P.S. : We're using COMPAQ 386/25e with a german version of OS/2 2.0.
  43. -------------------------------------------------------------------------------
  44. Frankpeter Lohse                      | Disclaimer :
  45. DESY, Hamburg, FRG                    | It's just me, not my organisation.
  46. lohse@vxdesy.desy.de                  |
  47. -------------------------------------------------------------------------------
  48.