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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.07.2008, 06:33   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axperf: Debugging X++ Object Leaks
Источник: http://blogs.msdn.com/axperf/archive...ect-leaks.aspx
==============

One of the most important aspects of writing managed code that interacts with AX through the Business Connector is cleaning up objects. Each AxaptaObject and AxaptaTable must have dispose called on it before going out of scope, or we’ll leak the object...(read more)

Источник: http://blogs.msdn.com/axperf/archive...ect-leaks.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 06.07.2008, 15:09   #2  
axstart is offline
axstart
MVP
Most Valuable Professional
NavAx Club
 
16 / 10 (1) +
Регистрация: 04.05.2008
Адрес: Holland
I'm lost in this story. So general, there is no garbage collection for the .net client?
What happens to the basic software design rule that tells use: The object that creates an object should also delete it. In C++ ad c# it is possible with methods like finalize. Who can help me with my confusion in my head..........
__________________
MVP
Старый 07.07.2008, 12:35   #3  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 645 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
The thing is that the garbage collector cleans up objects only when they go out of scope. Sometimes an object can stay in scope for quite a while holding its memory (especially if .net client stays logged in, logging out forces all object handles to be released). There's a good advice on how to avoid objects staying in scope for too long - always use the using statement.
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Vincent: Debugging business logic in AX 2009 SSRS reports Blog bot DAX Blogs 0 29.11.2008 09:05
Dynamics AX: Map Object Sorting - a real issue Blog bot DAX Blogs 7 15.10.2008 12:02
axStart: A structure way off dealing with garbage collection & memory leaks with the Dynamics AX .net connector. Blog bot DAX Blogs 0 31.07.2008 22:05
SysDictCoder: 10 tips for debugging in Dynamics Ax Blog bot DAX Blogs 0 01.07.2007 22:05
Dynamics AX: .Net BC, C# - Working with AxaptaRecord Object Blog bot DAX Blogs 0 20.06.2007 23:13

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

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

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