Dears,
When i try to open User Options under Administrations >> Users >> User Options My client Crash ,
and get message “Dynamics AX client stop working” ,My client Version and AOS are identical to RU8 ,
I check the Event logs as following :
Faulting application name: Ax32.exe, version: 5.0.1500.6491, time stamp: 0x4f611504
Faulting module name: Ax32.exe, version: 5.0.1500.6491, time stamp: 0x4f611504
Exception code: 0xc0000005
Fault offset: 0x00224b8f
Faulting process id: 0xf08
Faulting application start time: 0x01cffe8dd827ae59
Faulting application path: C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe
Faulting module path: C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe
Report Id: 1b91a71b-6a81-11e4-aac3-68b599fc099c
BR
It is possible to debug the Windows process or analyze a memory dump to see where it fails, nevertheless it might be quite difficult.
If I was you, I would first identify where exactly it fails inside AX. I mean that I wouldn’t stop when finding in which form the problem lies, I would go to methods called when the form starts (such as init()) and identify the specific call causing the crash.
Hi Martin
I make debug and i can see this line under SysuserSetup\Data sources\WorkflowWorkitemDelegationparamters\Methods\SetRang :
delegationFromDate.value(’<’+datetime2str(DateTimeUtil::applyTimeZoneOffset(DateTimeUtil::utcNow(), DateTimeUtil::getUserPreferredTimeZone())));
When checking DateTimeUtil::getUserPreferredTimeZone() and DateTimeUtil::utcNow()in watchout is gives error , i belive that Datetime2Str make crash .
NAME:
DateTimeUtil::getUserPreferredTimeZone()
VALUE:
Error: Symbol “DateTimeUtil::getUserPreferredTimeZone()” was not found
TYPE:
NAME:
DateTimeUtil::utcNow()
VALUE:
Error: Symbol “DateTimeUtil::utcNow()” was not found
TYPE:
BR
Good! We’re at least going to isolate the problem. Even if we fail to fix it, we’ll get something specific to report to Microsoft.
Please do one more step. Change the code to save the result of each step to an individual variable. Like this:
utcDateTime time = DateTimeUtil::utcNow();
Timezone tz = DateTimeUtil::getUserPreferredTimeZone();
utcDateTime timeInTz = DateTimeUtil::applyTimeZoneOffset(time, tz);
str timeStr = datetime2str(timeInTz);
After debugging this modified code, you’ll be sure which method is causing the problem. And you will also know which parameters are causing it to fail, so you should be able to reproduce the problem in a simple job. Others (including Microsoft support engineers) will be able to run the job and tell you whether they experience the same behavior.
HI Martin
I made this in Job
utcDateTime time = DateTimeUtil::utcNow();
Timezone tz = DateTimeUtil::getUserPreferredTimeZone();
utcDateTime timeInTz = DateTimeUtil::applyTimeZoneOffset(time, tz);
str timeStr = datetime2str(timeInTz);
I got this result it seems working , so i have doubt now in
NAME:
time
VALUE:
11/12/2014 05:45:31 Am
TYPE:
datetime
NAME:
timeInTz
VALUE:
11/12/2014 08:45:31 Am
TYPE:
datetime
NAME:
timeStr
VALUE:
11/12/2014 08:45:31 Am
TYPE:
str
NAME:
tz
VALUE:
GMTPLUS0300CI_USA
TYPE:
Timezone
If it works now and it didn’t before, it may be because utcNow() returns something else. Try to use UTC time of your previous test instead of the currect UTC time.