# taf.exe error

**URL:** <https://tech-community.robotics.abb.com/t/taf-exe-error/2783>\
**Category:** Developer Tools\
**Created:** [May 20, 2009, 6:27pm UTC](https://tech-community.robotics.abb.com/t/taf-exe-error/2783 "2009-05-20T18:27:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alan](https://tech-community.robotics.abb.com/u/alan)\
**Post date:** [May 20, 2009, 6:27pm UTC](https://tech-community.robotics.abb.com/t/taf-exe-error/2783/1 "2009-05-20T18:27:04Z")

</div>

Dear all,  
I got a problem when developing a FP RAB application.(just read a config file and set a signal).the application noramly is ok.  
but when I press control panel \>configration(in Real GTPU),I choose Topic and I can’t find IO item and also there is no info. about IO, that means I can’t define any IO signal. if press close in commandbar, no response. if press several times continues or use ‘X’,sometimes GTUP will display a error like below  
TAF.exe error  
at system.io\_error.winIOError()  
at system.io.fileStream.writeCore()  
at system.io.fileStream.flushwrite()  
at System.IO.filestream.flush()  
at system.IO.fileStream.dispose().  
I use RAB5.10 and robotware5.11.02. in RAB application. I have dispose the signal that I have used.  
same application in vitual controller(RW5.11.02). no problem..☹  
some code:

void PrgLoad(object sender, ABB.Robotics.Tps.Windows.Forms.MessageBoxEventArgs e)  
{  
…

Signal progType = \_controller.IOSystem.GetSignal(“goDataSetNo”);  
progType.Value= Convert.ToInt32 (progNum);  
progType.Dispose();  
…  
}

public void CheckInfo()  
{  
signal1 = \_controller.IOSystem.GetSignal(HomeSignal);

if (signal1 == null)  
{  
GTPUMessageBox.Show(this, null, “Please Set Key signal”);  
InHome = 0;  
}  
else  
{

digitalSig = (DigitalSignal)signal1;  
digitalSig.Changed += new SignalChangedEventHandler(digitalSig\_change);

}  
}  
public void digitalSig\_change(object sender,EventArgs e)  
{  
this.Invoke(new ABB.Robotics.Controllers.IOSystemDomain.SignalChangedEventHandler(this.UpdateUI), new Object { sender, e });

}  
private void UpdateUI(object sender, SignalChangedEventArgs e)  
{  
SignalState state = e.NewSignalState;  
float val = state.Value;  
if (val==1)  
{

InHome = 1;  
}  
else{

InHome = 0;  
}

}  
protected override void Dispose(bool disposing)  
{  
if (!IsDisposed)  
{  
try  
{  
if (disposing)  
{

\_controller.Dispose();  
digitalSig.Changed -= new SignalChangedEventHandler(digitalSig\_change);  
signal1.Dispose();

}  
}  
finally  
{  
base.Dispose(disposing);  
}  
}  
}

…

pls give sme ome suggestion? thanks a lot.:grinning:  
BR//alan

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [May 20, 2009, 9:06pm UTC](https://tech-community.robotics.abb.com/t/taf-exe-error/2783/2 "2009-05-20T21:06:03Z")

</div>

Hi Alan,

I was confused:

- What is causing the error: your application or the ControlPanel View?
- You mention that it works OK, but then it does not.

In the Dispose method, try to dispose the controller instance at the end.

---

<div class="post-metadata">

**Author:** ![alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alan](https://tech-community.robotics.abb.com/u/alan)\
**Post date:** [May 21, 2009, 1:59am UTC](https://tech-community.robotics.abb.com/t/taf-exe-error/2783/3 "2009-05-21T01:59:16Z")

</div>

hello,  
sorry my description confused u.  
I have try to open another windows like INPUT and output or others buttion in real GTPU main interface, it’ no effection for the RAB application. just when I press control panel-\> configration and system will display the error message.I can’t see IO configration in real GTPU.  
control panel-\> configration view will lead to the problem  
BR//alan

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [May 21, 2009, 8:40pm UTC](https://tech-community.robotics.abb.com/t/taf-exe-error/2783/4 "2009-05-21T20:40:36Z")

</div>

That is strange ..

- Have you tried to create a new system?
- Can you share a back-up in order to reproduce the problem?

BR

---

<div class="post-metadata">

**Author:** ![alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alan](https://tech-community.robotics.abb.com/u/alan)\
**Post date:** [June 8, 2009, 10:02am UTC](https://tech-community.robotics.abb.com/t/taf-exe-error/2783/5 "2009-06-08T10:02:55Z")

</div>

now, it’s done. problem is memory leak, thanks all
