HDTenEightyP/NetNews huggingface dataset:
From: jimg@hpcupt3.cup.hp.com (Jim Garrison)
Newsgroups: comp.os.os2.programmer
Subject: GCC 2.1 or GCC 2.2.2?
Date: 30 Sep 92 00:12:52 GMT
Organization: Hewlett Packard, Cupertino


Hello,

I have GNU GCC 2.1 on my system.  I've noticed that the latest version is now
GNU GCC 2.2.2.  So... Can anyone tell me:

1. What's the difference between these two versions?
2. Should I upgrade to GCC 2.2.2?  And why/why not?

Any help is appreciated.

Thanks,

Jim Garrison

______________________________________________________________________________
Jim Garrison                  Phone (408)447-6832
Hewlett-Packard CCSY          ARPA: jimg%hpiatmh@hplabs.HP.COM
CCSY Technical Support        UUCP: hplabs!hpiatmh!jimg
19490 Homestead Rd. MS 41AR   OpenMail: Jim Garrison / CUP, OPENMAIL, HPIALA2
Cupertino Ca 95014
______________________________________________________________________________
From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
Newsgroups: comp.os.os2.programmer
Subject: Re: Accessing SCSI Tape Drive under OS/2?
Date: 5 Oct 92 15:34:48 GMT
Distribution: na
Organization: University of Maine, Department of Computer Science

In article <1191@alsys1.aecom.yu.edu> ed@balrog.aecom.yu.edu (Ed Geraghty) writes:
>Greetings,
> 
>   I have been given a task to create a program to read/write data from
>a SCSI tape drive under os/2. I mainly am trying to get tar/cpio to work.
>How do I access the SCSI tape. Do I work with the SCSI adaptor or is there
>hooks into the SCSI adapter device driver. Is there a SCSI developers kit
>like on SUN's and other WS's. My current setup is an Adaptec 1542 and
>and Archive Viper ST525 Tape drive. Any help would be appreciated.

Ed,

See GTAK20B.ZIP (and possibly GTAK20S.ZIP -- the source) on ftp-os2.nmsu.edu
under pub/os2/2.0/xxxx somewhere...

Gnu Tar with enhancements to help with EA's...Good stuff!!!!!

Jeff




-- 
--------------------------------------
jurlwin@gandalf.umcs.maine.edu
Newsgroups: comp.os.os2.programmer
From: ochealth@unixg.ubc.ca (ochealth)
Subject: Re: precise event timing?
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Wed, 30 Sep 1992 06:05:31 GMT

In article <1992Sep27.002449.20479@unixg.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
>
>I have a program I'd like to write, and I want to know if it can be done:


This may help clarify what I want to do.

Basically, I need something like DosStartTimer(), but with smaller time
intervals (10-30 us long ticks). I also don't want to sue CLI to disable
interrupts (unless there's a way to prevent CLI wrecking file transfers, 
etc.)

>
>I need to write to a port every 10-30 us or so (smaller is better)
>worst case. Writes to the port may not be necessary every time.
>
>Is there a good way to generate a timing signal that would wake up
>a thread, so it could perform the write? Keep in mind the 20 microsecond
>or so needed between every signal. It should be fairly accurate, but the
>exact value doesn't matter much. Ie 20 us vs. 25 us is no big deal, it
>just has to stay that value.
>
>I don't want to turn off interrupts either. Other than writing to the port,
>it won't be doing a lot of work. It shouldn't hog the CPU too much.
>I also don't want the built in timer and mouse interrupts etc. to mess things
>up. I don't mind disabling interrupts, but only if it won't interfere with
>normal OS/2 operation.
>
>Is this possible under "mission critical OS/2"? All I need is a few CPU
>cycles, but I need them scheduled accurately!
>
>thanks for the help.
>
>BTW, I looked at hrtimer.sys, which has enough resolution, but it looks
>like I'd have to poll it, and I don't want to take too much CPU time.
>-- 
>______________________________________________________________________________
>jpm: ochealth@unixg.ubc.ca         
>                            Happily using OS/2 2.0 because MS Windows isNT ___
>                                                      Insert VapourFeature ^^^


