@@ -291,7 +291,7 @@ public void SubscribeToCommandBarAdapter(VbeCommandBarAdapter commandBarAdapter)
291291 AddRunButtonsToAccUnitCommandBar ( accUnitCommandbarAdapter ) ;
292292 }
293293
294- VbeIntegrationManager . VbeAdapter . MainWindowRButtonDown += OnVbeMainWindowRButtonDown ;
294+ // VbeIntegrationManager.VbeAdapter.MainWindowRButtonDown += OnVbeMainWindowRButtonDown;
295295
296296 RegisterHotKeys ( ) ;
297297 }
@@ -448,12 +448,15 @@ private void ApplyMaskedPicture(CommandBarButton button, Bitmap image, Bitmap ma
448448
449449 private void RegisterHotKeys ( )
450450 {
451+ //bug: 64 bit subclass => https://github.com/AccessCodeLib/AccUnit/issues/78
452+ /*
451453 var hotkeys = VbeIntegrationManager.VbeAdapter.HotKeys;
452454 var hotKey = hotkeys.RegisterHotKey(HotKey.ModKeys.Control | HotKey.ModKeys.Shift, (uint)Keys.T);
453455 hotKey.Pressed += RunCurrentTestsHotKeyPressed;
454456
455457 hotKey = hotkeys.RegisterHotKey(HotKey.ModKeys.Control | HotKey.ModKeys.Shift, (uint)Keys.A);
456458 hotKey.Pressed += RunAllTestsHotKeyPressed;
459+ */
457460 }
458461
459462 private void RunCurrentTestsHotKeyPressed ( object sender , HotKeyEventArgs e )
@@ -507,6 +510,7 @@ protected virtual void Dispose(bool disposing)
507510
508511 if ( VbeIntegrationManager != null )
509512 {
513+ /* issue #78 (sublass vbe main windows)
510514 try
511515 {
512516 VbeIntegrationManager.VbeAdapter.MainWindowRButtonDown -= OnVbeMainWindowRButtonDown;
@@ -519,6 +523,8 @@ protected virtual void Dispose(bool disposing)
519523 {
520524 VbeIntegrationManager = null;
521525 }
526+ */
527+ VbeIntegrationManager = null ;
522528 }
523529
524530 TestSuiteManager = null ;
0 commit comments