HDTenEightyP/NetNews huggingface dataset:
From: dony@ersys.edmonton.ab.ca (Don Yakielashek)
Newsgroups: comp.os.os2.programmer
Subject: OS2 service pack + BC++3.0 + TVision = CRASH!!
Date: Thu, 05 Nov 92 07:38:52 MST
Organization: Edmonton Remote Systems #3, Edmonton, AB, Canada

This problem has only happened after I installed the OS/2 Service Pack
Now when ever i run BorlandC++ 3.0 and run a Turbo vision application, a 
mouse click causes it to crash.  Running a turbo vision application from
the command prompt works fine. 
  The error is SYS 3175 - Access violation at ffffffff.  

Don Yakielashek              dony@ersys.edmonton.ab.ca 
Newsgroups: comp.os.os2.programmer
From: db3l@ans.net (David Bolen)
Subject: Re: TCP/IP and the Workset/2
Date: Mon, 9 Nov 1992 14:43:13 GMT
Organization: Advanced Network & Services, Inc. - Elmsford, NY
Followup-To: comp.os.os2.networking

In article <BxCvLD.8s5@nic.umass.edu> mcrocker@titan.ucc.umass.edu (MATTHEW S CROCKER) writes:

>                                             Does the TCP/IP need
>to see an ethernet card in my system before it will run?  I should
>be able to set up client/server stuff on my machine without having
>to have a network running...

Shouldn't be a problem - just set up a loopback interface ("lo") with
whatever address you want (127.0.0.1 is standard), and use that
address when testing out your stuff.

Although this is programming related, you'll probably have better luck
if questions about TCP/IP in the future are directed to
comp.os.os2.networking.

--
-- 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    \
\-----------------------------------------------------------------------/
From: dmm@vnet.ibm.com (Dave Mooney)
Date: Sun, 8 Nov 92 14:48:32 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Question: Get process size under OS/2 2.0?
Organization: IBM Canada Lab
News-Software: UReply 3.0

In <1992Nov8.153303.11056@random.ccs.northeastern.edu>  Antoun Kanawati writes:
> While testing a large number of interacting programs (a daemon, clients and
> servers), I am persistenly faced with unbounded swap file growth, even when
> all other known resource utilizations are known to be constant.

There is a bug in the SWAPPER.DAT manager which causes the swapper to
grow without bound, eventually causing performance to grind to a crawl
and your swapdisk to get full.  This bug was supposed to be fixed for the
Sevice Pack, but it wasn't (not entirely, at least).  Call up the OS/2
bug-line and mention APAR PJ06511 and see if they can give you any
additional info.

dave

-------------------------------------------------------------------------
Dave Mooney                                              dmm@vnet.ibm.com
 C Set/2 Development, IBM Canada Lab, 844 Don Mills Rd, Toronto, Ontario
               "You'll be the monk whose forehead is high"
Newsgroups: comp.os.os2.programmer
From: mcrocker@titan.ucc.umass.edu (MATTHEW S CROCKER)
Subject: TCP/IP and the Workset/2
Organization: University of Massachusetts, Amherst
Date: Sat, 7 Nov 1992 17:08:00 GMT


Hello,

 I'm a OS/2 user and a DOS/windows programmer.  I want to start developing
applications under OS/2 for OS/2   I've been looking into the C set/2 and
Zortech C++/OS/2  which one would you recommend  (I like C++)

Anyway.. 


I was thinking about setting up a client server system with the database
manager for handling order processing and message taking on a large scale
(asnwering services, order processing centers and such),  I currently
only have a  486/33 20MB stand-alone system. Does the TCP/IP need
to see an ethernet card in my system before it will run?  I should
be able to set up client/server stuff on my machine without having
to have a network running...  I call IBM tech support and the were
NO help..

Does Zortech offer an upgrade to C++ for OS/2  (I have borland C++ 2.0 &
Quick C windows)

Thanks,

