which 'Pointer is null' ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

which 'Pointer is null' ?

Post by #NULL »

is it possible that we get some more infos from the debugger about a null-pointer if it's not clear where it actually occurred? example:

Code: Select all

a=13
*p1.long=@a
*p2.long
If *p1\l And *p2\l    ; <<<<<<< which?
EndIf

; ..or..

Structure strct
  *ptr2.POINT
EndStructure
*ptr.strct
*ptr\ptr2\x                        ; where ?
hellhound66
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Feb 21, 2006 12:37 pm

Post by hellhound66 »

Removed.
Last edited by hellhound66 on Wed Mar 19, 2008 11:40 pm, edited 1 time in total.
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

i didn't know this works also with the integrated debugger, just had a surprising trial right now. :oops:

and i know that the second error is a different one, but it's still about a null-pointer, though it may not be from the position of the compiler.
hellhound66
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Feb 21, 2006 12:37 pm

Post by hellhound66 »

Removed.
Post Reply