Trados Studio bug "cannot access a disposed object" doing a search after opening Studio

Opened a project in Studio 2017 SR1, editor view opens, then clicked Ctrl-F to Find.

Got an error alert. XML below.

Probably a race condition because after closing this error alert, Ctrl-F works OK.

Best,

Jon

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<SDLErrorDetails time="29/09/2017 13:45:45">
<ErrorMessage>Cannot access a disposed object.
Object name: 'FindAndReplaceDialog'.</ErrorMessage>
<Exception>
<Type>System.ObjectDisposedException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
<ObjectName>FindAndReplaceDialog</ObjectName>
<HelpLink />
<Source>System.Windows.Forms</Source>
<HResult>-2146232798</HResult>
<StackTrace><![CDATA[ at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Sdl.TranslationStudio.Common.FindAndReplace.FindAndReplaceDialog.AdjustDialogSize()
at Sdl.TranslationStudio.Common.FindAndReplace.FindAndReplaceDialog.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi ,

    Maybe try a windows reset first in Studio. In the Editor View click on View -> Reset Window Layout

    If this doesn't help then try a full reset. Rename this folder (just add _old to the end or something, it's not important what you rename it to) and restart Studio:

    c:\Users\[USERNAME]\AppData\Roaming\SDL\SDL Trados Studio\14.0.0.0

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Hi Paul. Thanks for your reply. As I mentioned, the user just has to wait for Studio to initialize completely and the problem goes away, so no other workarounds should be necessary. I just think it's worth cleaning up the code so this can't happen.
    Best,
    Jon