Unable to load project

Hello everyone,

I have one project which I’m developing in Xojo 2017r3. Until yesterday, it was working normally, but after XOJO became slow and all actions were delayed, I restarted PC, and cleared cache from %APPDATA% and %TEMP%.
After that, I tried loading this project, and XOJO hangs totally. In most times, it is not responding for few minutes, and after that, something wrong happens and it affects entire machine, my screen and other applications start flickering. At the same point, loading progress bar becomes Indeterminate.

Trying to figure out what is happening, I found out that problem could be in file for Main Window. It is in xojo_xml_code, and entire window is 3.65 MB. There is no any syntax error in this xml, and I tried loading project using these versions: 2017r3, 2018r3, 2021r3, 2023r2, 2025r1, with very similar outcome.
Main window has 387 controls, and if I remove all of them, I can load project. After that, I tried with 50 controls, and each time, it loaded. Event if I remove any 10+ controls, project will be loaded.

I was wondering, what could I do next to load full project? Is there a limit in number of controls on single Window?

Tried loading project on 2 machines, same happens on both of them.

I have one project, where Main Window has 508 controls, but file is smaller for 30KB than this one, and that project normally loads.

My five cents… i wouldn’t spend too much time or resources on solving the issue when the version you are running is 8 years old… For so many reasons.

1 Like

Version 2017r3 is the last version where we didn’t have too much flickering or slow rendering while changing panels. Since we have a lot of custom controls, even when they are in ContainerControl, it is just slow.
Didn’t try all versions after 2023 since it takes a lot of time to migrate 50+ projects which are using shared resources.

1 Like

First, I was trying to edit Window’s xml, to make temporary copy and recreate them back inside of ContainerControl. But, doing that would take a lot of time, since Control is not linked to ControlBehavior and ControlIndex cannot have any gaps in order, otherwise, XOJO would just encounter fatal error on load.

At the end, I managed to load project. First, edited project to remove MainWindow reference, then loaded project normally. After that, I imported Window into project and it worked immediately.
Now, I’m moving a lot of controls to CC, so it’s not that big anymore.

YOU DO NOT DISCLOSE THE RUNNING OS, the computer specs, etc. all in all you have far too many controld in a single window.``Can”t you slit them intxo windows ?
Boor must be on local SSD and have plennty rooms to wotk wwith.

I am working on Windows 10 (Build 19045.5608), i9-10900, 64 GB RAM, Quadro P2000 and AORUS NVMe Gen4 SSD 1TB as data drive.

After loading project, I did some faster changes, and moved some controls to ContainerControl, so MainWindow now has ~300 controls instead of 387. Next; i’m going to remove Timers and Threads from interface, and create them on runtime, there’s a lot of them too.