Click here to Skip to main content
16,014,838 members
Home / Discussions / C#
   

C#

 
AnswerRe: Single instantiation of Class Pin
PIEBALDconsult22-Feb-10 8:51
mvePIEBALDconsult22-Feb-10 8:51 
QuestionSocket Library Pin
rexbloom21-Feb-10 18:17
professionalrexbloom21-Feb-10 18:17 
Questionknow program installed in computer offline Pin
gpsushil21-Feb-10 18:14
gpsushil21-Feb-10 18:14 
QuestionMake Application Uninstall Available In Programs List Using Windows Installer Pin
BlitzPackage21-Feb-10 13:11
BlitzPackage21-Feb-10 13:11 
AnswerRe: Make Application Uninstall Available In Programs List Using Windows Installer Pin
Anubhava Dimri21-Feb-10 23:24
Anubhava Dimri21-Feb-10 23:24 
QuestionCant see TextBox1 in codeView [modified] Pin
It_tech21-Feb-10 7:19
It_tech21-Feb-10 7:19 
AnswerRe: Cant see TextBox1 in codeView Pin
Pete O'Hanlon21-Feb-10 9:22
mvePete O'Hanlon21-Feb-10 9:22 
QuestionQuestion on lifetime of context existance Pin
Michael J. Eber21-Feb-10 6:53
Michael J. Eber21-Feb-10 6:53 
I have a service running which runs FileWatchers to detect changes and new accounts.
Currently when a file is received I call my file manager which:

creates the context for incoming db and outgoing db
adds/updates account
submits changes
destroys contexts

My Problem: My service regularly dies on what appears to be the second record stating that the first context failed to connect because it could not log in. This happens when I use the service ID as well as using sa!!! The interesting thing is during debug my SECOND context connected correctly and I could access everything.

This leaves me wondering if I should create the context's at the service start, continue to use them over and over again, then destroy the context only when the service shuts down.

It seems that while it keeps a resource around for a long time, it should be okay since the context functions in a disconnected fashion.

Comments?

Thanks.
AnswerRe: Question on lifetime of context existance Pin
Not Active21-Feb-10 7:14
mentorNot Active21-Feb-10 7:14 
GeneralRe: Question on lifetime of context existance Pin
Michael J. Eber21-Feb-10 8:47
Michael J. Eber21-Feb-10 8:47 
GeneralRe: Question on lifetime of context existance Pin
Not Active21-Feb-10 9:47
mentorNot Active21-Feb-10 9:47 
GeneralRe: Question on lifetime of context existance Pin
Michael J. Eber21-Feb-10 18:09
Michael J. Eber21-Feb-10 18:09 
GeneralRe: Question on lifetime of context existance Pin
Michael Eber23-Feb-10 10:19
Michael Eber23-Feb-10 10:19 
QuestionRetrieve database by using web service Pin
dalila y21-Feb-10 3:48
dalila y21-Feb-10 3:48 
AnswerRe: Retrieve database by using web service Pin
Not Active21-Feb-10 4:23
mentorNot Active21-Feb-10 4:23 
AnswerRe: Retrieve database by using web service Pin
Eddy Vluggen21-Feb-10 4:58
professionalEddy Vluggen21-Feb-10 4:58 
QuestionLooking for Generics Labs Pin
jakehn21-Feb-10 3:03
jakehn21-Feb-10 3:03 
AnswerRe: Looking for Generics Labs Pin
Not Active21-Feb-10 3:15
mentorNot Active21-Feb-10 3:15 
QuestionClosing application when windows shuts down Pin
davearias21-Feb-10 1:25
davearias21-Feb-10 1:25 
AnswerRe: Closing application when windows shuts down Pin
davearias21-Feb-10 1:43
davearias21-Feb-10 1:43 
GeneralRe: Closing application when windows shuts down Pin
Geoff Williams21-Feb-10 2:40
Geoff Williams21-Feb-10 2:40 
GeneralRe: Closing application when windows shuts down Pin
davearias21-Feb-10 10:33
davearias21-Feb-10 10:33 
AnswerRe: Closing application when windows shuts down Pin
Luc Pattyn21-Feb-10 2:44
sitebuilderLuc Pattyn21-Feb-10 2:44 
GeneralRe: Closing application when windows shuts down Pin
davearias21-Feb-10 10:36
davearias21-Feb-10 10:36 
AnswerRe: Closing application when windows shuts down Pin
Luc Pattyn21-Feb-10 10:44
sitebuilderLuc Pattyn21-Feb-10 10:44 

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.