Message-ID: <358A81B7.E2D7808F@post.comstar.ru> Date: Fri, 19 Jun 1998 19:20:23 +0400 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: Eli Zaretskii CC: Alberto Chessa , djgpp AT delorie DOT com Subject: Re: [Allegro] lwp crash ? References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > On 15 Jun 1998, Alberto Chessa wrote: > > > My Allegro based program crash when running under DOS+CWSDPMI. It works > > fine under Win95 and seem to be bug free (a bad pointer reference should > > produce some strange effect either unser Win95). > > No, Windows 95 doesn't catch null pointer dereferences, so it lets your > program run. But CWSDPMI catches such atrocities and aborts your > program. > > > Symify report a page fault at line 572 lwp.c. > > > > Any ideas ? > > I have an idea: debug your program starting at line lwp.c. You have a > bug. Send me your copy of lwp.c and I try to help you (I don't know which version of LWP are you runnig). BTW, from my expirience with LWP such things happens then you write behind allocated lwp-stack. For example, you run self-recurrent function, or call too many sub-functions with large number of parameters. So, first suggestion - increase stack size then you do lwp_spawn(...) and see what changes. -- ____ ____ | \ / Dim Zegebart ____/____ Moscow Russia WWW - http://www.geocities.com/siliconvalley/pines/7817 DZcomm - comm library for Allegro Palantir - multitasking kernel for Allegro (based on PDMLWP)