AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 19.07.2010, 09:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,491 / 846 (79) +++++++
Регистрация: 28.10.2006
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  
oip is offline
oip
Axapta
Лучший по профессии 2014
 
2,564 / 1416 (53) ++++++++
Регистрация: 28.11.2005
Записей в блоге: 1
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  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
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  
casperkamal is offline
casperkamal
Участник
 
10 / 22 (1) +++
Регистрация: 16.03.2007
Адрес: Hyderabad, India
Oh Thanks....
I didn't know that
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: List of fixes that improve performance of certain features in Dynamics AX 2009 Blog bot DAX Blogs 0 13.10.2009 19:06
gatesasbait: Dynamics AX 2009 SSRS and SSAS Integration Tips Blog bot DAX Blogs 3 09.07.2009 13:07
jinx: Dynamics AX 2009 - Ungewollt den Sys Layer ändern Blog bot DAX auf Deutsch 1 12.03.2009 11:32
Dynamics AX Sustained Engineering: Dynamics AX 2009 Patching Blog bot DAX Blogs 0 08.10.2008 10:05
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 18:51.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.