<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=ReleaseRoleObjects_%28Instance%29</id>
		<title>ReleaseRoleObjects (Instance) - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=ReleaseRoleObjects_%28Instance%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=ReleaseRoleObjects_(Instance)&amp;action=history"/>
		<updated>2026-05-19T00:09:36Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=ReleaseRoleObjects_(Instance)&amp;diff=905&amp;oldid=prev</id>
		<title>Syfre : Nouvelle page : &lt;source lang='delphi'&gt;procedure ReleaseRoleObjects(const iRoleName:string);&lt;/source&gt;  Cette opération relâche les objets tenus par un rôle.  {|class=&quot;wikitable&quot; |- |iRoleName |Nom...</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=ReleaseRoleObjects_(Instance)&amp;diff=905&amp;oldid=prev"/>
				<updated>2009-07-25T08:27:52Z</updated>
		
		<summary type="html">&lt;p&gt;Nouvelle page : &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;procedure ReleaseRoleObjects(const iRoleName:string);&amp;lt;/source&amp;gt;  Cette opération relâche les objets tenus par un rôle.  {|class=&amp;quot;wikitable&amp;quot; |- |iRoleName |Nom...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;procedure ReleaseRoleObjects(const iRoleName:string);&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette opération relâche les objets tenus par un rôle.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|iRoleName&lt;br /&gt;
|Nom du rôle&lt;br /&gt;
Ce paramètre peut être vide pour relâcher tous les rôles de l'objet.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{tip|Cette opération peut être utile lors des traitements en transaction longue pour s'assurer qu'un objet ne maintient pas d'autre objets en mémoire du fait de ses rôles.}}&lt;br /&gt;
&lt;br /&gt;
Exemple&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;&lt;br /&gt;
procedure doProcess(inst:MyClass);&lt;br /&gt;
begin&lt;br /&gt;
  // Called inside a long transaction&lt;br /&gt;
  //&lt;br /&gt;
  // The object is inserted inside the long transaction&lt;br /&gt;
  //&lt;br /&gt;
  inst.Update;&lt;br /&gt;
  //&lt;br /&gt;
  // The object may have references on other objects of the transaction&lt;br /&gt;
  // This release these references to insure that the object will not keep other objects in memory.&lt;br /&gt;
  inst.ReleaseRoleObjects('');&lt;br /&gt;
  //&lt;br /&gt;
  // Batch the transaction&lt;br /&gt;
  //&lt;br /&gt;
  ClassManager.BatchLongTran; &lt;br /&gt;
  // &lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi&lt;br /&gt;
&lt;br /&gt;
Rôle : ReleaseInstances&lt;br /&gt;
&lt;br /&gt;
{{Footer|Objets métiers (tech)}}&lt;br /&gt;
[[category:Objets métiers]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>