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

C#

 
GeneralRe: Problem with negative number Pin
Luc Pattyn14-Aug-07 6:06
sitebuilderLuc Pattyn14-Aug-07 6:06 
GeneralRe: Problem with negative number Pin
K. Ahlers14-Aug-07 10:57
K. Ahlers14-Aug-07 10:57 
GeneralRe: Problem with negative number Pin
Luc Pattyn14-Aug-07 13:31
sitebuilderLuc Pattyn14-Aug-07 13:31 
GeneralRe: Problem with negative number Pin
K. Ahlers14-Aug-07 23:14
K. Ahlers14-Aug-07 23:14 
GeneralRe: Problem with negative number Pin
Luc Pattyn15-Aug-07 2:43
sitebuilderLuc Pattyn15-Aug-07 2:43 
GeneralRe: Problem with negative number Pin
K. Ahlers15-Aug-07 3:29
K. Ahlers15-Aug-07 3:29 
GeneralRe: Problem with negative number Pin
Luc Pattyn15-Aug-07 3:57
sitebuilderLuc Pattyn15-Aug-07 3:57 
GeneralRe: Problem with negative number Pin
K. Ahlers17-Aug-07 0:35
K. Ahlers17-Aug-07 0:35 
Okay - This time it took really long to the next crash.

So I cant find any timing in there.

Here is the debug-output:
<br />
Content of tmp: """Connection 2 Add     Link 2 Channel 2"""<br />
MySQL-Command: """INSERT INTO cisco_log (datelogged, logentry) VALUES ('2007-08-17 11:47:38', 'Connection 2 Add  Link 2 Channel 2')"""<br />
Buffer-Content: """CISCO:EWE> """<br />
PosOfBreak: 50<br />
<br />
Exception: System.ArgumentOutOfRangeException: Non-negative number required.<br />
Parameter name: count<br />
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)<br />
   at MySql.Data.MySqlClient.MySqlStream.Read(Byte[] buffer, Int32 offset, Int32 count)<br />
   at MySql.Data.MySqlClient.MySqlStream.ReadString(Int64 length)<br />
   at MySql.Data.MySqlClient.NativeDriver.GetFieldMetaData41()<br />
   at MySql.Data.MySqlClient.NativeDriver.GetFieldMetaData()<br />
   at MySql.Data.MySqlClient.NativeDriver.ReadColumnMetadata(Int32 count)<br />
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()<br />
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)<br />
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()<br />
   at Cisco2Mysql.Form1.serialPort1_DataReceived(Object sender, SerialDataReceivedEventArgs e)<br />


The only constant in there is the exception. Every time it's raised by the ExecuteNonQuery()-method.

I do not have any idea why this happens - so if you can help me it would be fine. If you don't have any idea too i'll have to try the ODBC-connector. Might be that it will not crash with this error...

With best regards,
K. Ahlers

GeneralRe: Problem with negative number Pin
Luc Pattyn17-Aug-07 5:43
sitebuilderLuc Pattyn17-Aug-07 5:43 
Question[C#] - How to print a file programmatically... Pin
aravinda77713-Aug-07 23:14
aravinda77713-Aug-07 23:14 
AnswerRe: [C#] - How to print a file programmatically... Pin
Giorgi Dalakishvili13-Aug-07 23:27
mentorGiorgi Dalakishvili13-Aug-07 23:27 
AnswerRe: [C#] - How to print a file programmatically... Pin
Hessam Jalali14-Aug-07 2:09
Hessam Jalali14-Aug-07 2:09 
GeneralRe: [C#] - How to print a file programmatically... Pin
Michael Sync14-Aug-07 21:43
Michael Sync14-Aug-07 21:43 
GeneralRe: [C#] - How to print a file programmatically... Pin
Green Goblin20-Aug-07 9:31
Green Goblin20-Aug-07 9:31 
Questionproblem in calling a dll file Pin
kandy_soliton13-Aug-07 22:47
kandy_soliton13-Aug-07 22:47 
AnswerRe: problem in calling a dll file Pin
Giorgi Dalakishvili13-Aug-07 22:51
mentorGiorgi Dalakishvili13-Aug-07 22:51 
GeneralRe: problem in calling a dll file Pin
kandy_soliton13-Aug-07 23:57
kandy_soliton13-Aug-07 23:57 
GeneralRe: problem in calling a dll file Pin
Giorgi Dalakishvili14-Aug-07 0:01
mentorGiorgi Dalakishvili14-Aug-07 0:01 
GeneralRe: problem in calling a dll file Pin
N a r e s h P a t e l14-Aug-07 0:50
N a r e s h P a t e l14-Aug-07 0:50 
GeneralRe: problem in calling a dll file [modified] Pin
Liam O'Hagan14-Aug-07 19:22
Liam O'Hagan14-Aug-07 19:22 
GeneralRe: problem in calling a dll file Pin
kandy_soliton21-Aug-07 19:35
kandy_soliton21-Aug-07 19:35 
QuestionSlow UI updation problem Pin
getnanda@gmail.com13-Aug-07 22:46
getnanda@gmail.com13-Aug-07 22:46 
AnswerRe: Slow UI updation problem Pin
Pete O'Hanlon13-Aug-07 22:59
mvePete O'Hanlon13-Aug-07 22:59 
GeneralRe: Slow UI updation problem Pin
getnanda@gmail.com13-Aug-07 23:16
getnanda@gmail.com13-Aug-07 23:16 
GeneralRe: Slow UI updation problem Pin
Martin#13-Aug-07 23:27
Martin#13-Aug-07 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.