Stack control

jtpjtp Member Posts: 9
I'm running one form with OnTimer property set to 60000 and I'm calling one codeunit on OnTimer trigger.
Sometimes Navision client hangs up or shuts down. I already increase dbms cache and object cache and this problem still the same.
Anyone know how Navision handle stack memory and how can I release it or increase it?
José Inácio Tira Picos
Consulting Services
SystemHouse - Consultoria e Sistemas
j.tirapicos@systemhouse.pt

Comments

  • lubostlubost Member Posts: 611
    I think, you need to set a flag in OnTimer trigger to prevent call your codeunit again:

    if not flag then begin
    flag := true;

    codeunit calling

    flag := false;
    end;
  • jtpjtp Member Posts: 9
    Thanks for your help.

    I already tried, but its not enough.
    José Inácio Tira Picos
    Consulting Services
    SystemHouse - Consultoria e Sistemas
    j.tirapicos@systemhouse.pt
  • kinekine Member Posts: 12,562
    Try use "'Navision Timer 1.0'.Timer" automation instead form OnTimer.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • DenSterDenSter Member Posts: 8,304
    You can't access the memory directly from Navision. The only way to even come close to manipulate is by cleaning up variables using the CLEAR statement, but I don't think that will make a big difference unless you are using an automation or an OCX in this timer.
  • WaldoWaldo Member Posts: 3,412
    Are you using NAS?

    You can set the "SingleInstance"-property of the codeunit to "yes". This helps when you use NAS, but I don't know if you do. (You should, because the first NAS-service is for free, and it is much more stable than a Navision Client).

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.