sokel Posted January 6, 2015 Share Posted January 6, 2015 Hi there! Can someone look at my solution if it might have concurrency issues with Sqlconnection: 1. Dbxexpress connection on Unimainmodule 2. One Sqldataset and one dataprovider on a separate datamodule. 3. Business logic in a separate unit 4. On unimainmodule create ; an instance of datamodule and an instance of datamodule are created and freed on unimainmodule destroy. 5. On datamodule create, Sqldataset sqlconnection is set to the sqlconnection from unimainmodule and on datamodule destroy, Sqldataset sqlconnection is set to nil 6. One Sqldataset and one dataprovider are shared among clientdatasets on datamodule. Can someone look at this scenario and tell me if there will be concurrency problem? Thanks Quote Link to comment Share on other sites More sharing options...
zilav Posted January 8, 2015 Share Posted January 8, 2015 Use Uni's DataModule, UniGui will automatically create and destroy them for each session. 1 Quote Link to comment Share on other sites More sharing options...
sokel Posted January 8, 2015 Share Posted January 8, 2015 Thanks Zilav Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.