by Mike.Sheen » Fri Jan 25, 2019 9:45 am
Hi Stuart,
When a form closes, we persist the position, dimensions and window state (maximized, restored, and so on) into the table SY_FormSettings so when it is re-opened it will be put back in the same size and position and state.
This table has a foreign key constraint to SY_Forms.ClassName - and so the error you are getting would indicate the form's class name does not match what is in SY_Forms. We use GetType.ToString() on the form to determine the class name - so compare that to the entry in SY_Forms to ensure they match.
I think this problem might happen if the class name was renamed in your code at some point after the entry was created in SY_Forms. Hard to know without getting some hands-on with the database + plugin.
Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution