TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Coridon Henshaw
date: 1996-03-09 13:04:54
subject: Wierd Watcom problem w/ DLLs

On Friday March 08 1996 at 02:25, Peter Fitzsimmons wrote to Coridon Henshaw:

 PF> The quickest solution is to use the version of the runtime that is
itself a dll
 PF> (so that your EXE and DLLs all use the same runtime) -- but I don't think
 PF> Watcom supports this feature.

It doesn't appear to, but you never can tell, considering the bad
documentation that they ship...

 PF> A better solution would be to change your design -- I don't think it is a
 PF> good design to allocate memory in one place (a "place"
being the OOP
 PF> "class" idea) and free it somewhere else

What I have is a recursive directory sweep function that allocates memory
to hold each filename.  This code must deal with HPFS filenames, so it
isn't possible to reserve ~260 bytes in the file information structures for
each filename.

 PF> If you have already made the decision that some code is so isolated that it
 PF> belongs in a DLL,

The code is not isolated - it's used by several EXEs in the same package.

If I statically link the DLL code to each EXE, the entire package swells
from ~100KB to ~200KB.

--- GoldED/2 2.50 UNREG
* Origin: For sale: 30 pieces of silver. Contact N. Gingrich. (1:250/820)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 250/820 501 99 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.