Subject | Re: [firebird-support] Using Zeos 7 and FB 2.5, how do you see in main thread changes made in background thread |
---|---|
Author | Mark Patterson |
Post date | 2015-10-09T02:10:39Z |
On 9 October 2015 at 11:52, Mark Patterson <mark.aurelius@...> wrote:Thanks for the suggestion. I wrote this procedure, after a bit of avoiding exceptions with autocommit mode and the methods:procedure TdFBZeos.Refresh;beginZConnection1.AutoCommit := false;ZConnection1.Commit;ZConnection1.AutoCommit := true;ZConnection1.StartTransaction;end{ Refresh};I call it as soon as the background thread has fininshed, but I still cannot see the tables I add until I rerun the program.I do see the new tables I create if I do this in that Refresh method:ZConnection1.Disconnect;ZConnection1.Connect;That is a bit drastic, but it will do for this case.---Mark