NetTalk Central

Author Topic: NetMaps weird problem  (Read 4582 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NetMaps weird problem
« on: October 05, 2020, 07:31:19 AM »
Hi, Im using maps to show many waypoints and draw routes.
When dragging the map or change the zoom, sometimes, only sometimes and without any logic... the waypoints dissapear.
They are there because if I hover the mouse the tip works ok.
Please see pics.
How can I debug it?
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NetMaps weird problem
« Reply #1 on: October 06, 2020, 04:59:17 AM »
Hi Bruce, in draw.clw:

        Open(iconFile, 0)
        if ErrorCode()
            self.trace('Unable to open icon file ' & Clip(locIconFileName) & ': ' & Error())  !<<<<<ADDED
            self.ErrorTrap('Unable to open icon file ' & Clip(locIconFileName) & ': ' & Error(), 'LoadIcon')
            Return(0)
        end

Ive added self.trace lines to draw.clw and in the open of the .ico , using a lot of icons and when move the map, sometimes it gives File already open error.

[6872] [Draw][4] Unable to open icon file MapPinBlue.ico: File Already Open

Ive added

        Close(iconFile)

before and the problem goes away.

or may be better to use just Share(IconFile)

May you please add it to draw.clw ?

Thanks
-----------
Regards
Alberto