Re: Threads
On Thu, 21 Jul 2005 12:31:57 GMT, "Brian" <a@xxx> wrote:
>Hi
>
>
>
>I have an app that connects to a database every 15 seconds to gather data
>then disconnects. The system is designed to run on a dial-up connection, but
>has been mostly developed on a broadband connection.
>
>It has only come to light today that when running on a 56k modem every time
>it connects to the database the app slows/freezes and will not take any
>keyboard input until it is finished. I have been told that this may be to do
>with threads/processor time. I am using a conponet called MySQLDAC from
>MicroLab, I have contacted them but they can't send me any example code for
>about 2 weeks, trouble I need it now (it's that always the way)
>
>Does any body know how to create a threads so that database connection is on
>one thread and the main app runs OK
Rather than using another thread, have you considered breaking out
that bit of the App into a separate EXE ?
Your main App could talk with the slave App via Windows messages.
( PostMessage when in 'blocked' mode )
.
Relevant Pages
- Re: Please Urgent - Update Data Source Problem ???
... When the app starts, I'd check to see if the table exists. ... That'd probably be a preferable method to creating the database each time ... If you put connection close ... schedule, and they can update the existing schedule, add new schedule and ... (microsoft.public.dotnet.framework.compactframework) - ASP.NET data access
... We have used ADO datasets previously for a windows application that we developed where the entire db was loaded into the dataset at the beginning of the application and the user made changes to the dataset which was then saved back to the db when the app was shut down. ... Which means that when data is required it is returned from the dataset saving a connection, but has used a heap of resources loading from the db in the first place. ... We would in this case have insert methods which would then use inserts, updates and deletes to directly update the database. ... The problem that this technique seems to have is that you are creating a dataset in each method, which is failur repetitive and may only contain a few rows. ... (microsoft.public.dotnet.framework.aspnet) - Re: OleDbConnection does not release Access database
... this is not a web app. ... a Microsoft Access database. ... the database connection, but that seems a little excessive for what ... (microsoft.public.dotnet.framework.adonet) - Re: Portable Database Choice
... I searched this group quite a bit looking for database alternatives and did find the options below from this search. ... I'm posting this in the hope it can be of use to other developers in a position similar to mine where I needed a low cost alternative to Pocket Access. ... One app requires synchronization between desktop and mobile device, the other requires a push of data from the desktop to mobile. ... (microsoft.public.dotnet.framework.compactframework) - Threads
... I have an app that connects to a database every 15 seconds to gather data ... has been mostly developed on a broadband connection. ... with threads/processor time. ... (alt.comp.lang.borland-delphi) |
|