🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40604

Re: Real-Mode Dos and Windows 3 problem in porting slrn

#40604
From: root
Date: Tue, 05 May 1998 00:00
27 lines
1936 bytes
On 5 May 1998 06:58:07 GMT, root <vtailor@gte.net-nospam> wrote:
>Functions like SLmemcpy need to use huge pointers to avoid erratic
>operation of slrn when a memory boundary is crossed.
>
The real problem with porting slrn to Dos or 16-bit Windows is that
it uses libslang, and libslang declares a number of large static
arrays.

These declarations exhaust the 64 KB segment that also is used for
the runtime program stack in the static library version.  (The
DLL version is almost impossible to compile with compilers like
Borland and MSVC.)  With DOS16_BIT defined in the libslang compile,
there is just enough room for an 8 KB runtime stack.  As a consequence,
you get a stack overflow exception after the first line of the slrn
signon is printed on the screen.

The way to eliminate this problem is to increase runtime stack size.
To do this, _all_ of the slang static arrays have to be turne into
pointers that are intialized using malloc operating on the far Dos
or Windows heap.  If the slang author is willing to make this change
in upcoming releases of the slang code, I will be happy to continue
the work of porting, e. g., slrn, to 16-bit Windows.  Barring this,
however, it is an exercise in futility for me to continue the project
of porting future slrn versions to 16-bit Windows or Dos.

Technical Details
Message-ID: <6inhud$e61$1@gte1.gte.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6imd9v$ivc$1@gte2.gte.net>

Show Full Headers
Complete Article Headers
Message-ID: <6inhud$e61$1@gte1.gte.net>
Subject: Re: Real-Mode Dos and Windows 3 problem in porting slrn
Date: Tue, 05 May 1998 00:00:00 +0000
From: root@ibm.net (root)
References: <6imd9v$ivc$1@gte2.gte.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 350497722
Reply-To: vtailor@gte.net-nospam
Organization: The Light
X-Auth: C01D8F01198BD6C516918491
Newsgroups: news.software.readers