MapInfo Pro Developers User Group

 View Only
  • 1.  MapBasic. Debugging. Stop statement not working.

    Posted 01-16-2022 14:23
    Hello,
    I am new in this forum and I wanted to join MapBasic programmers, not MIpro developers community. Could you please help me?
    I'm using MapBasic 15.0.
    Any STOP statement I write produces the message "Cannot breakpoint. This program is being run from another program.", followed by "...Unknown error encountered."
    I can't understand this error. The fact is that I cannot use the stop statement and I need to trap another previous error ("Could not convert data." after clicking the OK button to close a configuration Dialog)
    Any help? Thank you.
    SGR

    ------------------------------
    Sergi Gamiz-Ribelles
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: MapBasic. Debugging. Stop statement not working.

    Posted 02-08-2022 03:50
    Solved.
    I'm sorry, it was my fault: there were other tools running. So "STOP" is forbidden.
    Delete my previous post, please.

    ------------------------------
    Sergi Gamiz-Ribelles
    Knowledge Community Shared Account
    ------------------------------



  • 3.  RE: MapBasic. Debugging. Stop statement not working.

    Employee
    Posted 02-08-2022 08:06
    Great to hear you found the solution yourself.
    I rarely use the Stop option

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 4.  RE: MapBasic. Debugging. Stop statement not working.

    Posted 02-08-2022 08:36

    I find storing the system time useful, or at least entertaining, when using the stop statement.

     

    stop

    hammer = time(24)

     

    ��

     

    /Warren