19.07.2010, 09:05 | #1 |
Участник
|
kamalblogs: Debug::assert statements found in Sys layer in Dynamics Ax 2009
Источник: http://kamalblogs.wordpress.com/2010...amics-ax-2009/
============== This morning I was surprised to see Debug::assert statements in Sys layer table object as I was traversing the InventTrans tree node. If you look at \Data Dictionary\Tables\InventTrans\Methods\unpostedInvoiceIdForReceivedPurchType method then you will find more then 5 assert statements in it. I quickly checked where this method is being used from. It was called from a display method inside the same table. Luckily one of our developer have commented it during rollup upgrade. This statement can attempt to open the debugger if the assertion is false. So I guess it would be good if you would do something to prevent it. Hope anybody from Microsoft following this blog would take it further to fix it….. Источник: http://kamalblogs.wordpress.com/2010...amics-ax-2009/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
19.07.2010, 10:15 | #2 |
Axapta
|
If you try to search 'debug' throughout AOT you'll find hundreds of such places.
It's NOT a bug. Here is an answer from an MS guy: Вылетает дебагер при определённых условиях - ASSERT |
|
19.07.2010, 11:05 | #3 |
Участник
|
Actually, you'll see a lot more of those in the new AX release.
There is nothing wrong with putting such statements into the code. Their purpose is to assert a very specific condition, that MUST be satisfied. If it is not, something is VERY wrong, and we should not continue. They are intended for developers changing the code - when doing some testing of the changes, you would be able to easily see that something is wrong. So, again - this is a good thing that they are there. |
|
19.07.2010, 12:52 | #4 |
Участник
|
Oh Thanks....
I didn't know that |
|
|
|