SqlDataAccess thread

I use SqlDataAccess to insert / query from an SQLite database. Everything worked fine until I added Threads in the mixture. Anyone know if SqlDataAccess is thread-safe?

I see messages indicating that removeDatabase is running when any of my code that calls:

Jan 9 09:54:14.352 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  QSqlDatabasePrivate::removeDatabase: connection '/accounts/1000/appdata/com.rubion.NetScanner.testDev__NetScanner8e1fec
79/app/native/assets/Databases/NetScanner.sq3' is still in use, all queries will cease to work.
Jan 09 09:54:14.352 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  QSqlDatabasePrivate::addDatabase: duplicate connection name '/accounts/1000/appdata/com.rubion.NetScanner.testDev__NetS
canner8e1fec79/app/native/assets/Databases/NetScanner.sq3', old connection removed.
Jan 09 09:54:14.411 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  Unsupported query type: 0
Jan 09 09:54:14.439 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  Unsupported query type: 0
Jan 09 09:54:14.524 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  Unsupported query type: 0
Jan 09 09:54:14.612 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  QSqlDatabasePrivate::removeDatabase: connection '/accounts/1000/appdata/com.rubion.NetScanner.testDev__NetScanner8e1fec
79/app/native/assets/Databases/NetScanner.sq3' is still in use, all queries will cease to work.
Jan 09 09:54:14.612 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  QSqlDatabasePrivate::addDatabase: duplicate connection name '/accounts/1000/appdata/com.rubion.NetScanner.testDev__NetS
canner8e1fec79/app/native/assets/Databases/NetScanner.sq3', old connection removed.
Jan 09 09:54:32.515 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default      0  LGM - The call to counters_register in LGMon failed at time = 786795746110662 ns with error -5.
Jan 09 09:54:44.845 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  QSqlDatabasePrivate::removeDatabase: connection '/accounts/1000/appdata/com.rubion.NetScanner.testDev__NetScanner8e1fec
79/app/native/assets/Databases/NetScanner.sq3' is still in use, all queries will cease to work.
Jan 09 09:54:44.845 com.rubion.NetScanner.testDev__NetScanner8e1fec79.387170505              default   9000  QSqlDatabasePrivate::addDatabase: duplicate connection name '/accounts/1000/appdata/com.rubion.NetScanner.testDev__NetS
canner8e1fec79/app/native/assets/Databases/NetScanner.sq3', old connection removed.

The application hangs for a few seconds, and then I see this in the console tab:

Process 387170505 (NetScanner) terminated SIGSEGV code=1 fltno=11 ip=781d71be(/base/usr/lib/qt4/lib/libQtSql.so.4.8.4@_ZN10QSqlResult19detachFromResultSetEv+0x9) mapaddr=000171be. ref=00000000 bdslot=1

Any ideas?

as far as I know, he is not thread-safe; as a workaround, you can use sqlworker to query the database, IE.

m_pSqlWorker = new SqlWorker(databasepath, mConnectionName, this);
m_pSqlConnection = new SqlConnection(m_pSqlWorker, this);

by different login for each different operation.

CMIIW

Tags: BlackBerry Developers

