Page 1 of 1

Problem with map

Posted: Fri Nov 06, 2020 7:58 am
by Dirk Geppert
I have developed a lot in a WebApp project and now I noticed during testing that suddenly there is a problem when deleting a map element.

Code: Select all

   If FindMapElement(Form(), Str(nr))
      DeleteMapElement(Form(), Str(nr))
    EndIf
After the delete, GUI errors suddenly occur and nothing works anymore.

The only hint I could find in the browser debugger:

Code: Select all

Source-Map-Fehler: Error: request failed with status 404
Ressourcen-Adresse: http://127.0.0.1/spiderbasic/libraries/javascript/dojo/dojo.js
Source-Map-Adresse: dojo.js.map
What could that mean?

Is there any other way to see if something is broken on the map or something else?

Re: Problem with map

Posted: Fri Nov 06, 2020 8:17 am
by Peter
This error has nothing to do with your current problem. For explanation: The browser tries to load a MAP file for each JS file. This is needed to display correct line numbers for compressed JS or TS files. If the browser doesn't find the MAP file, it gives an error.

As written: The browser message regarding the missing MAP file has nothing to do with the SpiderBasic map commands.

Re: Problem with map

Posted: Fri Nov 06, 2020 9:53 am
by Dirk Geppert
Thanks for the information. What can cause the problem? In an earlier version of the project the message does not appear.
I will test the project with other browsers. Maybe there will be some more information.
Or switch from Map to Linked List for testing.