Page 1 of 2
issue-#123 *Hook proc. not seen in extension interface
Posted: Thu Mar 10, 2016 5:15 am
by DGDanforth
Folks,
Kernel has a procedure SetLoaderHook that is marked for export "*" and yet when one
does Ctrl-D on Kernel one does not see that procedure.
That procedure is known to StdLoader which calls Kernel.SetLoaderHook so the procedure is there but it is invisible. Why?
I don't understand that behavior.
-Doug
Re: Exported but not seen procedures
Posted: Thu Mar 10, 2016 7:29 am
by cfbsoftware
Run the DevBrowser.ShowInterface command with the "&" option included.
In the DevBrowser Docu this is described as:
PROCEDURE ShowInterface (opts: ARRAY OF CHAR)
...
...
opts = "&" creates an output which also shows hooks in the interface.
Re: Exported but not seen procedures
Posted: Thu Mar 10, 2016 11:21 pm
by DGDanforth
cfbsoftware wrote:Run the DevBrowser.ShowInterface command with the "&" option included.
In the DevBrowser Docu this is described as:
PROCEDURE ShowInterface (opts: ARRAY OF CHAR)
...
...
opts = "&" creates an output which also shows hooks in the interface.
Thank you Chris.
I was unaware of those browser options.
Its somewhat awkward to actually do that since it entails creating a menu
Code: Select all
MENU "Browser"
"Show hooks" "" "DevBrowser.ShowInterface('&')" ""
END
and putting that some where, but it works.
Thanks again.
-Doug
Re: Exported but not seen procedures
Posted: Fri Mar 11, 2016 10:13 am
by Josef Templ
Doug, you can use the dialog Info->Interface...
and execute "Show Extension Interface".
This gives you information about the hooks as well.
Unfortunately, this does not show the procedure Kernel.SetLoaderHook
but only the related hook types and variables.
This seems to be a bug indeed.
The fix would be simple. In DevBrowser.Proc replace the second line by
Code: Select all
IF global.extensioninterface & ~((obj.link # NIL) & (obj.link.link = NIL) & IsHook(obj.link.typ)) THEN RETURN END;
- Josef
Re: Exported but not seen procedures
Posted: Thu Apr 14, 2016 7:30 pm
by Zinn
I miss this change in the last link of the Center Edition (506).
Do we add this change to the Center Edition or not ???
- Helmut
Re: Exported but not seen procedures
Posted: Thu Apr 14, 2016 8:45 pm
by Ivan Denisov
Zinn wrote:I miss this change in the last link of the Center Edition (506).
Do we add this change to the Center Edition or not ???
I think, not. There should be issue and voting for this fix.
Re: Exported but not seen procedures
Posted: Fri Apr 15, 2016 11:48 am
by Josef Templ
I think it is a bug indeed and a separate issue should be created for that.
It is simple to fix as I have already pointed out.
- Josef
Re: Exported but not seen procedures
Posted: Sat Aug 20, 2016 4:35 am
by Ivan Denisov
Josef Templ wrote:
The fix would be simple. In DevBrowser.Proc replace the second line by
Code: Select all
IF global.extensioninterface & ~((obj.link # NIL) & (obj.link.link = NIL) & IsHook(obj.link.typ)) THEN RETURN END;[/quote]
We are still not include this fix. Can it be classified as a bug?
Re: Exported but not seen procedures
Posted: Sat Aug 20, 2016 6:08 am
by Josef Templ
To me it is a bug and it should be fixed.
Re: Exported but not seen procedures
Posted: Sat Aug 20, 2016 7:19 am
by Ivan Denisov