RobotStudio event

FP SDK 5.14 - Taf.exe error

Hello,
i'm developed a FP app. with FD SDK 5.14 (and the controller is IRC5 with 5.14 roboware installed).
In past i had many memory leaks but I'm resolved it by hyper terminal connection with "Trace" code insert in my custom class.
But the problem now is another. Now there aren't message on terminal beyond those that I had generate by "Trace" class, in particular when i close my app. on FP.
To the first launch on there are all ok, and all working good, but if i close my app. and after some time i re-launch this from "ABB" panel after load (correctly load i think, without error on hyper terminal) if i press "ABB" button or i close my app. on hyper term. I receive this message: "[fp]: ~TpsControl() : 'EasyFlex.GeneralStatusTab' [177826]" (the number inside [] is not constantly) and on FP screen appear the error that I put here with this screenshot:


image


I click on "Details":

image
image

"GeneralStatusTab" is one of my custom class.
This error appear only to 2th launch of my application and some time when i click on "Quit" the "Taf" error disappear and all working good also if i re-launch my app. (and never reappear) but some time on hyper term i receive this long message and the error and never disapper also if i re-click on "Quit" or on "Debug":

"[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437029)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437038)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437045)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437050)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437055)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437060)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437065)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437070)
-------------------------------------------
[fp]: Exception in Dcl.Base::_restartMessageThreadHandler. System.Threading.Thre
adAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.ExceptionHelp._restartMessageThreadHandler()

[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at _hold2RunHandler in ABB.Robotics.Tps.Controls.TpsExecute
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Tps.Controls.TpsExecute._hold2RunHandler()

END (at 437106)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437112)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437117)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at System.Threading.EventWaitHandle.WaitOne()
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437012)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at Work in ABB.Robotics.Dcl.Internal.ThreadPool+Worker
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.ThreadPool.Worker.Work()

END (at 437126)
-------------------------------------------
[fp]: -------------------------------------------
A fatal exception has occured:
ExceptionType: ABB.Robotics.InternalException
Caughtat Main in TafApp.cs
Message: ThreadAbortException

System.Threading.ThreadAbortException: ThreadAbortException
   at System.Windows.Forms.Application.Run(Form fm)
   at ABB.Robotics.WinCore.TPAppFwk.MainFrame.Start()
   at ABB.Robotics.WinCore.TPAppFwk.TafApp.Start()
   at ABB.Robotics.WinCore.TPAppFwk.TafApp.Main(String[] args)

<--

 ABB.Robotics.InternalException at Start in ABB.Robotics.WinCore.TPAppFwk.MainFr
ame
   at ABB.Robotics.Dcl.ExceptionHelp.ReThrowException(String objStr, String meth
od, Exception exception, String[] additionalinfo)
   at ABB.Robotics.Dcl.ExceptionHelp.GenerateException(String objStr, String met
hod, Exception exception, String[] additionalinfo)
   at ABB.Robotics.Dcl.ExceptionHelp.GenerateException(Object obj, String method
, Exception exception, String[] additionalinfo)
   at ABB.Robotics.Dcl.ExceptionHelp.GenerateException(Object obj, String method
, Exception exception)
   at ABB.Robotics.WinCore.TPAppFwk.MainFrame.Start()
   at ABB.Robotics.WinCore.TPAppFwk.TafApp.Start()
   at ABB.Robotics.WinCore.TPAppFwk.TafApp.Main(String[] args)

END (at 437150)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at GetEvents in ABB.Robotics.Dcl.Internal.EventServer
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.EventServer.GetEvents()

END (at 437956)
-------------------------------------------
[fp]: -------------------------------------------
A handled exception has occured:
ExceptionType: System.Threading.ThreadAbortException
Caught at GetKeyEvents in ABB.Robotics.Dcl.Internal.KeyServer
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.KeyServer.GetKeyEvents()

