Resources aren't released correctly after rendering
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Uiml.net | Status tracked in Uiml.net-dev | |||||
Uiml.net-dev |
New
|
Medium
|
Jo Vermeulen |
Bug Description
Beside the mentioned error in the summary, there is also a problem when rendering
multiple times in a row when using the layout management.
Something to do with a singleton in which the variables aren't cleared.
Possible solution for clearing the resources : use the garbagecollector
-------
public class SWFRenderedInstance : Form, IRenderedInstance
{
public delegate void CloseHandler();
private CloseHandler m_closeH;
public CloseHandler CloseH
{
get { return m_closeH; }
set { m_closeH = value; }
}
public SWFRenderedInst
{
m_closeH = null;
}
public SWFRenderedInst
{
Text = title;
m_closeH = null;
}
public void ShowIt()
{
try
{
//Applicatio
this.Show();
}
catch(
{
//Application thread is already running...
this.
}
}
public void Add(Control c)
{
this.
}
public string Title
{
get
{
return Text;
}
set
{
Text = value;
}
}
protected override void OnClosed(
{
GC.Collect();
GC.WaitForPen
if(m_closeH != null)
m_closeH();
this.Dispose();
}
}
Added another bug for the problem with rendering after a document containing a layout element:
https:/ /bugs.launchpad .net/uiml. net/+bug/ 112000