E-MAIL REPLIES PLEASE :)

-Matt
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Matthew Crocker
s1949782@titan.ucc.umass.edu <-  Til 1/1/93
mcrocker@titan.ucc.umass.edu <-  Til I Graduate  LOOOOOOOONNG TIME
Newsgroups: comp.os.os2.programmer
From: joiner@myria.cs.umn.edu (Jay K. Joiner)
Subject: Re: C compilers..
Organization: University of Minnesota
Date: Thu, 5 Nov 1992 18:50:25 GMT

In <73773@hydra.gatech.EDU> gt4719b@prism.gatech.EDU (Dave Frascone) writes:

>I have just started using OS/2.  What is the best 32bit C compiler for
>OS/2?
>I have MSC 5.1, MSC 7.0, Borland C++ 3.1, and am getting GCC today.
>I have noticed that MSC 5.1 has OS/2 compatibility, but MSC 7.00 does 
>not.  What compiler do most people use?

MSC 5.1 and 6 are 16-bit only.  There is a patch that allows 7 to run
under OS/2, but it is still 16-bit only.  GCC is a good 32-bit bet.
The DAP CD contains IBM's 32-bit compiler and tools for $15.

Newsgroups: comp.os.os2.programmer
From: tnt@netcom.com (Terry Turner)
Subject: any other smalltalk programmers out there?
Organization: Watch the Skies
Distribution: comp
Date: Wed, 11 Nov 1992 17:15:27 GMT

just checking. send me a note if you fell like it.
-- 
terry
	tnt@netcom.com
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: C Set/2 (beta) problems
Date: Thu, 12 Nov 1992 16:28:26 GMT
Organization: PANIX Public Access Unix, NYC

Has anyone encountered a list of known bugs with the CD-ROM version of
C-Set/2?  I have ported my 16-bit MSC app to 32-bit C-Set/2 and one of
my (few) global variables is getting clobbered in a dialog procedure
somewhere (IPMD hasn't helped me much here).

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: OS/2 memory management (ARGH!)
Date: Wed, 11 Nov 1992 13:55:04 GMT
Organization: PANIX Public Access Unix, NYC

In <1b68f11e@p11.f9.n242.z2.fidonet.org> Roman_Grzondziel@freax.fido.de (Roman Grzondziel) writes:

>Hi there,

>I am having some problems with OS/2 2.0 lately. There seem to be some
>design (!) bugs in the system which seem to eat up the free store!
>An exaple:

>1.  start the system editor (e.exe)
>2.  select the "OPEN" menu and get the file requester
>3.  enter *.argh (so that it won't find anything that fits - don't forget
>    the wildcard!)
>4.  keep pushing the "OPEN" button.

>Now watch what is happening with your memory! After few clicks the
>system has only 512 kb free store left and begins to expand the swap file.
>It seems like you can fill up any partition (no matter how large) this
>way :) The memory is being freed but not before I quit the application.

>The same happens in every app (including mine) that uses the file
>requester! Is there *any* "good" reason for this bug??? (I consider this
>being a bug, of course :))

This is probably a bug in the file dialog.  Can some IBMer forward this to
Dave Bernath (DBERNATH at CARVM3)?  Thanks.

>Another annoyance: my program is using the PM interface, starting some
>separate windowed and not-windowed threads... I am not using any
>dynamic memory functions (like malloc etc.). But still, after playing
>with it for a while, I'm getting errors like "Maximum heap size reached"!
>(from one of the debugging hooks in my code). Sometimes the application
>quits right after this warning. While clicking around, I keep repeating the 
>same sequences that do *not* create any new memory objects nor any new items. 
>After a while, the memory status display starts showing increasingly shrinking 
>store. WHY?! But sometimes the error appears even before this happens! 
>AAAAAAAAAARGH!

>Can anybody give me a hint?! I would be *very* grateful for any help.
>I am getting crazy here searching for a (of course still possible)
>bug in my code and not being able to find anything wrong! HELP!

