Bug #83447 Cannot access a disposed object. Object name: 'ProgressBar'
Submitted: 19 Oct 2016 15:49 Modified: 19 Oct 2016 16:29
Reporter: Colton Griffin Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.3.7, 8.0.20, 8.0.23, 8.0.32, 8.0.36, 8.0.38, 8.0.41 OS:Windows (Windows 10)
Assigned to: CPU Architecture:Any

[19 Oct 2016 15:49] Colton Griffin
Description:
Error message came up when I was canceling an import of data in a csv file to a table. 

MySQL Workbench has encountered a problem
Cannot access a disposed object.
Object name: 'ProgressBar'.

How to repeat:
Right click
Import data 
Select csv
click through and start import
Click cancel half way through
[19 Oct 2016 16:29] MySQL Verification Team
Thank you for the bug report.

Exception = System.ObjectDisposedException
Message = Cannot access a disposed object.
Object name: 'ProgressBar'.
FullText = System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'ProgressBar'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at MySQL.Forms.ViewWrapper.show(View* backend, Boolean show)
   at boost.function0<bool>.()(function0<bool>* )
   at TimerHandler.timer_tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[8 Sep 2017 5:27] Chiranjeevi Battula
http://bugs.mysql.com/bug.php?id=87698  marked as duplicate of this one.
[8 May 2020 18:17] tristan bergh
This bug is still present, Windows 10, cancelling a Table Import Wizard job, which was running really, really slowly (10 records per minute). 

2020-05-08.
[26 Jun 2020 12:30] MySQL Verification Team
Bug #99734 marked as duplicate of this one.
[19 Oct 2020 6:31] Abdulaziz Fayez
Just got the same situation.

I imported a CSV to MySql workbench, very slow process (30MB csv - 1h progress and not even 50%).. so half way i stopped the process and i got an error "Cannot access a disposed object. Object name: '_ProgressBar'.

Next thing, MySql workbench is not responding.

using latest MySql workbench as of 19/10/2020 (v. 8.0.21 build 16448441 CE -64bit)

Thanks.
[16 Mar 2021 12:03] MySQL Verification Team
Bug #102889 marked as duplicate of this one.
[24 Jun 2021 20:11] Kimber Barton
Note that you also get this message if your import fails and you cancel.
[9 Dec 2021 12:22] MySQL Verification Team
Bug #105804 marked as duplicate of this one.
[3 Mar 2022 13:20] MySQL Verification Team
Bug #106620 marked as duplicate of this one.
[29 Mar 2022 10:56] MySQL Verification Team
Bug #106860 marked as duplicate of this one.
[20 Aug 2022 15:28] NOT_FOUND Rhodes
still experiencing this bug / error message.
[19 May 2023 11:34] MySQL Verification Team
Bug #111071 marked as duplicate of this one.
[1 Jun 2023 3:49] MySQL Verification Team
Bug #111231 marked as duplicate of this one
[12 Jul 2023 22:57] Mike L
Experiencing same bug... 
Windows 11 Pro for Workstations build 22621.1992
MySQL Workbench version 8.0.33 build 2947366 CE (64 bits)
Here is the Action Output I'm getting
17:33:28	DEALLOCATE PREPARE stmt	Error Code: 1243 Unknown prepared statement handler (stmt) given to DEALLOCATE PREPARE	

Also, window that pops up titled "MySQL Workbench Unexpected Error" states "Cannot access a disposed object." Object name: '_ProgressBar'.

I have to restart workbench before I do another Data Import or it will move at a glacial pace as described in other comments.
[21 Jul 2023 0:46] Nor Effah Aina Safari
I'm also experiencing the same bug as of today (21st July 2023). My MySQL Workbench version is 8.0.33.
[9 Aug 2023 4:13] MySQL Verification Team
Bug#112000 marked as duplicate of this one
[2 Nov 2023 11:56] MySQL Verification Team
Bug #112932 marked as duplicate of this one.
[6 Nov 2023 11:46] MySQL Verification Team
Bug #112966 marked as duplicate of this one.
[20 Mar 2024 12:41] MySQL Verification Team
Bug #114415 marked as duplicate of this one.
[10 May 2024 12:36] MySQL Verification Team
Bug #114950 marked as duplicate of this one.
[22 May 2024 12:48] MySQL Verification Team
Bug #115074 marked as duplicate of this one.
[19 Jun 2024 12:43] MySQL Verification Team
Bug #115345 marked as duplicate of this one.
[11 Sep 2024 11:54] MySQL Verification Team
Bug #116061 marked as duplicate of this one
[24 Sep 2024 3:42] MySQL Verification Team
Bug #116205 marked as duplicate of this one
[12 Mar 12:17] MySQL Verification Team
Bug #117679 marked as duplicate of this one