Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Restore gives a strange error ...

Author
Message
Miez
21
Years of Service
User Offline
Joined: 29th Oct 2002
Location: Vanuatu
Posted: 6th Nov 2002 12:44
When I try to use the "restore" command with a label, it gives me the following error:

** Failed to 'CreateASMFooter::FindLabel' **

I have Patch 2 and the DBProPowerTools plugin installed. Anybody any idea? The problem occurs (for instance) in the following snippet:

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 6th Nov 2002 13:38
Yes, happens here too.

Dont forget to e-mail them with this error.

Yes, I really am THAT good...
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 6th Nov 2002 17:36
Can`t help much except to say that it works if you take the routine out of the function.

There do seem to be a few problems that only show up in functions.
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 7th Nov 2002 00:18
Have you tried moving the data inside the function?

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 7th Nov 2002 00:32
Doesn't make any difference for me.

Yes, I really am THAT good...
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 7th Nov 2002 00:36
Strange!

I've used data blocks inside functions before, hmmm perhaps because I was not using any strings at the time, maybe thats the problem here.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 7th Nov 2002 00:40
Try this.

Move the data block inside the function and remove the Restore command

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 7th Nov 2002 00:51
It works if you remove the restore command alright both in and out of the function. It also works if the restore command has no label.

However the restore problem would be annoying if you wanted to read another section of data...

Yes, I really am THAT good...
rapscaLLion
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 7th Nov 2002 00:55
ya, I can't use DATA statements because of this!

Alex Wanuch
aka rapscaLLion
Get the DB Weekly Newsletter at www.dbwn.cjb.net
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 7th Nov 2002 00:57
True, I had not considered that. looks like another bug has sneaked out.

Can data blocks be local, or is it safer to read them outside of functions?

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 7th Nov 2002 10:20
Really data blocks would be best left outside of functions, thats kind of the point, so you can collect all the data used by your program in one place.

These days I rarely use read/data/restore, instead I tend to use an '.ini' file, which makes it easier to change stuff, particularly when your programs already compiled. I just go through the ini at the start of the program and put all the data into arrays, or load images/objects etc, which then remain available throughout the run.
Lee Bamber
21
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 15th Nov 2002 03:39
Fixed for patch 3 - Due end of November

Login to post a reply

Server time is: 2024-03-28 16:14:56
Your offset time is: 2024-03-28 16:14:56