Database.Connect callback is not invoked until i unload plugin?
Hello,
I am following the example from the docs: Code:
Database hDatabase = null; In the GotDatabase function I am calling "PrintToServer", and also I am inserting a row to the db. I monitor both the server console, and the table in the db and nothing happens UNLESS I unload the plugin. What am I doing wrong? |
Re: Database.Connect callback is not invoked until i unload plugin?
Close connection by deleting Handle.
Code:
delete hDatabase ; |
Re: Database.Connect callback is not invoked until i unload plugin?
This sounds like there is something wrong with the DB thread on your server.
When you unload the plugin SM shifts all the pending threaded operations to happen on the main game thread in order to block the plugin unloading until they're complete. |
All times are GMT -4. The time now is 11:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.