I have an app that works fine... Porting it to be implemented as a DLL. I have a datamodule that has my Database and TTable components on it... In Design mode, the Database is set to Active. Tables point to the database, they are set to active. I can right click on the tables, go the field editor, and see all the columns, so I know the structure/properties are set up fine....
The problem is at run time... It gives me an AV on this line...
if MyDataModule.DB1.Connected = True then
ShowMessage('Active')
else
ShowMessage('Not Active');
I have seen hints on the web that there is something special that needs to be done to use a Datamodule inside a DLL, but I am not getting anything to work.
Specific error message is:
Access Violation at address 06D4E22E in module 'DocAssistCom.dll' Read of address 0000070'
AV,access violation, 'error, orexception`, the very next thing they should start typing is the exact error message you received, including any memory addresses or error codes. Saying "it gives me an AV" is absolutely useless for people trying to help you solve your problem; the error message can speed things up tremendously (even if it's meaningless to you), getting you a solution much faster. Thanks. :) - Ken White