NTDLL.DLL error when calling mstable.open, from an inherited form

NTDLL.DLL error when calling mstable.open, from an inherited form

Hi All,

Using SDAC 10.3 and Delphi 11.3:

I have a form, with 2 MsTable, which it has inherited from a standard form. On the standard, the Connection is pointing to a DB module with the MSConnection, but no tablename.

In the inherited form, I set the tablename of the 2 tables at designtime, and in formshow, I call Inherited and in the FormShow of the standard form, I call mstable.open. 

It fails without any visual errors and the application terminates. I Windows Eventviewer, I see the error being in ntdll.dll. 

The strange part is that in a main module, where I open the inherited form, I open a number of tables, using the same msconnection, without any problems. 

And in a test program where I open the mstable directly (meaning not in an inherited form), it opens without problems.

Do anyone have a suggestion of what causes this behavior and even better, have proposals to how to fix it ?

Regards
Soren