Remember that there could be things going on under the covers.  For example,
WinInitialize() calls DosR2StackRealloc() to increase the size of the ring 2
stack (or it did in 1.x).  The memory loss (I'll leave *that* one alone) could
be the result of something else you are doing.

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel)
Subject: Re: flock() for emx gcc?
Organization: Technische Universitaet Muenchen, Germany
Date: Wed, 11 Nov 1992 16:51:11 GMT

In article <1dplc6INNgac@iskut.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
>:Is there an flock() function around already?  Could someone literate
>:in emx (0.8e) gcc (2.2.2) whip one up?  Thanks.
>
>why don;t you look at the OS/2 port of GNU dbm? IT's on ftp-os2.nmsu.edu.
>
>I've checked the sources a bit, and it looks like flock() isn't used for
>OS/2. ( I think OS/2 and EMX default to lcking out writes anyway)

It's not used in this version.

However, flock() is easy to replace under OS/2. Either (for permanent
locking while the file is open) use the appropriate sharing mode or (for
locking over short periods) use DosSetFileLocks() (if that's the name, I
don't have the manual here).

Send me email, if you need more details.

Kai Uwe Rommel

/* Kai Uwe Rommel --- rommel@informatik.tu-muenchen.de */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams
From: frank@cs.yorku.ca (Frank Pikelner)
Newsgroups: comp.os.os2.programmer
Subject: Reserving (protecting) xMB of memory
Date: 13 Nov 92 18:41:51 GMT
Article-I.D.: yetti.1558
Distribution: world
Organization: York University, Dept. of Computer Science

Hello everyone,


I've had a question asked of me regarding programing in OS2. In very simple
terms, is it possible to write a program to be run under OS2, or a DOS session
in OS2 such thank the last x number of MB of memory are reserved (protected)
for the application. This protected memory must always be garanteed to belong to the program. The program will only use this memory and none other, also not the
OS or other programs can use this memory. I do not think this is possible since the memory must be managed by OS2, but I may be wrong. I'd love to hear your
replies. 

Thanks in advance to all,

BTW - I have not done any OS2 programming (yet), hope to soon.
-- 

--------------------------------------------------------------------------
 ---  ---    Frank Pikelner                                          /~\
 \    \  \   Technical Assistant, Department of Computer Science    <v.v>
  \-   \--   York University (Toronto, Canada)                      ,\^/;
   \    \    Internet: frank@cs.yorku.ca                            _{!}_
--------------------------------------------------------------------------
From: photons@oasys.dt.navy.mil (Julie Mills)
Newsgroups: comp.os.os2.programmer
Subject: TCP/IP
Date: 13 Nov 92 16:49:10 GMT
Reply-To: photons@oasys.dt.navy.mil (Julie Mills)
Organization: Carderock Division, NSWC, Bethesda, MD


Has anybody kluged the 16-bit TCP/IP header files to work with
32-bit stuff yet?

 - julie
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Newsgroups: comp.os.os2.programmer
Subject: Re: WIN-OS/2 3.1 CSD?
Date: 10 Nov 92 18:31:13 GMT
Article-I.D.: midway.1992Nov10.183113.13256
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago

In article <1dorvrINNjlr@agate.berkeley.edu> ksanthan@garnet.berkeley.edu (Kumaran Santhanam) writes:
>Can somebody point me towards the WIN-OS/2 3.1 Service Pack?  I have a few bugs
>in my WIN-OS/2 3.1 beta and I'd like to patch them w/ the CSD.

Since Win-OS/2 3.1 has not been released (outside of beta), there is
no Service Pack for it.  There may be a second beta, however, if you
are participating in the beta program (under nondisclosure,
presumably, or at IBM).

-- 
Timothy F. Sipples      | The OS/2 FREQ. ASKED QUESTIONS LIST 2.0g is avail.
sip1@ellis.uchicago.edu | from 128.123.35.151, anonymous ftp, in /pub/os2/all
Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
of Chicago, 60637       | [You picked the right President, America -- Thanks.]
Newsgroups: comp.os.os2.programmer
From: feustel@netcom.com (David Feustel)
Subject: Re: Compression routines
Organization: DAFCO: OS/2 Software Support & Consulting
Date: Sun, 8 Nov 1992 21:39:48 GMT

d9mikael@dtek.chalmers.se (Mikael Wahlgren) writes:

>I am looking for good copression/decompression routines.  What I want is
>two functions like:

>Compress(address, resultbufaddr, len) : resultlen
>DeComprss(adress, resultbufaddr, len) : resultlen

>Source code would be nice, but not necessary (but it must be possible to
>use the routines either free or licensing them).  Anyone know where
>to look for this?

Check out "The Data Compression Book" by Nelson or grab the source
code for ZIP/UNZIP and adapt the compression routines to your
liking.
-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
Security Classification: *** TOP SECRET ***
Newsgroups: comp.os.os2.programmer
From: auhl@fzi.DE (Axel Uhl)
Subject: What to do with an LDT descriptor
Reply-To: fzi.de
Organization: Forschungszentrum Informatik (FZI), Karlsruhe, Germany
Date: Thu, 12 Nov 1992 18:57:40 GMT


The online documentation tells about getting an LDT descriptor by a call
to a category 3 function via DosIOCtl (don't know the function number at the
moment, something aroud 70H).
Now I have two questions. I know that this function yields the selector number.
But where can I use this selector number? Do I have to set DS to this number
in order to access the defined segment? And if so, how do I set DS from
within C ?
If I ask this function to create a descriptor for the video ram, and I'm running
a text mode application in an OS/2 window, is the video ram mapped to match
the window image, or will I modify the whole screen when touching the video
ram through this selector?

Axel (auhl@fzi.de)
From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
Newsgroups: comp.os.os2.programmer
Subject: Re: C/Set 2 problems ... cannot find OS2386.LIB ...
Date: 5 Nov 92 14:22:11 GMT
Article-I.D.: gandalf.1992Nov5.142211.13558
Organization: University of Maine, Department of Computer Science

In article <19921104.225259.392@almaden.ibm.com> peterf@vnet.ibm.com writes:
>In <1992Nov05.023118.39531@sue.cc.uregina.ca> P. Takis Skagos writes:
>>I've been working with the IBM C-Set/2 compiler for the past couple of
>>days and I think that it is just great.  Unfortunately I am having a bit
>>of a problem when I try to link a file statically.  The linker requires
>>the library "OS2386.LIB", which doesn't exist.  Where is this file and
>>why wasn't it installed?  The sample programs included with C-Set/2
>>hae .CMD that link both statically and dynamically.  All the dynamic
>>linking works (it also requires OS2386.LIB) but the static linking
>>doesn't.  Any help or information would be greatly appreciated.  Thanks!
>>
>>  P. Takis Skagos
>>  (skagos@cs.uregina.ca)
>>
>
>OS2386.LIB comes with the OS/2 2.0 Toolkit. Do you have that? I believe
>it is stated that the Toolkit is a prerequisite for C Set/2 (correct me if
>I'm wrong). Anyway, even if it's not a prereq, it is a very good thing to
>have when doing 2.0 development.

The Toolkit is really just a collection of libraries, headers, and programs
which are language independant.  You really need a copy of it.  That's why 
IBM packaged it all as the Workset/2 package, which includes the toolkit, 
CSet/2 and WorkFrame/2.  I'm sure you have it.  Just make sure your
LIB environment variable is pointed to X:\toolkt20\os2lib (wherever your
toolkit is loaded...).

Jeff



-- 
--------------------------------------
jurlwin@gandalf.umcs.maine.edu
Newsgroups: comp.os.os2.programmer
From: hank@ducvax.auburn.edu
Subject: Re: GpiDrawBits
Organization: Auburn University, AL
Date: Wed, 4 Nov 1992 15:18:49 GMT

In article <1d3sf2INNd0j@gap.caltech.edu>, jyang@cco.caltech.edu (Chih Meng Yang) writes:
> Does any know if the function GpiDrawBits is part of OS/2 1.2?  I want to
> use this function in my program but am concerned that people with display
> drivers for OS/2 1.2 will not be able to use the program.
> 
> PS:  The program is gsos2pm10, GhostScript for OS/2.

I know nothing about this kind of programming, but I really like your gs port.
Thanks!  Readers should note that there have been some possibly misleading
posts concerning this gs. If you are following this thread on comp.os.os2.*,
be sure to read Rommel's post(s). I use this gs without problems on my VGA,
but my tests have been somewhat limited. For those with swapfile problems, 
did  you use the supplied DLL?

In partial answer to the original question, Microsoft C does not list 
GpiDrawBits:
[c:\tmp]grep GpiDra \msc\include\*                                              
\msc\include\PMGPI.H:BOOL APIENTRY GpiDrawChain(HPS hps);                       
\msc\include\PMGPI.H:BOOL APIENTRY GpiDrawFrom(HPS hps, LONG lFirstSegment,
LONG
 lLastSegment);                                                                 
\msc\include\PMGPI.H:BOOL APIENTRY GpiDrawSegment(HPS hps, LONG lSegment);      
\msc\include\PMGPI.H:BOOL APIENTRY GpiDrawDynamics(HPS hps);                    

-- 
--Darrel Hankerson hank@ducvax.auburn.edu
From: joe2@vnet.ibm.com
Date: Fri, 6 Nov 92 18:15:00 FWT
Newsgroups: comp.os.os2.programmer
Subject: Re: Writing Video Drivers
Reply-To: <joe2@vnet.ibm.com>
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
            <92309.234426BJT105@psuvm.psu.edu>

In <92309.234426BJT105@psuvm.psu.edu> BJT105@psuvm.psu.edu writes:
>Any member of the developer assistance program can get sample source code
>for video drivers .. currently what is available is the code to VSVGA, V8514
>VVGA BVHVGA, BVHSVGA, BVH8514, and, unfortunately, the only PM driver at
>this time is the code to 16-bit VGA.  "very soon now" the code to the 32-bit
>tseng drivers is planned to be released .. I have no idea when.

It also include the 8514 PM drivers. Quite useful to learn how
to make a 256c driver...

>Documenation is available in the forms of
>"OS/2 2.0 virtual device driver reference"
>"OS/2 2.0 physical device driver reference"
>and "OS/2 2.0 presentation driver reference"
>all three are part of the CSET/2 documentation set, and can be purchaced
>seperately.
>
>OK .. now WHY doesn't every board around have OS/2 device drivers,
>since so much is available?!:
>(1) IBM didn't release the code mentioned above until September

Yeah, we had to wait quite a long time...


>(2) The VV, BV, and PM source code is comprised on hundreds of thousands
>    of lines of mixed C and assembler, so it is very difficult to
>    pick up quickly!

Well, at least the PM drivers are ASM only... :-) (80000 lines)

>(3) Most video board companies are fly-by-night operations that feed on
>    consumers that don't realize that SVGA means NOTHING by itself ..
>    that each chipset requires custom software for Windows, OS/2, X
>    and whatever else.  And, basically, they don't want to have to deal
>    with writing drivers for more than one operating system (windows)
>    (BTW .. there are exceptions to this rule .. Orchid and Trident
>    come to mind ...)
>
>Bernie

   Since the 32bit PM drivers use a completely new (and undocumented)
architecture, I would not start writing a PM driver now... I would
just wait for the 32bit version of the above kit (hopefully about
to be released...).

-Joel Armengaud
From: green@roboco.UUCP (Anthony Green)
Newsgroups: comp.os.os2.programmer
Subject: Re: Writing Video Drivers
Distribution: world
Date: Fri, 06 Nov 92 10:33:05 GMT
Organization: Ruddock and Associates

chris@actrix.gen.nz writes in article <1992Nov4.121856.29225@actrix.gen.nz>:

> With all the comments going on about the lack of availability of
> Video Drivers (32-bit in particular), I was curious about how
> these drivers are written.

I don't know much about the technical aspects of writing a video driver - but
as an interesting aside...

I was speaking to a friend of mine at ATI who claims that they are using NT
development tools to develop their 32 bit OS/2 drivers. In particular, 
Microsoft's assembler.

I will be sure to send him a copy of the EMX gas! :-)

