05.11.2007, 00:32 | #1 |
HAI; CAN HAS STDIO?
|
might be interesting
Hi, this is not a question, just want to share a little piece of experience.
Recently we had a problem in one of our implementations. Ax (4.0 SP2) would throw a stack trace in standard functionality (that shouldn't had been touched by any of our modifications) like "the function was called with wrong number of parameters". Reindexing/recompilation didn't solve the problem, while there were no compilation errors found. Also we couldn't trace into method where the stack trace was thrown, because debugger just wouldn't step in to the method. The problem was rather silly though. In our modifications one of developers overridden a method in SalesFormLetter class and added a default parameter to the method: X++: method1(str _parm1, str _parm2, boolean _always = true) X++: method1(str _parm1, str _parm2) The solution was to add a default parameter to SalesFormLetter_PackingSlip.method1() - and never use it: X++: method1(str _parm1, str _parm2, [I]boolean _always = true[/I])
__________________
our sharp bitter vitriol is not that of the vulgar. |
|
06.11.2007, 11:37 | #2 |
Участник
|
Для Ax 3.0 SP3 в подобных случаях вообще клиент падал.
|
|
|
|