🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3293

Compiling under the Medium model

#3293
From: Stephen Chung
Date: Tue, 18 Jun 1991 22:29
16 lines
982 bytes
Hi NetLanders,

I have another problem.  When I compiled a program in the small model, 
it all worked.  When I compiled it under the medium model, it seems
that all initialized data is gone.  For example:

		char AppName[] = "Test";

		wndclass.lpszClassName = AppName;

will work in the small model, but not in the medium model.  In the medium
model, lpszClassName will still point to the address of AppName, but
the address of AppName will not contain the string "Test".  It will contain
garbage.  Any ideas?  I am using BC++.

- Stephen
Technical Details
Message-ID: <1991Jun18.222933.30574@cunixf.cc.columbia.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!stephenc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!stephenc
From: stephenc@cunixf.cc.columbia.edu (Stephen Chung)
Newsgroups: comp.windows.ms.programmer
Subject: Compiling under the Medium model
Message-ID: <1991Jun18.222933.30574@cunixf.cc.columbia.edu>
Date: 18 Jun 91 22:29:33 GMT
Organization: Columbia University
Lines: 16