Help! (Problems with the stack?)

Troy Holly u-tholly at wasatch.utah.edu
Wed Jul 12 04:54:07 AEST 1989


In article <3943 at s.cc.purdue.edu> aic at s.cc.purdue.edu (George A. Basar) writes:
>In article <2163 at wasatch.utah.edu>, u-tholly at wasatch.utah.edu <me> (Troy
>Holly) writes:
>> CodeView debugger.  I have a line of code that passes arguments to
>> the tanh() math function, but when I get there, all of the variables
>> in the calling routine become undefined, and I get an "M6101 invalid"
>> floating point error.  This particular line of code is executed many


>   Have you checked your memory model and the lib you are linking
>with to be sure they match?  Could be that you are mixing models and the
>lib routine expects both selector:offset and you are only pushing offset
>or selector(incorrect one):offset (in the case where ds != ss)

As soon as I sent that message off, I realized that I fotgot to mention
the memory model.  Sorry, but it was a bit late.  I am using the large
memory model, the code is about 95K, the data is probably about 20K,
and the heap is about 30K at peak.  I am linking with the LLIBCE.LIB,
and my pointers when listed out in the debugger are far pointers.  Also,
ds = ss.  Can you help me now?

If not, then I am going to have to trace the stack out by hand, and
I do not look forward to this at all.  Thanks again,

Troy -

\/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\////////////////////////////////\/
\    Undergraduate Student in	\  Troy Holly			 /
\	   Mathematics		/  445 Leslie Ave; SLC UT 84115  /
\	       &&		\  (801)486-0370		 /
\        Computer Science	/  Arpanet: u-tholly at ug.utah.edu /
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////////////



More information about the Comp.lang.c mailing list