Applies to: Clarion 5.5 (C55), ABC, 32-bit, ODBC driver to Mimer SQL Engine on Windows 2000 SP4, as reported.
Problem
One line in the CloseWindow embed of a Select browse disconnects the app from the ODBC back end: DataSourceNode{Prop:Disconnect}. In 7 of the poster's apps the line was fine. In 3 apps the same line in the same place raised "The instruction at 0x008623c2 referenced memory 0x0000006b. The memory could not be read" (later also "Program Exception Access Violation"). With the line commented out the apps ran, but a superfluous connection stayed open.
Solution
- Do not disconnect in the CloseWindow embed. ThisWindow.Kill() runs after Event:CloseWindow, and the file manager closes the files there, so the connection was already gone when the files were closed.
- Put the Prop:Disconnect line in the Window Kill embed at a priority of 7300 or higher. Priority 7300 is after the closing of the files.
- Moving the line to Window Kill at the default priority did not cure it: the poster first thought it did, then the error came back. Equal priorities and a re-import of the working procedure through TXA changed nothing.
Caveats
- The thread does not name the generated code behind priority 7300; it only says it comes after the file close.
- A suggestion that the threading problem with the Clarion message box was involved was not confirmed.
Today (2026)
The reasoning (disconnect only after the files are closed) should still hold on current builds; not re-tested. The priority number comes from a 2004 reply and may differ in a current template set.
Sources: Matt G. (Apr 2004, the question and the result), Bjarne H., John E. (Apr 2004) in softvelocity.clarion.databasedrivers.