END (at 442242)
-------------------------------------------
[fp]: -------------------------------------------
We have a hidden exception:
ExceptionType: System.Threading.ThreadAbortException
Caught at GetKeyEvents in ABB.Robotics.Dcl.Internal.KeyServer
System.Threading.ThreadAbortException: ThreadAbortException
   at ABB.Robotics.Dcl.Internal.KeyServer.GetKeyEvents()

END (at 442265)
-------------------------------------------
[fp]: [Dcl.KeyServer] GetKeyEvents() Exception: ThreadAbortException
[fp]: ~TpsControl() : 'EasyFlex.ServicesTab' [442311]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.ListBox' [442365]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TextBox' [442372]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442374]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442375]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442380]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442383]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442394]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442396]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442397]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442399]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442400]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442402]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442409]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442410]
[fp]: ~TpsControl() : 'EasyFlex.ToolsTableTab' [442412]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.ListView' [442415]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442417]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442441]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442443]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442444]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442471]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442473]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442474]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442476]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442478]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.BarGraph' [442480]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.BarGraph' [442484]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442487]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442488]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442494]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.NumericUpDown' [442503]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442505]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442507]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442509]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442511]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442512]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442514]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442516]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442517]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442524]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442526]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442527]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442529]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442530]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442532]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442533]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442535]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442537]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442539]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442541]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442542]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442544]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442546]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442548]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442557]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442564]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.ListView' [442566]
[fp]: ~TpsControl() : 'EasyFlex.ToolsTableTab' [442568]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442570]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442571]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442573]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442575]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442576]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442578]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442580]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442581]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442583]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442589]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442591]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442593]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TextBox' [442595]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.ListBox' [442597]
[fp]: ~TpsControl() : 'EasyFlex.ServicesTab' [442599]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Led' [442602]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442604]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442605]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442607]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.Button' [442608]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442610]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442612]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442614]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.BarGraph' [442622]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.BarGraph' [442623]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442625]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442627]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442628]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.NumericUpDown' [442630]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442632]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442632]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442636]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442637]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442639]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442640]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442642]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442644]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442646]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442648]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442656]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442658]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442660]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442661]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442663]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442665]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442667]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442669]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442671]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442672]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442674]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442676]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.TpsLabel' [442678]
[fp]: ~TpsControl() : 'ABB.Robotics.Tps.Windows.Forms.PictureBox' [442680]
[fp]: ~TpsControl() : 'EasyFlex.GeneralStatusTab' [442683]
"


Some people have some idea about this???

tnx and best regards Emanuele.
John Wiberg2011-05-30 16:56:08

Comments

  • - Do you have events connected to the IRC5?
    - Are you responding to some of these events while closing the application?

    - Are you creating thread?

     

    BR
    Carlos Martinez
    ABB
  • - Yes there are many event connected on IRC5 but i unsubscrive it by ITpsViewActivation.Deactivate() method, and init to dispose of my custom object in ITpsViewSetup.Uninstall().
    - Maybe some event is captured while closing app. but this is a strange behavior because the first called method when closing a app. is ITpsViewActivation.Deactivate().
    - There isn't explicit thread beyond those by Invoke method called in event captured.

  • Can you create a simple screen with this error? That would help to track the error.
     

    BR
    Carlos Martinez
    ABB
  • Hi,
    excuse me about my hiding, but I had too many things to do last month...
    About simple screen: I have tryed to replicate the error on a simple VS project whit some controls, signals and RapidData, but always all working good.
    Also about my principal project, I tryed to do some changes when Dispose method was called (to insert a explicit dispose method call for all my graphic control, also if they was present in control collection, in FP SDK guide is wrote to not do it, yea I using ...control.ADD method when create my graphic object), and all working good, without error on console and without strange Taf error!!

    Now I had a enhancement of version and I tryed to remove all explicit dispose call about graphic controls, and I had verified that all working good whitout Fp and Taf errors. Is mistery of life... !? Smile

    If I'll have some news about Taf error I'll post some more information about it.

    Apologies
    Emanuele



  • Not a problem.
     
    Let us know how this goes
     
    BR
    Carlos Martinez
    ABB