Mail Archives: djgpp/1998/10/05/18:19:20
On Wed, 30 Sep 1998, Tal Lavi wrote:
> Olivier Perron wrote:
> >
> > On Tue, 29 Sep 1998, Tal Lavi wrote:
> >
> > > Hi all,
> > >
> > > My compiled DJGPP c program seem to run fine while in dos window in
> > > win95. But when i'm in dos, and i'm running cwsdpmi, and then my
> > > program, it boots my machine!
> > >
> > > does anyone knows why?
> > >
> > > virge ranla AT post DOT tau DOT ac DOT il
> > >
> > you certainly dereference a null pointer.
> > Look at your code where you could use a null pointer.
> >
> > Olivier.
>
> are you sure?
> why does it work fine with the win95 dpmi server?
>
The Win95 dpmi server is only DPMI 0.9 compliant and cwsdpmi implements
some of the DPMI 1.0 functions such as capturing and disallowing illegal
dereference of pointers which point to addresses less than 1000h (null
pointers).
See FAQ chapter 9.1 (faq211b.zip in the v2 directory in the same place you
got DJGGP) for more detailed explanations.
And I just wanted to say that dereferencing a null pointer *might* be the
cause of your problem, not that it *is* the cause. It was just a hint to
help you find your problem.
Olivier.
- Raw text -