Similar Questions

  • JDBC 4.0 - 8 SQL Server version is not supported by this driver

    I use JBoss AS 6.1.0 Final and running using the JRE 6 included with jdk1.6.0_32.
     
    I need to connect to a MS SQL 2008 database and have downloaded the latest Microsoft JDBC drivers contained in sqljdbc_4.0.2206.100_enu.exe.
     
    I have copied sqljdbc4.jar to the default\lib folder and set up my DS etc.
     
    When my application tries to connect to the MS SQL database, I get;
     
    12:32:53, 064 WARNING [ISQLServerConnection] ConnectionID:1 ClientConnectionId: a0955e8d-226a-44e6-b8f8-b0217cd3cf47 Server major version: 8 is not supported by this driver.
    12:32:53, 080 Throwable WARN [JBossManagedConnectionPool] then that he was trying to get a new connection: null: org.jboss.resource.JBossResourceException: could not create a connection; -nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: SQL Server version 8 is not supported by this driver.) ClientConnectionId:a0955e8d - 226-44e6-b8f8-b0217cd3cf47)
     
    Some messages said that it was due to a bug in a previous JRE and upgrade to 32 would solve it!
     
    Any ideas?
     
    TIA.

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.technet.Microsoft.com/forums/da-DK/SQLDataAccess/threads

  • I get the error code that microsoft.jet.oledb.4.0 provider is not registered on the local computer

    I get the error code that microsoft.jet.oledb.4.0 provider is not registered on the local computer

    I have the 64 bit vista edition and can't find a way to get this program to run. Can someone help me please. I need this program for school

    http://social.msdn.Microsoft.com/forums/en/SQLDataAccess/thread/ded16d08-b98c-4130-a6af-d3df4061494c

    Read the information on the link above; and the link to the answer.

    See you soon. Mick Murphy - Microsoft partner

  • must enable msdtc on my sql server 2005 express edition running on windows vista

    I'm unable to find all the information on the activation / activate / start msdtc - distributed Coordinator of transactions in my sql server 2005 express edition. I need it to be able to use the operations in the asp.net application developed in c# and running on dot net Framework2.0

    Hello

    The question you have posted is related to SQL Server and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.msdn.Microsoft.com/forums/en-us/SQLDataAccess/threads

    You can also check the link given below with a similar question.

    http://social.msdn.Microsoft.com/forums/en-us/SQLDataAccess/thread/0573672f-48f5-4394-afd3-3f911a6f4e15

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to configure the ODBC Access on Windows 7 driver?

    The ODBC SQL Server driver watch Installer is already installed.  But my database is a local MS Access file.  I want to choose the Access ODBC driver, but it is not listed.  Yes, Access is installed.

    Is - this Windows 7 64-bit or 32-bit

    ... check if this works for you

    http://social.msdn.Microsoft.com/forums/en/SQLDataAccess/thread/685eacc1-A670-42d4-8392-924230fa90cb

    Try to search "odbcad32.exe" and run the file

    You can find the file that that lies on

    C:\Windows\SysWOW64\odbcad32.exe (if it is Windows 7 64-bit)
    and
    C:\Windows\System32 (if it's Windows 7 32 bit)

  • Thread of messages with false contacts

    I have a thread of messages which, since the installation of Sierra is showing the wrong contact and the mix of messages from the two contacts.

    It seems that this is because the two contacts work for the same company and have identical entries their: 'work' of phone field. If I remove the scope one of the contacts and Messages to restart, the thread returns to two threads separated by the correct contact.

    The two contacts have iPhones and different MOBILE numbers that show as being related to separate Apple ID I assume that before I upgraded, Contacts, or Messages has been able to use this information to treat them as separate persons. Also, I assume that's the way it should work.

    How do I get things to normal?

    Thank you very much

    Christian

    Hello

    Change/edit the name of the field map to read 1 or something that prevents the binding.

    Report it here http://www.apple.com/feedback/ (there is no one of the separated Contacts).

    22:00 Friday. September 30, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • Deleting an old thread

    A mod can please remove the following thread? Or, at the very least, delete the official names in the upper part and the response after the second answer?

    I deleted the e-mail program and he want to come back.

    In addition to many years old and useless, I don't want the display name associated with the post. The account associated with this post is no longer active and has been under a now defunct e-mail address, so it is impossible for me to connect you and redact my credentials or remove the post.

    Thanks for any help you can provide. It would be greatly appreciated.

    I reported to our guests, now it is them. Even if you had access to the account, you would not be able to edit or delete the post, you have 15 minutes to change.

  • Thread of mail IOS10

    I prefer how IOS9 mail works, no Adviser how to select a thread without developing all the emails to the right?

    I have HHHAAATTTE the way watch mail thread ios10. ios9 was so much more functional and effective!

  • iOS 10 Mail app - threads are impossible to read with style answer-everything Outlook (without quotes)

    Outlook and the Mail app both old showed you a list of e-mails in a thread; If you want to dive to an email, you must click on this email.

    The new view of thread is essentially impossible to use now, since there is no view that shows each email in a list. Instead, if reply - all on your e-mail service does not add to citing it vertically and mark a horizontal line between the contextual emails, you end up seeing the WHOLE thread in each individual e-mail. It's 100% fine if you also have a vision where you can see every email truncated in a list. But this is no longer the case.

    I'm going to have to cut the wires completely from my computer (Outlook) is impossible for me to read in the current state.

    100% behind you! Please Apple, can we have an option to make the threads as they were in the iOS 9? It was actually a useful feature. In iOS 10, it is completely impossible / a lot of your time!

    Even if the quirks have been developed and e-mails would collapse correctly it is always not very useful when you have long filaments (which, when you use mail app for email to work can happen in the course of a single day with 20-30 + emails).

  • View threads AND grouped by date/conversation

    Hello

    I try to have messages see the thunderbird grouped by date (with a thread on today, yesterday, last week, etc.) and within these threads, see email conversations. A conversation that began three weeks ago, but has received a new email today is expected to manifest itself in the thread today, but from the first email of the conversation.
    I did not understand if it is possible, as grouped by (Date) and Threads are mutually exclusive. Any ideas?

    Thank you

    As you say, it is there only one group so at the time. So I guess that your out of luck.

    You could fill a better bug report and see if one of the developers interested. https://Bugzilla.Mozilla.org/

  • Do not thread conversations

    no thread.

    just separate emails from the same topic scattered everywhere.

    I just restored by mozbackup.

    What gives?

    Paradive said

    no thread.

    just separate emails from the same topic scattered everywhere.

    I just restored by mozbackup.

    What gives?

    solved.

    UN/re-installing Conversations ended.

  • After the update 42, partial load in memory (Task Manager), but the software antivirus keeps thread bound to perform but only loads 2nd & subsequent.

    Manager tasks shows Firefox loaded as a service, but a of threads waiting to complete. There is no application shown in the Task Manager (which seems reasonable that Firefox has not loaded).
    There is no error message. The 'circle of rotation of microsoft"is going for a few seconds, then disappears as if the schedule.
    It happens after 2nd & subsequent charges after reboot. Firefox seems to work the first time after reboot. It happened only after upgrade to 42. Clean installation makes no difference. Chrome works OK
    Worked well up until the 42 update. Tried to do a clean install with the box to inform Mozilla erased.
    Maybe Firefox started using a port that is blocked by the antivirus? I don't get no logging for the virus scanner showing what it to be blocked. A comprehensive analysis reveals nothing.
    Operating system is Windows 10 (64-bit)

    Abandoned trying to actually find what is actually happening. Changed software virus scanner.
    I think (and this is just a guess) is that to integrate with windows update update 42 change the output method to the telemetry file the antivirus does not. It is perhaps that the antivirus cannot manage that file or property, but it does not record the fact, a failure of the antivirus.
    There is a hint of doubt in my mind when an upgrade causes a system that works to fail in a non traceable method.

  • 'Threading' has started on my incoming emails; How can I remove it?

    I want to see all my emails separately - not 'threaded' together in the subject line. I don't have a clue as to why - after years of use - thread just started a few days ago?

    Sort by view by Unthreaded

  • Please tell us how to remove the 'message thread function' in the column 'Object' of my Inbox.

    Hello!
    For some reason, the column of the object on the Inbox of my e-mail account now has the topics of conversation. I have no idea how the son got there - and you would appreciate the help in eliminating these threads.
    Thanks a lot for your help.

    In the main menu bar:
    View (Alt - V) - sort by - Unthreaded

  • If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?

    If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?
    (sometimes, someone answers my question, and I want to mark it as the solution and am not yet quite ready for the thread be closed...)

    If you still experience this issue, you can return to this thread.
    But, you must clear the flag solved .

Maybe you are looking for

  • 10.11.6 problems

    I'm having a lot of problems with my Mac mini to 2014 after update to 10.11.6. Including Internet, Mail and iTunes store connection. I have also found that the mini is running extremely hot. Some applications don't quit or Force Quit and the Mac don'

  • Satellite A305-S6916 - static noise on Skype

    I just got myself this laptop nice but the noise is killing me. I mean it's really annoying and when I try to connect with people on Skype, they hear not me, but there is static noise on the background that divert attention. Can someone help me? THnx

  • Recovery continues to request Recovery CD-ROM # 2 - satellite 1640CDT

    I'm trying to reinstall my original 1640CDT by Satellite since the Toshiba product recovery CD. After reading the first CD, it asks for the second and then continues to ask. The CD seems to be OK, as I can read it on another PC. If I insert a differe

  • Equium L40 - Vista - BSOD using remote desktop

    Hello I have been using my laptop to connect to an XP machine using remote desktop. In recent weeks, the laptop began to blue screen and stop. There is no reason to set, the only thing I noticed, is that if I have IE open on the satellite, it seems b

  • Non-Canadian VISA Gold card

    I'm trying an Imac to my kid of course College of gift but the apple store online at the Canada does not seem to accept a Visa card valid gold delivered to Oman by an international bank - HSBC. I might as well send him the money to buy one, but it is