-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
From: @prism.cs.orst.edu
Newsgroups: comp.os.os2.programmer
Subject: Allocating a 64k chunk in a device driver...
Date: 29 Sep 92 07:03:57 GMT
Article-I.D.: CS.1992Sep29.070357.23292
Organization: Oregon State University, Computer Science Dept

I need to allocate two 64k buffers in ram from a 16bit device driver. Each of
the buffers must be completely contained in a segment. They cannot cross a
segment boundary. Does anyone know of a way to do this?

Thanks

Keith
Newsgroups: comp.os.os2.programmer
From: gmartin@mcs213f.cs.umr.edu (Greg Martin )
Subject: Are there man pages for os2-include?
Date: Sun, 27 Sep 1992 22:48:32 GMT
Organization: University of Missouri - Rolla

Did I miss something in the gcc 2.2.2 distribution,
or are there really no man pages for the functions
in the os2-include header files?
Is this going to be another time where I need to
go find a book on programming OS/2?

Thanks,
Greg
gmartin@cs.umr.edu
From: pebly@vnet.ibm.com (Bob Pebly)
Date: Thu, 1 Oct 92 07:37:57 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 2.0 Physical Device Drivers.
Reply-To: pebly@vnet.ibm.com
Organization: IBM Industrial Sector Division, Boca Raton, FL
News-Software: UReply 3.0

In <1992Oct1.004911.3881@netcom.com> Leonid Crossman writes:
>:
>Could someone experienced in OS/2 drivers developing tell me the simpliest
>way for the physical device driver to talk to another PDD?
>It is obvious in init mode when you can use API calls but I wonder about
>the kernel and interrupt mode.
>   Thanks in advance, Leonid

The mechanism for physical device drivers to directly call each other
during kernel and interrupt mode is called IDC (Inter-Device Driver
Communication).  The driver provides an IDC entry point and sets a bit
in its header to indicate that it supports IDC.  Other drivers obtain
the entry point by calling DevHelp_AttachDD with the name of the driver.
The IDC mechanism is documented in the Physical Device Driver Reference
in the OS/2 2.0 Technical Library.

Bob Pebly

Disclaimer: This posting represents the poster's view, not those of IBM.

Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
Subject: Re: How to debug in OS/2 with GCC 2.2.2?
Originator: parry@yoyo.cc.monash.edu.au
Organization: Monash University, Melb., Australia.
Date: Fri, 2 Oct 1992 05:23:47 GMT

Wey Jing HO (sci240s@monu6.cc.monash.edu.au) wrote:
> PLEASE HELP ME!!
> 
> 
> Briefly, what I am trying to do:
> 1) declare unsigned char **variable;
> 2) variable = (unsigned char **)malloc(512*sizeof(unsigned char));
													^^^^^^^^^^^^^
BANG! BZZT! That should read (unsigned char *). You want 512 char arrays
not 512 chars. That is why you are getting the violations. If you look at
line 4) of your algorithm, you will see that you are storing (unsigned char
*)'s in the array which is only big enough to hold (unsigned char)'s. Hence
the error. A pointer is 4 bytes long whereas a char is only 1.

> 3) check malloc if == NULL;
> 4) variable[i] = (unsigned char *)malloc(512*sizeof(unsigned char)); 
>    for (i=0; i<512; i++); (sorry, this line should appear first)
> 5) check malloc if == NULL;
> 6) variable[row][col] = (unsigned char)fgetc(instream);
> 
> The program will break with the above SYS errors at row = 256 and col = 0
> (that means it manage to reach row = 255 and col = 511).

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: garyd@netcom.com (Gary Dietz)
Subject: OS/2 2.01 beta install problem
Followup-To: poster
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sat, 3 Oct 1992 03:32:16 GMT

