Xref: utzoo comp.sources.bugs:1192 comp.emacs:4035 Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!cmcl2!phri!dasys1!wfp From: wfp@dasys1.UUCP (William Phillips) Newsgroups: comp.sources.bugs,comp.emacs Subject: MG2A for MS-DOS Summary: bombs Message-ID: <6012@dasys1.UUCP> Date: 17 Aug 88 06:35:53 GMT Reply-To: wfp@dasys1.UUCP (William Phillips) Organization: This Techie For Hire (tm) Lines: 36 After weeks of anticipation, I finally got the MS-DOS source for mg2a, and gleefully compiled it. Unfortunately, it doesn't work. I compiled it first with Turbo C 1.5, which produced a few strange warnings (mostly "possible use ofbefore definition" or words to that effect -- and invariably incorrect), but produced an executable -- which bombed (had to hit the big red switch to reboot). Next, I tried Quick C 1.0, since I don't have MSC, which compiled without any problems (after I put #ifndef MSC / #endif around the signal() function); it also bombed, in exactly the same manner. This led me to believe there was a bug in the source :-). I added a /Zr to check pointer usage at runtime, and sure enough it hit that right away. I put in some printfs, and now have narrowed the problem down to a problem with a line in the function modeline() in display.c, namely: n += vtputs(bp->b_modes[mode]->p_name); ...so far I haven't been able to pin down the problem precisely, but it's there somewhere. (The runtime error message was R6013 -- "Invalid far pointer reference" according to the manual, though the message on the screen was slightly different wording -- same meaning, however.) Any suggestions? --bill -- William Phillips {allegra,philabs,cmcl2}!phri\ Big Electric Cat Public Unix {bellcore,cmcl2}!cucard!dasys1!wfp New York, NY, USA !!! JUST SAY "NO" TO OS/2 !!!