Customizing codeunit ApplicationManagement

jks
jks Member Posts: 277
Hi all,

I added two statements in codeunit 1 i.e ApplicationManagement, one in CompanyOpen and one in CompanyClose. On CompanyOpen I have added statement for Database connection and on CompanyClose I disconnect from there. Code is as follow:

CompanyOpen
IF GUIALLOWED THEN
LogInStart;
TestCD.Init;

ComapnyClose
IF GUIALLOWED THEN
BEGIN
TestCD.Term;
LogInEnd;
END;

Here TestCD is my another codeunit. Now CompanyOpen code works perfectly. but on CompanyClose I get error
Internal error 2 in module 7
Contact your dealer if you need assistance.
And then Navision crashes.

Please help.

Comments