Click here to Skip to main content
15,904,951 members
Home / Discussions / C#
   

C#

 
QuestionHow to store images in dll? Pin
Oskars22-Feb-06 19:24
Oskars22-Feb-06 19:24 
AnswerRe: How to store images in dll? Pin
Alomgir Miah22-Feb-06 19:30
Alomgir Miah22-Feb-06 19:30 
GeneralRe: How to store images in dll? Pin
Oskars22-Feb-06 19:36
Oskars22-Feb-06 19:36 
QuestionPanel autoscrollposition hell! Pin
NewbieDude22-Feb-06 19:06
NewbieDude22-Feb-06 19:06 
QuestionMapping of Excel sheet into Access Table by using C# code Pin
vivekdeshpande22-Feb-06 18:46
vivekdeshpande22-Feb-06 18:46 
AnswerRe: Mapping of Excel sheet into Access Table by using C# code Pin
Acheive_it22-Feb-06 23:29
Acheive_it22-Feb-06 23:29 
AnswerRe: Mapping of Excel sheet into Access Table by using C# code Pin
Acheive_it23-Feb-06 18:01
Acheive_it23-Feb-06 18:01 
QuestionMethod Lock Pin
JacquesDP22-Feb-06 18:41
JacquesDP22-Feb-06 18:41 
I have two classes, one running on a seperate thread. The one class writes to a table in a database and the other reads and writes to the same table in the database.

The class that only writes to the table is on a seperate thread.
The class that reads and writes to the table is on a timer. So every 5seconds it checks a boolean value and if its true it updates a listview.

The problem comes in when both classes tries to access the table at the same time, I get an error that the connection is currently open and busy.

How can I lock the method that loads the data from the table until the one class is finished.

Then the other problem will be. The main idea behind this is that two machines running the same app can use one database. how do I check if the other machine is currently busy on that table?

Any help and ideas will be appreciated.

Thanks in advance
AnswerRe: Method Lock Pin
emran83422-Feb-06 19:25
emran83422-Feb-06 19:25 
GeneralRe: Method Lock Pin
JacquesDP22-Feb-06 19:33
JacquesDP22-Feb-06 19:33 
GeneralRe: Method Lock Pin
emran83422-Feb-06 19:43
emran83422-Feb-06 19:43 
GeneralRe: Method Lock Pin
JacquesDP22-Feb-06 20:11
JacquesDP22-Feb-06 20:11 
GeneralRe: Method Lock Pin
J4amieC22-Feb-06 21:34
J4amieC22-Feb-06 21:34 
QuestionCopyright Problem ? Using Gifs and Images from Web in my Application Pin
emran83422-Feb-06 18:33
emran83422-Feb-06 18:33 
AnswerRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
mav.northwind22-Feb-06 20:01
mav.northwind22-Feb-06 20:01 
GeneralRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
lmoelleb22-Feb-06 21:08
lmoelleb22-Feb-06 21:08 
AnswerRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
Colin Angus Mackay22-Feb-06 22:52
Colin Angus Mackay22-Feb-06 22:52 
GeneralRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
emran83423-Feb-06 0:50
emran83423-Feb-06 0:50 
QuestionC#.Net Pin
Ashwani_kumar22-Feb-06 17:31
Ashwani_kumar22-Feb-06 17:31 
AnswerRe: C#.Net Pin
George L. Jackson22-Feb-06 17:39
George L. Jackson22-Feb-06 17:39 
GeneralRe: C#.Net Pin
Ashwani_kumar22-Feb-06 17:41
Ashwani_kumar22-Feb-06 17:41 
GeneralRe: C#.Net Pin
George L. Jackson22-Feb-06 17:48
George L. Jackson22-Feb-06 17:48 
GeneralRe: C#.Net Pin
emran83422-Feb-06 18:19
emran83422-Feb-06 18:19 
GeneralRe: C#.Net Pin
Praveen Nayak23-Feb-06 21:20
Praveen Nayak23-Feb-06 21:20 
GeneralRe: C#.Net Pin
emran83423-Feb-06 23:27
emran83423-Feb-06 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.