Article View: news.software.readers
Article #40706Re: Real-Mode Dos and Windows 3 problem in porting slrn
From: root
Date: Mon, 11 May 1998 00:00
Date: Mon, 11 May 1998 00:00
36 lines
2115 bytes
2115 bytes
In article <6j5srm$6o5$1@gte1.gte.net>, vtailor@gte.net-nospam says... > >I >>In article <6inhud$e61$1@gte1.gte.net>, root@ibm.net says... >>> >>>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. >>> >I found the `store heap data in the far >heap' switch in Borland's bc45 compiler, and I have slrn.exe partly >running at the moment. > For anyone who is interested, this is the trouble you face backward- porting a WIN32 application to WIN16. The filenames used internally don't take into account the 8_3 limitation of Dos and WIN16. I have posted a 2kb .bmp.gz file showing the Dos/slrn window's error message to alt.binaries.news-server-comparison.
Technical Details
Message-ID:
<6j7m2f$md$2@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-mailReferences:
<6imd9v$ivc$1@gte2.gte.net> <6inhud$e61$1@gte1.gte.net> <6iniv5$l07$2@gte1.gte.net> <6j5srm$6o5$1@gte1.gte.net>Show Full Headers
Complete Article Headers
Message-ID: <6j7m2f$md$2@gte2.gte.net> Subject: Re: Real-Mode Dos and Windows 3 problem in porting slrn Date: Mon, 11 May 1998 00:00:00 +0000 From: vtailor@gte.net-nospam (root) References: <6imd9v$ivc$1@gte2.gte.net> <6inhud$e61$1@gte1.gte.net> <6iniv5$l07$2@gte1.gte.net> <6j5srm$6o5$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 X-Deja-AN: 352316527 Organization: The Light X-Auth: 401ED6845E8956CD44041260 Newsgroups: news.software.readers