--
Anthony T. Green                 343D St. Clair Ave W, Toronto, Ontario M5P 1N3

Home   (416) 968-0817            Internet: roboco!green@relay.cs.toronto.edu
Office (416) 340-0887            UUCP    : ...!uunet!utai!roboco!green
From: ochealth@unixg.ubc.ca (ochealth)
Newsgroups: comp.os.os2.programmer
Subject: Re: Thanks for the GNUBISON replies!
Date: 7 Nov 1992 02:31:12 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
NNTP-Posting-Host: unixg.ubc.ca

In article <1992Nov6.190014.16912@panix.com> os2man@panix.com (Larry Salomon Jr.) writes:
:Thanks for all of the replies for GNUBISON.ZIP (how to unzip).  The UNZIP
:looks *really* neat (definately somethin' for my utilities directory!)!!!
:Kai Uwe Rommel (I hope I got your name correct) mentioned that I need 
:GNUEMX to run Bison.  I've seen many posts previously about EMX (that I
:now wish I had read), but I have no clue regarding what it is.  Could 
:someone send me email with an answer to this?

EMX is a free OS/2 developement system. The heart of it is the Gnu C
compiler, GCC. There is also a C++ compiler. The OS/2 end of things
was written by Eberhard Mattes, with contributions by others (such as Kai-Uwe).
EMX-GCC includes alot of support for UNIX style programming, but also
supports most native OS/2 programming features. Future versions will
include more OS/2 specific features, and should make EMX a complete
developement system. EMX programs can even run under MSDOS, using a DOS
extender.