When installing the latest Beta, I chose "Other" for display type.

At the end of install, a message says that "Other" is not available for
this beta.  Then, it asks me to remove the disk and hit enter to start
OS/2.

I get the OS/2 opening screen, then. . . . nothing.

Now that I know I was supposed to choose 'VGA' and not 'other', and now
that I was able to re-boot under DOS by getting to the OS/2 
command interpreter on the first two install disks and BOOT /dos 'ing:

Is there any way to recover from my error w/o re-installing?

Thx in advance,

Gary
-- 

   "To find fault is easy; to do better may be difficult."  -Plutarch
   "Why do better when you can just blame it on the democrats?" -G.H.W.Bush

Newsgroups: comp.os.os2.programmer
From: db3l@ans.net (David Bolen)
Subject: Re: How do I get all the extended attributes?
Date: Thu, 1 Oct 1992 23:18:39 GMT
Organization: Advanced Network & Services, Inc. - Elmsford, NY

In article <kendall.78@sceng.ub.com> kendall@sceng.ub.com (Greg Kendall) writes:

>I'm trying to write code to copy the extended attriubtes from one file to
>another, which seems to be what XCOPY does.  Both DosFindFirst2 and 
>DosQFileInfo will get them for me, but they both wast the attributes names
>listed.  How do I get a list of all a file's ext. attr. names, or is there
>another API (that will just give them all to me) that I've missed?

Well, XCOPY cheats.

Technically, you should check out the DosEnumAttribute function to see about
enumerating all the extended attributes for a filesystem object.  I'm not
sure if it exists in OS/2 1.2, but it definitely does in 1.3 and 2.0.  That
should take care of what you want.

Unofficially, if you want to follow in XCOPY's footsteps, you can try using
using the (undocumented, unsupported, run your own risk, but it definitely
works on 1.x systems) level 4 option to DosQFile/PathInfo.  It will use the
supplied buffer to return a complete set of EA tags and values.

I don't recall how the buffer is formatted, but give it a shot and take a
look at the result and it will probably be clear.  It's likely something
like tag (null) value (null) tag (null) value (null) .... (null) (null).


--
-- David
--
/-----------------------------------------------------------------------\
 \              David Bolen             \  Internet: db3l@ans.net      /
  |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
 / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
\-----------------------------------------------------------------------/
Newsgroups: comp.os.os2.programmer
From: landis@sugs.tware.com (Hale Landis)
Newsgroups: comp.os.os2.programmer
Subject: KBD, MOU, VIO again!
Date: 26 Sep 92 18:08:11 GMT
Organization: SUGS

Those of you looking for information on how to use the KBD, MOU and
VIO functions should look at the WORMS sample program that came with
the IBM C Developer's WorkSet/2.  Note that this program uses the
BSE*.H header files that also are included in this package.  These
header files can be found in the directory \TOOLKT20\C\OS2H.

We can all *thank* IBM for not including the documentation of these
functions in the OS/2 2.0 technical manuals!

Note that OS/2 2.0 supports all of these functions and, as the WORMS
program demostrates, it is possible to build an OS/2 2.0 that uses
these functions.

I wonder if IBM will ever do anything about this most serious
error in their ways???
--------------------------------------------
Hale Landis                  Ph 408-423-4017
tware!sugs!landis -or- landis@sugs.tware.com
--------------------------------------------
Newsgroups: comp.os.os2.programmer
From: sci240s@monu6.cc.monash.edu.au (Wey Jing HO)
Subject: Help with GCC (fread())
Organization: Monash University, Melb., Australia.
Date: Mon, 28 Sep 1992 09:21:16 GMT


In trying to use GCC Version 2 for OS/2, I have the following problem:

I am having problem writing a program that read in data in binary format
into an array. I've included the source as below with all the instructions
I used to compile and link it (with link386). Please help.


