I have a feature that is invoked from a menubar called "Backup Data". This feature will save the database to a user specified location using a shell script. Sometimes, this database is very large, so rather than have the program just lock up, I want to display a little window that says "Backing Up…". This all worked in older version of Xojo, but now I'm running the latest version, and I'm having a very strange problem. The backup window no longer shows up, UNLESS I display a MsgBox beforehand. See my code below:
dim w as new winBackingUp w.show s=new shell s.execute "cd "+f1.parent.shellPath+" && zip -r "+f2.shellPath+" "+replaceAll(f1.name," ", "\ ") do until s.IsRunning=false loop w.close
This code used to work. But in the new Xojo it does not. The winBackingUp NEVER shows. I've tried many, many different tweaks and tests, but I cannot ever get it to show, UNLESS I add a debug MsgBox to the code. See code below:
dim w as new winBackingUp w.show msgBox "is window showing?" s=new shell s.execute "cd "+f1.parent.shellPath+" && zip -r "+f2.shellPath+" "+replaceAll(f1.name," ", "\ ") do until s.IsRunning=false loop w.close
When I run that code, the MsgBox pops up, AND the winBackingUp window is showing. It works perfectly. But obviously I can't have a MsgBox popping up. When I remove that MsgBox line, the winBackingUp window never shows.
This is driving me crazy. Anyone have any idea what's going on here? Is it a bug in Xojo? I appreciate any help you can provide.