Mail Archives: djgpp/2000/11/10/05:25:43
> From: "Jean-Pierre GHYS" <ghys AT terre DOT inrets DOT fr>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 10 Nov 2000 08:26:42 +0100
>
> i use DJGPP under DOS 6.0 with 16 Mo of memory and vhen i use somme POINTER
> to passe data to other foction the programme will Crasch
> with this message
>
> Exiting due to SIGSEGV segmentation fault
> page fault at EIP =000192e,error 0006
Your program tried to access memory via an uninitialized pointer, and
CWSDPMI, the DPMI server used on DOS, aborted it.
See section 12.2 of the DJGPP FAQ list for more about this. That
section also explains how to use the crash message to debug the
problem.
> and the message show me the line of the programe
>
> int fonction(int *alim,.......)
> {
>
> ----- >>> *alim = valeur .....;
The pointer alim has the garbled value. Look at it under a debugger,
and you will see what's wrong.
> if i use the same programe under WIN95 it works !!!!
The DPMI server built into Windows doesn't support the feature
required to catch invalid pointers. The bug still exists, you just
don't see it on Windows.
- Raw text -