Click here to Skip to main content
15,912,932 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regular expression help - end of text Pin
Luis Alonso Ramos2-Aug-05 9:24
Luis Alonso Ramos2-Aug-05 9:24 
GeneralRe: Regular expression help - end of text Pin
Guffa2-Aug-05 9:49
Guffa2-Aug-05 9:49 
GeneralRe: Regular expression help - end of text Pin
Luis Alonso Ramos2-Aug-05 10:00
Luis Alonso Ramos2-Aug-05 10:00 
Questionstatic class for database access? Pin
theStorminMormon2-Aug-05 8:58
theStorminMormon2-Aug-05 8:58 
AnswerRe: static class for database access? Pin
Guffa2-Aug-05 9:11
Guffa2-Aug-05 9:11 
GeneralRe: static class for database access? Pin
theStorminMormon2-Aug-05 9:14
theStorminMormon2-Aug-05 9:14 
GeneralRe: static class for database access? Pin
Luis Alonso Ramos2-Aug-05 9:32
Luis Alonso Ramos2-Aug-05 9:32 
GeneralRe: static class for database access? Pin
Guffa2-Aug-05 9:36
Guffa2-Aug-05 9:36 
If you use the class in asp.net, or from more than one program running at the same time, there will be more than one thread using the same class.

If you have a static reference in the class that is not thread static, it will be shared by every thread that uses the class. That means that when one program connects to a database, and then another program connects to a second database, both programs will be using the second database. Also when one program closes the connection, the other program will stop working.

---
b { font-weight: normal; }

AnswerRe: static class for database access? Pin
Luis Alonso Ramos2-Aug-05 9:13
Luis Alonso Ramos2-Aug-05 9:13 
GeneralRe: static class for database access? Pin
theStorminMormon2-Aug-05 9:16
theStorminMormon2-Aug-05 9:16 
GeneralRe: static class for database access? Pin
Luis Alonso Ramos2-Aug-05 9:26
Luis Alonso Ramos2-Aug-05 9:26 
GeneralEmulate a twain interface Pin
Oliver Lange2-Aug-05 8:25
Oliver Lange2-Aug-05 8:25 
GeneralSupressing Security Error Dialog Pin
RB@Emphasys2-Aug-05 7:53
RB@Emphasys2-Aug-05 7:53 
GeneralRe: Supressing Security Error Dialog Pin
mav.northwind2-Aug-05 20:06
mav.northwind2-Aug-05 20:06 
GeneralRe: Supressing Security Error Dialog Pin
RB@Emphasys3-Aug-05 3:57
RB@Emphasys3-Aug-05 3:57 
GeneralRe: Supressing Security Error Dialog Pin
mav.northwind3-Aug-05 7:42
mav.northwind3-Aug-05 7:42 
GeneralCapturing The Build Date Into Code Pin
bneacetp2-Aug-05 7:22
bneacetp2-Aug-05 7:22 
GeneralRe: Capturing The Build Date Into Code Pin
hamster12-Aug-05 11:22
hamster12-Aug-05 11:22 
GeneralRe: Capturing The Build Date Into Code Pin
bneacetp2-Aug-05 14:13
bneacetp2-Aug-05 14:13 
GeneralRe: Capturing The Build Date Into Code Pin
hamster13-Aug-05 8:21
hamster13-Aug-05 8:21 
GeneralReordering DOCKED controls Pin
Radgar2-Aug-05 7:16
Radgar2-Aug-05 7:16 
GeneralRe: Reordering DOCKED controls Pin
Alomgir Miah2-Aug-05 7:21
Alomgir Miah2-Aug-05 7:21 
GeneralRe: Reordering DOCKED controls Pin
Judah Gabriel Himango2-Aug-05 10:33
sponsorJudah Gabriel Himango2-Aug-05 10:33 
GeneralRe: Reordering DOCKED controls Pin
Radgar2-Aug-05 13:11
Radgar2-Aug-05 13:11 
GeneralRe: Reordering DOCKED controls Pin
Judah Gabriel Himango2-Aug-05 16:19
sponsorJudah Gabriel Himango2-Aug-05 16:19 

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.