you haven't included any of the code near line 1527/the suspect line of code but this generally occurs when folks try to access a file using literal file paths vs relative file paths.
the folder location where your exe is launched from would be the apps
root directory. below that, you might have folders, or sub-directories, that hold various things like
media,
level data ,
help files.
for this, let's say your exe is found in: "C:\Program Files (x86)\The Game Creators\Dark Basic Professional\Projects\MyApp". that would be the root directory.
dbpro assumes files you're trying to access to be in the root directory unless otherwise specified. ie, if you wanted to access a text file from the root directory, you might use:
open to read "C:\Program Files (x86)\The Game Creators\Dark Basic Professional\Projects\MyApp\MyData.txt"
if you move the .exe, then the literal path would change and cause the error you've reported (using the long, literal file paths also make you more prone to typing mistakes).
best practice is to access files using relative paths vs literal paths. ie, in the same scenario where the data file is in the root directory, you would simply use:
open to read "MyData.txt"
if the text file was located in a sub-directory, say a "data" folder, then:
open to read "data\MyData.txt"
try incorporating the (best) practice above re: accessing files (including loading images, models, sounds, etc, as well) and see if that solves the issue.