KiranPanesar / DijkstrasDemo

Test application for my Dijkstra's implementation
3 stars 2 forks source link

Can't find path when run on device #1

Open rain9x opened 8 years ago

rain9x commented 8 years ago

I have use Dijkstras, when i run on simulator then ok. But when i run on my device then can't find path. I store data on database (include table node, links) to find path.

Please help me!

KiranPanesar commented 8 years ago

Are you experiencing this issue when using this project?

rain9x commented 8 years ago

Yes! When i run on simulator then very ok. But run on my iPhone then not find path and infinite loop crash my phone.

Please help me

KiranPanesar commented 8 years ago

Are you able to trace down the source of the infinite loop?

rain9x commented 8 years ago

I have log on xcode: 60's neighbour 59 has weight 512 and is 19 away from node Working at node 60 with weight 512 60's neighbour 59 has weight 512 and is 19 away from node Working at node 60 with weight 512 60's neighbour 59 has weight 512 and is 19 away from node .... infinite loop ----

rain9x commented 8 years ago

I fixed it :D!

KiranPanesar commented 8 years ago

Was it a bug in this framework? If so, can you push up your code? I would like to take a look and see if we can merge it back in :)