Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A* Pathfinding.
#14
Quote:That's helpful Smile

So I rewrote the code using arrays, but I've come across a bug that I can't fix. It seems to be a memory problem in the OS itself. :/

<snip>

--j_k

Hi:

You are re-dimensioning a local variable that is not declared as dynamic. I am not sure of QB or FB syntax rules here, but I would not have coded it like this, and if you make your arrays dynamic then it does not crash.

Try:
redim OpenList(1 to 1) as PathListElement
redim ClosedList(1 to 1) as PathListElement

Have fun.

Garvan
Reply


Messages In This Thread
A* Pathfinding. - by pr0gger - 06-23-2005, 09:14 PM
A* Pathfinding. - by DrV - 06-23-2005, 09:56 PM
A* Pathfinding. - by pr0gger - 06-24-2005, 04:45 AM
A* Pathfinding. - by dumbledore - 06-24-2005, 05:08 AM
A* Pathfinding. - by pr0gger - 06-24-2005, 05:22 AM
A* Pathfinding. - by Agamemnus - 06-24-2005, 09:27 AM
A* Pathfinding. - by pr0gger - 06-24-2005, 10:01 AM
A* Pathfinding. - by Anonymous - 06-24-2005, 10:42 AM
A* Pathfinding. - by pr0gger - 06-26-2005, 12:24 AM
A* Pathfinding. - by dumbledore - 06-26-2005, 05:49 AM
A* Pathfinding. - by pr0gger - 06-26-2005, 06:09 AM
A* Pathfinding. - by Agamemnus - 06-26-2005, 06:42 AM
A* Pathfinding. - by pr0gger - 06-27-2005, 03:36 AM
A* Pathfinding. - by Sisophon2001 - 06-27-2005, 08:59 AM
A* Pathfinding. - by Agamemnus - 06-27-2005, 06:58 PM
A* Pathfinding. - by Torahteen - 06-28-2005, 03:33 AM
A* Pathfinding. - by Torahteen - 07-03-2005, 09:24 AM
A* Pathfinding. - by pr0gger - 07-06-2005, 04:55 AM
A* Pathfinding. - by pr0gger - 07-06-2005, 05:16 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)