April 26, 2024, 07:33:26 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Retriever

Started by Brian, August 13, 2020, 11:34:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

I was looking at an old IBA program by BizzyPak, and have been trying to convert it, but I have got stuck on Dereferencing. I admit, it's a Dark Art to me! If anyone can sort it, it would be a great help to me in understanding how Typecasting and Dereferencing work

Brian

kirkkaf13

Hi Brian,

I took a quick look at the Retriever, not going to pretend I understand it either but node hasn't been initialized has it?

Kirk

Brian

Well, this is as far as I have got. It compiles, but after selecting a keyword and pressing Begin Search, it goes off into Never-Never Land!

Brian

kirkkaf13

I think it's because of this:

node = nodes.nxt
 WHILE node <> NULL
 node = nodes.nxt
 ENDWHILE

nodes.nxt is a pointer to nothing the value is probably zero and the condition is never met.