New topic: Two processes using the same database connection.
<http://forums.realsoftware.com/viewtopic.php?t=34366> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message JustSomeGuy Post subject: Two processes using the same database connection.Posted: Wed Jun 23, 2010 11:30 am Joined: Fri May 11, 2007 11:35 am Posts: 901 I think I found a bug in my application. I have a MySQLCommunityServer connection in my application. I have a timer that queries the database for changes once in a while. I have a thread that populates the database from a tcp/socket server. That server also communicates with the same database connection object. Once in a while I see my application come up with an error saying "The database server has gone away." Is it an error to try to use the same connection object by a thread and a timer event? or should the connection object be able to survive that kind of usage? _________________ 6502 Assembler on Steroids Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
