MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only
  • 1.  Why does "CreatePoint" in an Insert statement cause crashes?

    Posted 08-01-2017 16:42
      |   view attached

    I am coding in C++, using MapInfo 12.5.2 (32 bit) MapBasic - and trying to do an insert statement:

    Insert Into qqq_RSSI_CW_LTE_UpperC_22_0_Cha (MI_PRINX, Chan_5220_RSSI, DateTime, DateTimeInt, Max_Chan, Max_RSSI, PositionType, RunNumber, X, Y, Obj) Values (3, -115.669998168945, 0, 11829, 5220, -115.67, "CALC", 418, 11.47054545, 0.00000000, CreatePoint(11.4705,0.0000))

    The "CreatePoint(X, Y)" portion of this statement is causing crashes and errors. The most frequent error is: Internal Error: 34531, but I have also gotten Internal Error 346nn (cannot remember the exact numbers) and an Out of space (false) error message when trying to write to the MI .TAB file I have created.

    The "Internal Error" is not determinable as to when it happens. I create several points before the error appears, but again I don't have a set number.

    See Attachment

    I removed the "Obj" from the columns clause and the "CreatePoint" from the Values clause and now I don't get the errors. The problem is I need the points created, so does anyone have a fix/solution/idea/help for this?

    Thanks,

    Bill



  • 2.  RE: Why does "CreatePoint" in an Insert statement cause crashes?

    Posted 08-01-2017 17:08

    Andrei,

    1) I don't run a traditional MBX program. We run a DLL on top of MapInfo executable and we only use MBX files to load menus and icons/tools. All my MB calls are done via the MapInfo API calls (to Do and Eval). It would take a lot of work to even try to create an MBX that simulates what my program is doing,

    2) What do yo mean by "Can you make sure that during the execution of "insert" statement you don't have your table opened in a map window." I have the mapper window open and showing the data points as CreatePoint is run. Are you saying I should close and open the table each time I write (insert into) it?

    3) I will try.



  • 3.  RE: Why does "CreatePoint" in an Insert statement cause crashes?

    Posted 08-02-2017 12:02

    Andrei,

    Yes, there are other layers.