Показать сообщение отдельно
Старый 30.04.2012, 19:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Memory usage in XppIL code
Источник: http://blogs.msdn.com/b/axsupport/ar...ppil-code.aspx
==============

Written some X++ which seems to have high memory usage when run in IL but runs normally when not in IL? Or just noticing high memory usage in servers running IL code?

Here we're going to talk about an aspect of garbage collection in XppIL that is important for anyone writing XppIL code to take on board.

Let's start with an example: If the code below runs in XppIL, when we hit the sleep line how many X++ objects are in memory (the query Cust contains CustTable and CustTrans):

<div style="background-color: lightgray; font-family: Courier New; font-size: 8pt; padding: 5px 5px 5px 5px;"> for(i=1;i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
За это сообщение автора поблагодарили: Logger (1).