/* Start of test program */
#include <stdio.h>
#include <stdlib.h>

#define ERROR -1
#define OK     1

int main(){
   FILE *fp_in;

   unsigned char image[512];

   int number;

   if ((fp_in = fopen("test.img", "r+b")) == NULL){ /* open image file */
      printf("\nfopen() failed.\n");
      fflush(stdout);
      exit(ERROR);
   }
   else {
      number = fread(&image, sizeof(unsigned char), 12, fp_in); 
                                                /* read image file */
      if (number != 12){
         printf("\nnumber read = %3d.\nfread error!\n", number);
         printf("ferror() report: %3d\n", ferror(fp_in));
         exit(ERROR);
      }
      else { /* everything is OK */
         printf("\nOK\n");
         exit(OK);
      }
   }
}


/* This is how I compile it. No errors are reported. */
gcc -c test.c


/* This is how I link it */
link386 test.obj
/* Accept everything after this as defaulted */


/* This is the output from the test program. */
number read =   0.
fread error!
ferror() report:   0

/* Thanks for your help. */
-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Wey Jing Ho    Tel: 61-3-573-2567   E-mail : sci240s@monu6.cc.monash.edu.au<
>Physics Dept., Monash University ( Caulfield Campus ), Melbourne, AUSTRALIA<
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Newsgroups: comp.os.os2.programmer
From: feustel@netcom.com (David Feustel)
Subject: Re: ST/V-PM (was OS/2 complete prog..)
Organization: DAFCO: OS/2 Software Support & Consulting
Date: Wed, 7 Oct 1992 00:00:31 GMT

I got a couple of versions of Smalltalk and I agree the upgrade prices
are too high. Besides I hate the Smalltalk syntax. I'm sticking to
C++.

-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
[.sig on vacation]
Newsgroups: comp.os.os2.programmer
From: sci240s@monu6.cc.monash.edu.au (Wey Jing HO)
Subject: FOPEN_MAX not defined in EMX stdio.h ...
Organization: Monash University, Melb., Australia.
Date: Wed, 7 Oct 1992 02:14:03 GMT

I just discovered that FOPEN_MAX has not been declared in the EMX port of
GCC 2.2.2 in the header file stdio.h.
Is this a deliberate omission? Should I declare it if a programe I am trying
to compile uses it?

Thanks.


-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Wey Jing Ho    Tel: 61-3-573-2567   E-mail : sci240s@monu6.cc.monash.edu.au<
>Physics Dept., Monash University ( Caulfield Campus ), Melbourne, AUSTRALIA<
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Newsgroups: comp.os.os2.programmer,comp.os.os2
From: rickr@virtech.uucp (Rick Rodman)
Subject: Novell OS/2 2.0 Requester
Keywords: help, problems
Organization: Virtual Technologies Inc.
Date: Mon, 28 Sep 1992 01:37:14 GMT

I'm having funny problems with the Novell Netware OS/2 Requester.

I can't get it to work on my home LAN with Extended Services using LANSUP
or ODINSUP.  Extended Services still works with RDS (NetBIOS) when I use
LANSUP and the IBMTOK driver, but with Novell's TOKEN.SYS, Extended Services
won't work.

The symptom is the usual one, NW0015: Error getting connection ID (0x880F).

Now, Novell never documents any error messages in the  manual, and, when I
call them, says they require $150 before they'll listen to me.  (As I replied,
they have an interesting, albeit self-serving, concept of who is supporting
whom.)

I have gotten this requester to work with ODINSUP and TOKEN.SYS, but not
with LANSUP, at another seemingly identical Token-Ring LAN!

Does anyone out there have any ideas as to what I might try?  This is an
ISA bus machine with 16/4 ISA board, 33MHz 386, OS/2 2.0, Extended Services.

-- 

