Click here to Skip to main content
15,918,108 members
Home / Discussions / C#
   

C#

 
QuestionWhat component should i use? Pin
hfuiew17-Apr-04 23:51
hfuiew17-Apr-04 23:51 
AnswerRe: What component should i use? Pin
Mazdak18-Apr-04 0:25
Mazdak18-Apr-04 0:25 
AnswerRe: What component should i use? Pin
Suelinda_W26-Apr-04 6:02
Suelinda_W26-Apr-04 6:02 
GeneralReading all IP add in Local network Pin
sreejith ss nair17-Apr-04 23:15
sreejith ss nair17-Apr-04 23:15 
GeneralRe: Reading all IP add in Local network Pin
leppie18-Apr-04 0:49
leppie18-Apr-04 0:49 
GeneralRe: Reading all IP add in Local network Pin
Anonymous18-Apr-04 3:11
Anonymous18-Apr-04 3:11 
GeneralRe: Reading all IP add in Local network Pin
Dave Kreskowiak18-Apr-04 4:47
mveDave Kreskowiak18-Apr-04 4:47 
Generallocking problem in continous insert Pin
dabuskol17-Apr-04 22:19
dabuskol17-Apr-04 22:19 
Hi,

I'm trying to run an insert statement continously for 24 hrs, data is coming from different Ip/PORT (100). Could somebody please help me by checking my codes if there's any way I can do to improved my locking so that I'll not be able to get the message below. Before the execution of insert is done another thread is getting the adapter that's why the current insert always fails.
CODE:
DBCommand = new SqlCommand(strInsert,DBConnect);
Monitor.Exit(DBCommand);
try
{
if (DBConnect.State.ToString() == "Closed")
{DBConnect.Open();}

DEBUG.PRINT("BEFORE EXECUTE:" + straddr);
DBCommand.ExecuteNonQuery();
DEBUG.PRINT("AFTER EXECUTE:" + straddr);
DBCommand.Dispose();
DBCommand.Connection.Close();
DBConnect.Close();
Monitor.Exit(DBCommand);
}

TRACE DATA FOR CLEARER INFORMATION:
BEFORE EXECUTE: 172.30.57.125:21307
INSERT ERROR1 172.30.98.249:20417==? insert into rop values
System.InvalidOperationException: There is already an open DataReader associated with this Connection which must be closed first.
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean executing)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at ossrop.Services.ossAdminService.SaveToSQLDB(String strFile, String strOpt, String straddr)
AFTER EXECUTE: 172.30.57.125:21307
GeneralRe: locking problem in continous insert Pin
leppie17-Apr-04 22:59
leppie17-Apr-04 22:59 
GeneralRe: locking problem in continous insert Pin
Heath Stewart19-Apr-04 2:51
protectorHeath Stewart19-Apr-04 2:51 
GeneralRe: locking problem in continous insert Pin
dabuskol19-Apr-04 18:58
dabuskol19-Apr-04 18:58 
GeneralRe: locking problem in continous insert Pin
Heath Stewart20-Apr-04 3:21
protectorHeath Stewart20-Apr-04 3:21 
Questionhow to convert HANDLE type in C#??? Pin
Paolo Ponzano17-Apr-04 21:04
Paolo Ponzano17-Apr-04 21:04 
AnswerRe: how to convert HANDLE type in C#??? Pin
leppie17-Apr-04 21:09
leppie17-Apr-04 21:09 
GeneralRe: how to convert HANDLE type in C#??? Pin
Paolo Ponzano17-Apr-04 21:27
Paolo Ponzano17-Apr-04 21:27 
GeneralSetup project problem Pin
Small Rat17-Apr-04 9:28
Small Rat17-Apr-04 9:28 
GeneralRe: Setup project problem Pin
Mazdak17-Apr-04 23:08
Mazdak17-Apr-04 23:08 
GeneralRe: Setup project problem Pin
Mazdak17-Apr-04 23:40
Mazdak17-Apr-04 23:40 
GeneralRe: Setup project problem Pin
Small Rat18-Apr-04 17:15
Small Rat18-Apr-04 17:15 
GeneralRe: Setup project problem Pin
Heath Stewart19-Apr-04 2:58
protectorHeath Stewart19-Apr-04 2:58 
GeneralC# Custom control property options Pin
mattd8917-Apr-04 8:00
mattd8917-Apr-04 8:00 
GeneralRe: C# Custom control property options Pin
leppie17-Apr-04 21:13
leppie17-Apr-04 21:13 
GeneralReading the serial number Pin
Amirjalaly17-Apr-04 7:27
Amirjalaly17-Apr-04 7:27 
GeneralRe: Reading the serial number Pin
Mazdak17-Apr-04 8:36
Mazdak17-Apr-04 8:36 
Generalconecting with modem Pin
Amirjalaly17-Apr-04 6:42
Amirjalaly17-Apr-04 6:42 

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.