Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » SQLite-insert/update in threads (please help!)
SQLite-insert/update in threads (please help!) [message #27212] Fri, 02 July 2010 21:24 Go to previous message
Sc0rch is currently offline  Sc0rch
Messages: 99
Registered: February 2008
Location: Russia, Rubtsovsk
Member

I'm getting asserts of Fetch and Execute methods, sometimes. I don't know how to avoid them, but threads are really needed.

Some info about task:
- Console application.
- Main loop of program - RPC-server, with functions for user (each of functions use SQLite database, through global SQL)
- Threads registers incoming hardware events and writes them into the SQLite database.

How can I make this task threadsafe?
Please help, two days of experiments, but I have no ideas.

I'll glad to see a little codesnippet with one safe thread.


P.S. Application crashes when I try close database by calling Close() method. Anybody know why so?


Sorry for my English,
Best regards
Anton

[Updated on: Sat, 03 July 2010 04:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MySQL bug: Missing FIELD_TYPE_TIMESTAMP
Next Topic: Oracle8: UTF8 charset Patch
Goto Forum:
  


Current Time: Thu Apr 18 12:30:29 CEST 2024

Total time taken to generate the page: 0.01759 seconds