IF IdleHandler.RUN() THEN; //trap for any errorsI appended this section of code to the end of the function as an extra paranoid safety measure. The weird thing is that the server is still running the old version of the codeunit. You can go into object designer and see the current modified code (and yes I compiled it), but if you run the login process with the debugger on it only shows the old code without the hook put in. I have hooked stuff into the LogInStart function a couple of other times in the past and never had any issues. Does the Navision server do some strange caching of Codeunit 1? I tried a restart of the server and that didn't seem to have any effect what so ever.
Comments
I traded my sanity for a railgun