Rick Rodman      uunet!virtech!rickr	Manassas, VA
"This government is the biggest fraud in the history of the industrialized
Western world.  There isn't any Western democracy that does so little for its
Xref: sparky comp.os.os2.programmer:5318 comp.emacs:3228 gnu.emacs.help:4301
From: iac!jerome@uunet.uu.net ( Jerome Provensal - ITG)
Newsgroups: comp.os.os2.programmer,comp.emacs,gnu.emacs.help
Subject: Emacs for OS/2. Would I like it?
Keywords: emacs, gnu, OS2, windowed
Date: 30 Sep 92 01:03:14 GMT
Reply-To: iac!jerome@uunet.uu.net
Followup-To: poster
Organization: Investment Technology Group, Los Angeles, California

What's not to like about Emacs? Nothing, I agree!
That's why I've been using it extensively on my SUN-Sparc with delight.
One of the features I particularly like, which is not the fanciest one, its
"resizableness".
This allows me to accomodate Emacs in a huge window (160x64 characters) which
is really comfortable in displaying code.

Now, I'm planning to do some development under OS/2. 
My questions are:
	Is the OS/2 version of Emacs "windowable"?
	If yes, can I resize the window in order to have a display area bigger than
	the typical stamp-like 80x24 char. size?

Thanks!

[JP]

PS: Post or Email.

From: dn@hplb.hpl.hp.com (Daniel Neades)
Date: Tue, 29 Sep 1992 17:53:16 GMT
Subject: OS/2 beta and/or developers CD from the UK...
Organization: Hewlett-Packard Laboratories
Newsgroups: comp.os.os2.programmer
Reply-To: dn@hplb.hpl.hp.com (Daniel Neades)

Is it possible to get either the beta (Win 3.1/32 bit GRE etc) or the
Beta developer's CD-ROM (I don't even know if this is available yet)
from this side of the atlantic?

