My main application has a datamodule containing a TSQLConnection component. When I call a package from this application and try to create a transaction (StartTransaction(TD)) from within the .bpl, I receive an Access Violation. I am able to open a TSQLQuery from within the bpl to that same TSQLConnection, but not start a transaction. Does anyone know the proper procedure so I don't have to create a TSQLConnection inside all packages that I'm calling from the main application?

Recommended Answers

Have you seen this:
http://edn.embarcadero.com/article/27178
The data module example toward the end of the article may help you.

Jump to Post

All 2 Replies

that actually helped to some degree. I have discovered that the issue probably lies in that I am dynamically loading the BPL instead of statically including it with the application. When I recreated the project with the package statically linked, no error.

The question remains, what needs to be done differently when dynamically loading the BPL?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.