MapInfo Pro

Expand all | Collapse all

Selection and Info tool in one-English version Error

Jump to Best Answer
  • 1.  Selection and Info tool in one-English version Error

    Posted 07-03-2019 21:21
    Hi,

    When trying to run the Selection and Info tool in one-English version 3.1 it returns this error:

    error:802
    (ribbonlib.mb:7871) Subscript out of range. Unable to read application File.
    RBNRemoveElement

    I tried recompling it but still get the same error, What would be the cause of this and how do i fix it?
    Using MapInfo 16.0.1

    Regards
    Andrew

    ------------------------------
    Andrew Niebling
    Systems Administrator (GIS)
    Queensland Rail Ltd
    Brisbane
    ------------------------------


  • 2.  RE: Selection and Info tool in one-English version Error

    Pitney Bowes
    Posted 07-04-2019 01:19
    Hi @Andrew Niebling are you getting this error when running the tool or compiling in MapBasic? Is this a tool you've written yourself or code from one of the samples included with MapBasic? Are you able to share some context as to what is happening at the point the code fails (around line 7871)?

    Thanks, Ashley​

    ------------------------------
    Ashley Crane
    Regional Director, Software Support
    Pitney Bowes
    ------------------------------



  • 3.  RE: Selection and Info tool in one-English version Error

    Pitney Bowes
    Posted 07-04-2019 04:09
    Hi Andrew,

    Another thing you can try is deleting the files " MapInfoPro.RibbonState.EN.xml" and "MapInfoPro.DockingState.xml" from the C:\Users\<username>\AppData\Local\MapInfo\MapInfo\Professional\1600 folder. Now open MapInfo Pro and see if the tool works for you.

    There were quite a few issues with the Ribbon in the 16.0.1 version which have all been fixed in the 17 version and beyond.

    You would be very happy if you can switch to version 17 and upwards.

    Regards,
    Shweta

    ------------------------------
    Shweta Shukla
    Pitney Bowes Software India
    Noida
    ------------------------------



  • 4.  RE: Selection and Info tool in one-English version Error

    Posted 07-04-2019 07:37
    Hi Ashley,

    I got this tool (By Peter Horsbøll Møller)from the community downloads page and the error is generated when trying to run it.

    Shweta, I deleted the files as you suggested and still get the same error when trying to run the program. As you say it may just be an issue with version 16.0.1 and we will need to upgrade our version.

    Regards
    Andrew

    ------------------------------
    Andrew Niebling
    Systems Administrator (GIS)
    Queensland Rail Ltd
    Brisbane
    ------------------------------



  • 5.  RE: Selection and Info tool in one-English version Error

    Pitney Bowes
    Posted 07-04-2019 19:56
    Hi @Andrew Niebling - thanks for the clarification. We've seen similar errors before, would be good to try and isolate the conditions that exist  when you experience this.

    Are you able to share:
    1. Does it occur every time you use the ​tool?
    2. Does it happen on all datasets?
    3. Do you have access to another PC with this installed & does it happen there?
    Once we isolate the source of the problem we'll be able to think about best way forward.

    Thanks, Ashley

    ------------------------------
    Ashley Crane
    Regional Director, Software Support
    Pitney Bowes
    ------------------------------



  • 6.  RE: Selection and Info tool in one-English version Error

    Posted 07-04-2019 20:56
    Hi Ashley,
    Yes it occurs every time I try to use the tool and all datasets and even on an empty instance of MapInfo. Have tried 2 other PC's within the corporate environment with v16.0.1 and also on my home pc with version 16.0.2 and still get the same error.

    Regards
    Andrew

    ------------------------------
    Andrew Niebling
    Systems Administrator (GIS)
    Queensland Rail Ltd
    Brisbane
    ------------------------------



  • 7.  RE: Selection and Info tool in one-English version Error

    Posted 07-05-2019 00:47
    Hi Andrew,

    To get this working, have you tried re-creating the MBX and simply creating a new Buttonpad? It's just a guess from me, but it might be the create/alter menu statement that is causing the issue.

    I've tested this tool in MI Pro 15.0 and 17.0.2 and works fine.

    Just my 2 cents :)

    Thanks

    ------------------------------
    Simon Emmanuel
    Spatial Solutions Manager
    Salmat Digital
    Prestons
    ------------------------------



  • 8.  RE: Selection and Info tool in one-English version Error

    Posted 07-07-2019 17:48
    Hi Simon,

    I have tried re-creating the MBX but still no luck, There are quite a few versions of this tool and I may have originally listed the wrong file name when first posting, my apologies for that. The Tool I am having problems with is the one here  InfoSelHandler_x64.zip
    Source code is from here github.com/PeterHorsbollMoller/mbInfoSelHandler


    Regards
    Andrew

    ------------------------------
    Andrew Niebling
    Systems Administrator (GIS)
    Queensland Rail Ltd
    Brisbane
    ------------------------------



  • 9.  RE: Selection and Info tool in one-English version Error

    Posted 07-07-2019 20:13
    Hi Andrew,

    Yes I downloaded a completely different version.

    The one you listed above, the Source Code doesn't have the MB file, so difficult to know what is happening around that line.

    Peter might be best to diagnose this for you.

    Thanks

    ------------------------------
    Simon Emmanuel
    Spatial Solutions Manager
    Salmat Digital
    Prestons
    ------------------------------



  • 10.  RE: Selection and Info tool in one-English version Error

    Pitney Bowes
    Posted 07-08-2019 01:49
    Hi @Simon Emmanuel & @Andrew Niebling,

    Found the source code for the full MB is also in Git Hub here: https://github.com/PeterHorsbollMoller/mbLibrary/blob/master/RIBBONLib.mb I had a look & no obvious signs on the Function that is throwing the error ​​as to the possible source. Intriguing that neither Simon nor myself can replicate with the same MBX yet Andrew has this happening on multiple PC's? So appears to be something specific to the environment - just one thought, do you have other MBX tools loaded? At the point the code fails it appears to be interacting with other buttons on the toolbar, perhaps there is an unexpected component?

    Peter is on a well deserved summer break for a few weeks, will try to dig into this a little further to progress prior to his return.

    Thanks, Ashley

    ------------------------------
    Ashley Crane
    Regional Director, Software Support
    Pitney Bowes
    ------------------------------



  • 11.  RE: Selection and Info tool in one-English version Error

    Posted 07-08-2019 17:13
    Hi Ashley,

    I opened a empty session of MapInfo, closed all running tools and tried loading the tool again. Still get the same error message.

    Regards
    Andrew

    ------------------------------
    Andrew Niebling
    Systems Administrator (GIS)
    Queensland Rail Ltd
    Brisbane
    ------------------------------



  • 12.  RE: Selection and Info tool in one-English version Error
    Best Answer

    Posted 07-09-2019 03:00
      |   view attached
    Hi Andrew,

    This functionality is available in the WindowHelper tool (available from the MapInfo Marketplace):

    Show Info
    However, before I discovered this, I investigated the error you are seeing and managed to program in a quick fix and recompile the mbx for MapInfo version 12.5 and above.

    @Peter Horsbøll Møller - I'm not sure if you are intending to continue maintaining this tool.  If you are, it seemed to me that the tool expected the "MapAnalyze" group within the "TabMap" tab to already exist.  I therefore modified the Main routine to call the RBNTabAddGroup function from the latest version of the RIBBONLib.  I don't think I did a very good job but it seems to work!

    ------------------------------
    James Nolet
    Dooley Mitchell & Morrison Pty Ltd
    ------------------------------

    Attachment(s)



  • 13.  RE: Selection and Info tool in one-English version Error

    Posted 07-09-2019 03:50
    Thanks for locating the error, James.

    I seem to recall that we renamed a tab group at some point. Maybe the tool should simply be added to a different existing tab group?

    I will have a look when I'm back from vacation.

    ------------------------------
    Peter Horsbøll Møller
    Pitney Bowes
    ------------------------------



  • 14.  RE: Selection and Info tool in one-English version Error

    Posted 07-09-2019 08:40
    Hi James,

    Thanks for the info, great find on what was causing the error,  such a small thing really. I added the tool into the TAB_GROUP_MAP_OPTIONS and all working great now.

    Thanks
    Andrew

    ------------------------------
    Andrew Niebling
    Systems Administrator (GIS)
    Queensland Rail Ltd
    Brisbane
    ------------------------------



  • 15.  RE: Selection and Info tool in one-English version Error

    Posted 07-09-2019 21:24
    Hi Andrew,

    Good to hear!  Peter can now continue to enjoy his vacation!

    (Peter, it might be that the Ribbonlib routine has changed - a previous version added the specified group if it was missing but the later version does not.  This is just a guess though.)

    ------------------------------
    James Nolet
    Dooley Mitchell & Morrison Pty Ltd
    ------------------------------



  • 16.  RE: Selection and Info tool in one-English version Error

    Posted 08-16-2019 02:10
    Thanks for the heads-up guys!
    I have taken a look at the tool and decided like Andrew to add it to the Options group on the MAP tab.

    I have also modified it to not add any tools to the Map Mini Toolbar if you are running MapInfo Pro 17.0 or newer.
    The latest version can be found here on Community Download and might also get into the MapInfo Marketplace in a short while.

    ------------------------------
    Peter Horsbøll Møller
    Pitney Bowes
    ------------------------------



  • 17.  RE: Selection and Info tool in one-English version Error

    Moderator
    Posted 08-07-2019 23:08
    Hi Andrew,

    Greetings!
    I hope you got the resolution of your query.
    Please mark the best answer by selecting "Make Best Answer" in the Reply menu.
    It will help us and other users save their time.

    For more information click here.

    Regards

    ------------------------------
    Aakash Singh
    Pitney Bowes Software India Pvt. Lt
    NOIDA
    ------------------------------