Closed OH1KH closed 1 year ago
One user reported mysterious bug: When starting Cqrlog it does not initialize rig. That was true, I could reproduce that.
It happens when TRXControl window does not open during start. Then rig init fails. If TRXCwindow was open previously, and so opens during startup, rig is initialized.
Bug lays on dData.pas: procedure TdmData.OpenDatabase(nr : Word); where Cqrlog tries to initialize rig first time. It calls frmTRXControl.InitializeRig; There it does not get rig model and exits. When the same procedure frmTRXControl.InitializeRig is called again when TRXControl window opens a bit later it gets the rig model !!! But if TRXControl window is not opened at all in startup rig stays uninitialized.
I can put a breakpoint there and see that initializerig procedure is really run at first time, but when I put a writeln command there it does not appear ever! But when initializerig is called again during TRXControl window open then also the writeln works!
Why?
When I did run this "fix4rigs" (outside lazarus-ide) it worked ok for me. Even when TRXControl window stayed closed. On the other hand my Alpha test soure that includes same "fix4rigs" patch did not work(outside lazarus-ide).
It might be some kind of time critical moment when database just opens.
This needs investigation now and I will close this pull request until I know the reason (or create a workaround if no proper reason is not found).
Squashed commit of the following:
commit 4f59d7e6c45a9637fb8cfe191ef610016c36e545 Author: OH1KH oh1kh@sral.fi Date: Mon Nov 28 09:08:38 2022 +0200
commit 46d4240d82d086c51500499346c00c7c1f6e5028 Author: OH1KH oh1kh@sral.fi Date: Tue Oct 25 19:50:16 2022 +0300
commit e63e8e1109a9d736275082281bf97abb3608b11d Author: OH1KH oh1kh@sral.fi Date: Fri Oct 21 16:13:40 2022 +0300
commit 25a8ec3f3932e5d65287bbee1e6d6276c50ad9b4 Author: OH1KH oh1kh@sral.fi Date: Thu Oct 20 14:22:18 2022 +0300
commit 8def318afad6bf103bdd36169e2f51054355f767 Author: OH1KH oh1kh@sral.fi Date: Tue Oct 18 10:52:52 2022 +0300
commit df0dff35d96c5929dc463b319faf3c2405e41aff Author: OH1KH oh1kh@sral.fi Date: Thu Sep 15 13:22:16 2022 +0300
commit e2f5ca64a9e9a7b549c22a233ae405fecb46b287 Author: OH1KH oh1kh@sral.fi Date: Thu Sep 15 10:25:13 2022 +0300
commit aa86ada4d5b929c76548176178d3168bbe481d59 Author: OH1KH oh1kh@sral.fi Date: Thu Sep 15 10:15:35 2022 +0300
commit b7a6b918ee50d45d75db07a59d2ebf96ca030150 Author: OH1KH oh1kh@sral.fi Date: Thu Sep 15 09:52:16 2022 +0300
commit d27f7727cc84942eb689d88bde7a0a807497b763 Author: OH1KH oh1kh@sral.fi Date: Wed Sep 14 18:31:39 2022 +0300
commit 9ef0a20b846d4941abf177fabfc1b96b504d70a3 Author: OH1KH oh1kh@sral.fi Date: Tue Sep 13 12:13:13 2022 +0300
commit a29e38cbdcc6fda06bed180dff260adeb740520e Author: OH1KH oh1kh@sral.fi Date: Mon Sep 12 19:11:25 2022 +0300
commit 35b878af5192dfb733d6f3cfd6bc8de5047029b2 Author: OH1KH oh1kh@sral.fi Date: Mon Sep 12 15:53:48 2022 +0300
commit b756151a6b126085a05f6cb3152937b79bfc8f85 Author: OH1KH oh1kh@sral.fi Date: Mon Sep 12 13:11:49 2022 +0300
commit f9f4a4369d9bb62323e66d019ee15ac060d4c58f Author: OH1KH oh1kh@sral.fi Date: Fri Sep 9 16:29:53 2022 +0300
commit 934694ea63984038f812206b6d23b21f7d7222c3 Author: OH1KH oh1kh@sral.fi Date: Fri Sep 9 13:33:02 2022 +0300
commit 1553f48abb831695eb1736cd2a7993e3aac737a4 Author: OH1KH oh1kh@sral.fi Date: Thu Sep 8 12:49:22 2022 +0300
commit 7631a8eed152e4aeb348f9b3b63df20af379fb74 Author: OH1KH oh1kh@sral.fi Date: Thu Sep 8 11:37:03 2022 +0300
commit 3d0ea64f5df36bf0e4fe802e6fe56760a8378608 Author: OH1KH oh1kh@sral.fi Date: Wed Sep 7 13:04:48 2022 +0300
commit 5fbd310db3b86215651e3392ba6fb319664662d6 Author: OH1KH oh1kh@sral.fi Date: Wed Sep 7 11:51:30 2022 +0300
commit 9cec1355498a2bf3a5a3ad6755ee87a4eb50093a Author: OH1KH oh1kh@sral.fi Date: Tue Sep 6 20:26:51 2022 +0300
commit 63dac701a59de76f4ae1a665cfe2e6216b4b4f5b Author: OH1KH oh1kh@sral.fi Date: Tue Sep 6 12:55:56 2022 +0300
commit 5d599f358f10b8194126cc1d5b4e9ecc386a673c Author: OH1KH oh1kh@sral.fi Date: Sun Sep 4 21:22:21 2022 +0300
commit 058b183166ea3728dfa5d8b3317e4bcbb2f68de0 Author: OH1KH oh1kh@sral.fi Date: Sat Sep 3 12:23:47 2022 +0300
commit c079448a1be01cc8faa5fc81f53ccf72b1c59ac0 Author: OH1KH oh1kh@sral.fi Date: Fri Sep 2 17:01:00 2022 +0300
commit d5e27773bb0ed541d9885f576f9f2597e98f4ebe Author: OH1KH oh1kh@sral.fi Date: Wed Aug 31 15:41:25 2022 +0300
commit 89a8eee812ee4426e1bb234f38d696fea71e2fe5 Author: OH1KH oh1kh@sral.fi Date: Tue Aug 30 16:22:44 2022 +0300
commit 374624a03bf7a9dd1b067063fa510c95610fb3a0 Author: OH1KH oh1kh@sral.fi Date: Sun Aug 28 17:05:57 2022 +0300
commit d4b5189aa78a486a0e279cd2f309d99b5375bdbe Author: OH1KH oh1kh@sral.fi Date: Fri Aug 26 21:25:09 2022 +0300
commit 64146a66c17f89803de4e0d1b5dd29d64956a576 Author: OH1KH oh1kh@sral.fi Date: Fri Aug 26 12:03:50 2022 +0300
commit 1814733715c10505ed5592154ebf290f3efd4fda Author: OH1KH oh1kh@sral.fi Date: Thu Aug 25 13:11:13 2022 +0300
commit a1662e24845ed66247aeffc625be8b00703d1e78 Author: OH1KH oh1kh@sral.fi Date: Thu Aug 25 10:54:40 2022 +0300
commit a25ddbe0f47087db9914d33e267bef250d6de113 Author: OH1KH oh1kh@sral.fi Date: Tue Aug 23 20:12:47 2022 +0300
commit 011fa17faf0a7b8cb9fa2810b91933729e11ec94 Author: OH1KH oh1kh@sral.fi Date: Tue Aug 23 19:45:17 2022 +0300
commit 8c53ab313a8a4783c5e6facea3f918bda820c6bb Author: OH1KH oh1kh@sral.fi Date: Tue Aug 23 19:05:40 2022 +0300
commit baaeb011748b7125ab4a6c6fbf6a4766f467a89e Author: OH1KH oh1kh@sral.fi Date: Tue Aug 23 15:50:04 2022 +0300