Hi Karigoudar- MapBasic is _astonishing_ slow when executing any kind of loop (for, while..). It is quite possible that a program converted from VB to MapBasic is 100 - 1000 times slower, if the program contains lots of loop - statements. My suggestion to you is to reprogram the shortest path algorithm as a Delphi (Pascal) based dll. You can download a free (for personal use) Delphi from www.borland.com . I think there is a example interfacing Mapbasic with Delphi dll's at www.directionsmag.com . If you can't find it, then send me a mail and I'll mail you some simple examples to get you started.
regards Bo Thomsen GeoConsult I/S Denmark -----Oprindelig meddelelse----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 29. november 2001 05:28 Til: [EMAIL PROTECTED] Emne: MI-L Shortest route using Mapbasic Hi all I am developing a program for Shortest path using Mapbasic(v 4.5), i have completed its giving result but it is taking lot of time(about 30 mins), same logic will give results very fast in VB(about 0.5 to 1 min). why it is so??, is there any better logic to find shortest route??. Can you please tell some solution for this problem, Thanks in advance Regards Karigoudar _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body. _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.
