06-09-2010 09:26 AM
06-09-2010 09:30 AM
06-09-2010 09:46 AM
Why do you need to keep loading the same panel over and over? It is conventional just to load the panel once, and then use HidePanel() and DisplayPanel() functions if required. If you are not calling DiscardPanel() between all the loads than you might be running into memory issues, which could cause the system to slow down considerably.
JR
06-09-2010 11:05 AM
Thanks. That probably is a better way of handling the panels. I inherited the code and it was originally built for Windows 95 with CVI5 (something). I think the memory was at a premium then. I needed to load language panels on the fly so I just replaced all the LoadPanels with LoadLocalizedPanels.
But I think I know why the LoadLocalizedPanels function is taking so long to open after a few hours of being idle. I do my development from a network directory and I believe there are some file location latency issues here. When I run the program over night from the local hard drive the panels open right away.
I’ll try the HidePanels function and see how much more memory the exe uses.