Hi everybody
I have a big problem:i have a working NAS, which executes correctly my
codeunits, but NAS doesn't his job when there is a Navision Timer in the
codeunit.
Example of my code:
(OnRun):
IF ISCLEAR(Timer) THEN
CREATE(Timer);
Timer.Interval(10000);
Timer.Enabled(TRUE);
Timer::Timer(MilliSeconds: Integer)
MESSAGE('Time is %1',TIME);
There is a correct startup Parameter in CU1 NASHandler, all correct installed, but this example doesn't work, there aren't messages in the eventlog every 10 seconds, there is nothing.
Could you please help me.
0
Comments
Then you are doing MESSAGE in a NAS. This will not display the message the way you expect. It will instead write an entry into the event log. Click Start, control panel, administrative tools, event viewer. Click on the Application node and look for where the source column has your NAS name. You should find your messages there.
RIS Plus, LLC
RIS Plus, LLC
I also have changed from tcps to tcp by registry.
Without the timer ,nas works, only in combination with timer nothing works.
Timer; Automation; 'Navision Timer 1.0'.Timer
CountDown; Automation; 'CP Timer'.cCountDown
Check the Codeunit 6220 MailHandler
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009
i have found the CP Timer, I created it, but it doesn't work correctly.
New Codeunit, Single Instance:
OnRun():
IF ISCLEAR(CPTimer) THEN
CREATE(CPTimer);
CPTimer.Start(10);
Timer::TimerEvent()
MESSAGE('Clock is %1',TIME);
When i run the CU, there is only one message, no more.
Is the Interval defined in milliseconds?
Can you help me?
Your code
Timer::TimerEvent()
MESSAGE('Clock is %1',TIME);
New code
Timer::TimerEvent()
intNextInterval := IntervalInSek * 1000;
MESSAGE('Clock is %1',TIME);
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009
OnRun():
IF ISCLEAR(CPTimer) THEN
CREATE(CPTimer);
IntervalInSek := 10;
CPTimer.Start(IntervalInSek);
CPTimer::CountDown(VAR intNextInterval : Integer)
intNextInterval := IntervalInSek * 1000;
MESSAGE('Clock is %1',TIME);
On Client I get a message every 10 seconds, in the eventlog of NAS nothing. I can't understand, if I would have installed the nas incorrect,
normal operations(without timer) also would'nt work, but the do.
command prompt: regsvr32 "patth...\NTimer.dll", because of this I can exclause this mistake.
After that i run the Codeunit in debug modus first at the client and then with the server.
Client:goes until " CPTimer.Start(IntervalInSek);", then repeats the CountDown-Trigger every 10 second, allright.
Server: goes until "CPTimer.Start(IntervalInSek);" then leaves the CU.
Why?
On my server I have installed both NAS and Business Notification Server.
I deinstalled Business Notification Server for a few minutes and the Timer works.
Does anybody know why NAS ist not compatible with Business Notification Server ?
RIS Plus, LLC
Does the Business Notification Server also needs a license file?
RIS Plus, LLC