Article View: comp.os.os2.programmer
Article #276Re: YES freezes OS/2!
From: David Charlap
Date: Thu, 06 Aug 1992 17:03
Date: Thu, 06 Aug 1992 17:03
36 lines
1697 bytes
1697 bytes
In article <weU4f7P0Bwww8920Jt@transarc.com> Lucian_Dancanet@transarc.com writes:
>
>In the on-line "OS/2 Command Reference" the switches /P and /N are mentioned,
>but there is no explanation about what they do. Thanks for the tip.
Try double-clicking on the "/P" text on the syntax-chart. It should
pop up a small window explaining it.
>And now, compile and link this simple program as a PM application:
>
>#include <stdio.h>
>
>main()
>{
> while(1)
> puts("y");
>}
The puts function shouldn't work as a PM application. If it calls
VioWrtTty, it may work, but you'll still have to create a window, a
presentation space, and a message loop before you can print text to
it.
>If you run it, OS/2 crashes, and you have to cold reboot.
This is a bug. The program should just be shut down.
>OK, the program works when linked as a text-windowed application.
No problem here. Text-mode apps are supposed to use <stdio.h>
functions.
--
|) 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.
Technical Details
Message-ID:
<1992Aug6.170344.2924@njitgw.njit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340References:
<weU4f7P0Bwww8920Jt@transarc.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340 From: dic5340@hertz.njit.edu (David Charlap) Newsgroups: comp.os.os2.programmer Subject: Re: YES freezes OS/2! Message-ID: <1992Aug6.170344.2924@njitgw.njit.edu> Date: 6 Aug 92 17:03:44 GMT References: <weU4f7P0Bwww8920Jt@transarc.com> Sender: news@njit.edu Organization: New Jersey Institute of Technology, Newark, N.J. Lines: 36 Nntp-Posting-Host: hertz.njit.edu