Показать сообщение отдельно
Старый 10.07.2009, 13:57   #1  
Vadik is offline
Vadik
Модератор
Аватар для Vadik
Лучший по профессии 2017
Лучший по профессии 2015
 
3,631 / 1849 (69) ++++++++
Регистрация: 18.11.2002
Адрес: гражданин Москвы
Kernel rollup 971558 is available for Microsoft Dynamics AX 4.0 Service Pack 2
INTRODUCTION
This article describes a rollup of kernel fixes for Microsoft Dynamics AX 4.0 Service Pack 2 (SP2) in kernel version 4.0.2503.683. This kernel rollup contains kernel fixes that were made from May 4, 2009, through May 17, 2009.

MORE INFORMATION
Problems that are resolved in kernel rollup 971558
This kernel rollup resolves the following problem in Microsoft Dynamics AX 4.0 with Service Pack 2.
Negative multiples of "256" are evaluated to FALSE when a method returns the RecId field as a Boolean value
Assume you add certain X++ code in a job to call a method. The called method defines "Boolean" as the return type, and uses a variable named RecId that is returned as the return value. When the value of the RecId variable is casted to Boolean and then returned to the calling method, negative multiples of "256" are evaluated incorrectly to FALSE.

For example, you run a job that contains the following code:
X++:
static void RecIdTest(Args _args)
{
    recid ri, rimin;

    boolean myMethod()
    {
        return ri;
    }
    ;
    ri = -1;
    rimin = -5000;

    while (ri >= rimin)
    {
        if(!myMethod())
        {
            print(ri);
        }
        ri--;
    }
    pause;
}
In the example, negative multiples of "256" are evaluated to FALSE and then printed to the result. This problem occurs when the RecId field contains a value that has the following conditions:
  • The value is a negative integer.
  • The value is a multiple of 256.

Kernel rollup 971558 is available for Microsoft Dynamics AX 4.0 Service Pack 2
__________________
-ТСЯ или -ТЬСЯ ?
За это сообщение автора поблагодарили: Logger (2), madm (1).