If so, how? (a telephone number whould be helpful - one that I can
ring from the UK. I haven't a clue what 1-800-IBM-3040 means)

Thanks in advance,

Daniel.

(a lowly final year CS undergraduate who happens to be working on
 software tools for OS/2 2.0 for his final year project...(hooray!))
Xref: sparky comp.os.os2.programmer:5402 comp.os.os2.misc:31930
From: jpolizzi@cybernet.cse.fau.edu (joe polizzi)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: RE: Price to join DAP?
Date: 2 Oct 92 23:26:09 GMT
Organization: Cybernet BBS, Boca Raton, Florida

> How much does DAP membership cost?  Or is this a free service?

Right now the "World Wide Developer Assistance Program" is free
and you can call IBM to sign up. There are various levels of
Development Support available from IBM and you should probably
call for more accurate information. I've seen the number on previous
posts. If you can't find it, send mail and I'll dig it up for you.
Newsgroups: comp.os.os2.programmer
From: ochealth@unixg.ubc.ca (ochealth)
Subject: precise event timing?
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Sun, 27 Sep 1992 00:24:49 GMT


I have a program I'd like to write, and I want to know if it can be done:

I need to write to a port every 10-30 us or so (smaller is better)
worst case. Writes to the port may not be necessary every time.

Is there a good way to generate a timing signal that would wake up
a thread, so it could perform the write? Keep in mind the 20 microsecond
or so needed between every signal. It should be fairly accurate, but the
exact value doesn't matter much. Ie 20 us vs. 25 us is no big deal, it
just has to stay that value.

I don't want to turn off interrupts either. Other than writing to the port,
it won't be doing a lot of work. It shouldn't hog the CPU too much.
I also don't want the built in timer and mouse interrupts etc. to mess things
up. I don't mind disabling interrupts, but only if it won't interfere with
normal OS/2 operation.

Is this possible under "mission critical OS/2"? All I need is a few CPU
cycles, but I need them scheduled accurately!

thanks for the help.

BTW, I looked at hrtimer.sys, which has enough resolution, but it looks
like I'd have to poll it, and I don't want to take too much CPU time.
-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
From: mquinn@auzodt3.mel.cocam.oz.au (Michael Quinn)
Newsgroups: comp.os.os2.programmer
Subject: Developer's CD ROM and IBM
Date: 2 Oct 92 07:47:42 GMT
Organization: Co-Cam Computer Group, Oz

I would like some infor on
    1 reistering as an IBM developer for OS/2 2.0
    2 getting details on the CDROM for OS/2 2.01 with the beta s/w

As I Am in AUSTRALIA, please send relevant Aussie details ,

	Thanks a lot

PS I'm an OS/2 1.x devleoper and need moore details

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Michael Quinn                        Email to:  mquinn@auzodt3.cocam.oz.au
CoCam Australia                      Phone : 61-3-286-3322
64 Trennery Crescent
Abbostford  3124                       ,-__|\
Victoria  Australia                   /      \
                                      \ _,-._/
                                             *

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: sam@ms.uky.edu (Mike Mills)
Newsgroups: comp.os.os2.programmer
Subject: serial port
Date: 30 Sep 92 03:56:58 GMT
Organization: University Of Kentucky, Dept. of Math Sciences

Hello,

I've got this fancy fax modem that also does caller ID.  I'd like to write
a program that would sit in the background watching the serial port, saving
any caller ID information that goes by.  The problem is that I'm also running
uucp, which will periodically need to open the serial port to do its thing.

Now, is there any way for a program to "transparently" open the serial port,
so that other programs like uucp and terminal programs can still use it?

Or, is there any way to open the serial port such that if another process
attempts to open it, the first will temporarily give it up until the second
releases it?  Any signal()'s along these lines?

thanks for any information -- i'm new to os/2 programming.


-- 
--Mike Mills              E-Mail:  sam@ms.uky.edu, {rutgers, uunet}!ukma!sam
--UK Math Sciences Dept.                  mike@ukpr.uky.edu    
--(606) 257-1429 (work) 263-0721 (home)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: jws@iastate.edu (James William Shoemaker)
Subject: Re: I need info about IBM's OS/2 Developers' Program
Organization: Iowa State University, Ames, IA
Distribution: usa
Date: Fri, 2 Oct 1992 15:37:51 GMT


	There is an article on PC Week Sept 26 issue that ddtails the package.

	It had a number 1-800-342-6672 to call the get it, so I called.

	They sign you up to the DAP over the phone and charge a credit card $15
and my PDK is in the mail as of Oct. 5 they say.

	Thank you IBM for providing this service to developers.


	PS
	Did anyone else notice how close this product is to the MS NT pre-beta
release?  it matches product for prosuct and costs only $15 versus MS's $69 for
NT.


						JWS
From: KENKAHN@PKSMRVM.VNET.IBM.COM (Kenneth A. Kahn)
Date: Wed, 30 Sep 92 13:47:14 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: DosExecPgm error or not?
Organization: Staff of IBM Fellow - IBM Personal/370
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)

In <1992Sep18.003111.11759@elroy.jpl.nasa.gov> Les Hartzman writes:
>I'm getting an ERROR_INVALID_FUNCTION return value from starting up an
>asynchronous process.  The process that is started up works just fine.  What
>could be the problem?

It would help if you would show a code segment of what you are trying to do
so we can see if it looks OK or not.  As an edutcated guess, the most common
reason for this error is you are not specifying teh argument string correctly.
It *must* be in the following format:

    progname\0arg_string\0\0

The '\0' is a NULL byte.  You must specify the NULL bytes as shown.
Newsgroups: comp.os.os2.programmer
From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
Subject: Programmers FAQ???
Originator: parry@yoyo.cc.monash.edu.au
Organization: Monash University, Melb., Australia.
Date: Mon, 5 Oct 1992 04:53:32 GMT

I know this is not a good question to ask, but where is the Programmers FAQ
archived? The posted version has expired here.

-- 
Tom J Parry.
Your reality is a figment of my imagination.