Xref: utzoo comp.lang.c:19838 alt.msdos.programmer:193 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!u-tholly From: u-tholly@wasatch.utah.edu (Troy Holly) Newsgroups: comp.lang.c,alt.msdos.programmer Subject: Re: Help! (Problems with the stack?) Keywords: stack Message-ID: <2169@wasatch.utah.edu> Date: 11 Jul 89 18:54:07 GMT References: <2163@wasatch.utah.edu> <3943@s.cc.purdue.edu> Distribution: usa Organization: University of Utah, College of Engineering Lines: 32 In article <3943@s.cc.purdue.edu> aic@s.cc.purdue.edu (George A. Basar) writes: >In article <2163@wasatch.utah.edu>, u-tholly@wasatch.utah.edu (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@ug.utah.edu / \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////////////