Problem loading extensions

Anything QL Software or Programming Related.
User avatar
Giorgio Garabello
Gold Card
Posts: 299
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, Italy
Contact:

Re: Problem loading extensions

Post by Giorgio Garabello »

janbredenbeek wrote:
Giorgio Garabello wrote: so, is better to launch extensions as soon as possible in the boot?
Yes. When you call a SB procedure or function, the name table gets extended by the parameters and LOCAL variables in the procedure. These entries are removed after you return from the procedure. Now when you load extensions, there are also new entries in the NT created (usually at the top). I'm not sure if they will be preserved by the cleanup that SB does after returning from the procedure. It's best to load them at the start of the boot program.
There is also a difference in the way the ROM versions treat extensions with conflicting names. On AH and JM they simply get appended to the NT without checking, so they won't override the existing entry unless you fix the NT yourself after loading (which TK2 does, e.g. after TK2_EXT). This is also why you cannot use your extensions in the same BOOT file that loads them, since the entries have already been created by the time they get LRESPR'd. On JS and later this is no problem since they check the new extension names against the existing names and override these when they are the same.

Jan.
Ok, so i can call PROC or FUNCT but I have to get out of them before launch an extension...
(I use SMSQE)

Thanks, GIorgio


Post Reply