Removing Links and crashes

BlitzMax Forums/BlitzMax Beginners Area/Removing Links and crashes

I wondered if anyone had experienced a similar problem to the one I am having - I'm in the debugger and as soon as I remove a link:

RemoveLink(link.nextLink())
RemoveLink(link) ' Quits out here

The project quits out and stops executing with the message 'Process complete' in the output window. Is this because I cant remove 'link.nextLink()' and then 'link' or is there some other problem?

I'd really appreciate any help with this.
Thanks