IDE error when loading up Apps after previous app was unloaded

I get this error on my laptop if I try to open an app on the IDE when an existing app was open The new app opens partially then crashes:-

Traceback (most recent call last):
  File "AppStudio.pyw", line 459, in <module>
  File "wx\", line 2237, in MainLoop
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

wondering if it’s ‘memory clearing’ failure ?
Anyway, something for you guys to look at.

Can you give me a step by step to reproduce this?

It’s a difficult one.
Ultimately it come down to system resources (CPU/ Memory) I think.
The same project opens ok on my Desktop.
The laptop struggles…
The laptop isn’t a bad one…Intel(R) Core™ i7-6500U CPU @ 2.50GHz 2.60 GHz
8GB ram

My projects tend to be quite large… (35 forms / lots of code)

What happens if you have only one or two tabs open?

Do you mean Form tabs?
They all open automatically at start up…
I’ve not considered manually closing them individually…
I’ll give that a go…

There’s an option on the View menu to close all other tabs at once.

Ok, now I feel a bit silly ! :smile:

I’ve now used the View > Close Other Tabs
Then I closed the project and opened again and now I can open the ‘problem’ form which was one of the last 2 to load up before.
This has resolved the issue.
One thing which I could suggest is that on loading up the IDE should it always open the last project or should it open up with no project open?
Moot point now, i guess, now that I can sort out the sluggish behaviour, lol.
Just goes to show how something that you’ve been working with for years can surprise you, sometimes with mundane features you didn’t know existed!
I used ‘Close Other Tabs’ in Chrome all the time, which makes it even worse for me!

Anyway, thanks for the help. will make things much better, I think!