EMX includes the GDB debugger, a solid C library, librarians and linkers
for UNIX and OS/2 libraries and object files. UNIX curses library.

EMX makes things much simpler to port UNIX programs, and lets you do
OS/2 programming. Best of both you might say.

you can get EMX (version 0.8e) on ftp-os2.nmsu.edu in /pub/os2/programming
you need emxdev.zip and gnudev.zip. emxtest.zip contains some good samples.
You might want to get a make program (there are several on ftp-os2).
:
:Miny-tanks,
:Q
:-- 
:"If you choose not to decide, you  | "A fool and his money are fun to go
: still have made a choice" - Rush  |  out with" - seen on a T-shirt
:------------------------------------------------------------------------


-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
Newsgroups: comp.os.os2.programmer
From: greve@rs1.thch.uni-bonn.de (Thomas Greve)
Subject: Re: Restoring IBMC and Toolkt to Desktop?
Organization: University of Bonn, phys. Chemistry
Date: Tue, 10 Nov 1992 17:12:25 GMT

In article <joiner.720928686@exa> joiner@exa.cs.umn.edu (Jay K. Joiner) writes:
>Even if applications are not in the database, you can still migrate
>them.  After the database is searched, there is a button named "More
>Files..." or something like that.  Pressing it will list all the .EXE
>and .CMD files (for OS/2) found on the disk, and you can select and
>migrate any of these.
They are not in the database. Of course, you are right, you can `add'
them, but which ones? Which ones are useful to have an icon for?

On the other hand: You wont get the `toolkit' folder icon back that
way... 
-- 
				- Thomas

   greve@rs1.thch.uni-bonn.de
   unt145@dbnrhrz1