Thank you.
Searching for MyConnection thread collision solution
Searching for MyConnection thread collision solution
For fast MySQL transaction speeds, I keep a MyConnection open at all times once my application starts but now I'm having problems due to accessing the same MyConnection with different threads. What are some solutions for this? Should I open and close the MyConnection after each set of transactions or should I set "connected" to false? I would think that opening and closing the TMyConnection would cause significant execution delays so I'm curios how other people handle this.
Thank you.
Thank you.
-
AndreyZ
Re: Searching for MyConnection thread collision solution
MyDAC is thread-safe, but the restriction is that you cannot use one connection (the TMyConnection component) in several threads, you must have a connection in each thread.