Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
QuestionAdding the result of two Anonymous Type LINQ queries Pin
Programm3r22-Sep-09 21:15
Programm3r22-Sep-09 21:15 
AnswerRe: Adding the result of two Anonymous Type LINQ queries Pin
Ravi Mori22-Sep-09 21:56
Ravi Mori22-Sep-09 21:56 
GeneralRe: Adding the result of two Anonymous Type LINQ queries Pin
Programm3r22-Sep-09 23:14
Programm3r22-Sep-09 23:14 
QuestionHow to save a web page opened in Mozilla using c# Pin
svt gdwl22-Sep-09 21:10
svt gdwl22-Sep-09 21:10 
AnswerRe: How to save a web page opened in Mozilla using c# Pin
Calla22-Sep-09 21:51
Calla22-Sep-09 21:51 
Questionhow to know which control is focused Pin
meghamaharshi22-Sep-09 21:03
meghamaharshi22-Sep-09 21:03 
AnswerRe: how to know which control is focused Pin
OriginalGriff22-Sep-09 21:31
mveOriginalGriff22-Sep-09 21:31 
GeneralRe: how to know which control is focused Pin
meghamaharshi22-Sep-09 21:56
meghamaharshi22-Sep-09 21:56 
GeneralRe: how to know which control is focused Pin
Programm3r22-Sep-09 21:57
Programm3r22-Sep-09 21:57 
AnswerRe: how to know which control is focused Pin
Programm3r22-Sep-09 21:38
Programm3r22-Sep-09 21:38 
AnswerRe: how to know which control is focused Pin
benjymous22-Sep-09 23:30
benjymous22-Sep-09 23:30 
AnswerRe: how to know which control is focused Pin
Henry Minute23-Sep-09 1:20
Henry Minute23-Sep-09 1:20 
Questionget GUID from Assembly Information Pin
Jassim Rahma22-Sep-09 20:56
Jassim Rahma22-Sep-09 20:56 
AnswerRe: get GUID from Assembly Information Pin
Ravi Mori22-Sep-09 21:00
Ravi Mori22-Sep-09 21:00 
AnswerRe: get GUID from Assembly Information Pin
0x3c022-Sep-09 23:42
0x3c022-Sep-09 23:42 
QuestionIBasicVideo2 GetCurrentImage returns black frames Pin
smilefishcc22-Sep-09 20:45
smilefishcc22-Sep-09 20:45 
QuestionTest Cases for the Code Pin
jpk42022-Sep-09 20:36
jpk42022-Sep-09 20:36 
AnswerRe: Test Cases for the Code Pin
Richard MacCutchan22-Sep-09 22:59
mveRichard MacCutchan22-Sep-09 22:59 
AnswerRe: Test Cases for the Code Pin
N a v a n e e t h23-Sep-09 0:18
N a v a n e e t h23-Sep-09 0:18 
QuestionODBC Data Error Pin
sateesh villa22-Sep-09 20:35
sateesh villa22-Sep-09 20:35 
Hi, I am trying to connect to Sybase SQLAnyWhere DB from C# using ODBC Data Connection.
I am getting the below error.

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Can anyone tell me the reason for that ?

Error Report :
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Data.Common.UnsafeNativeMethods.SQLExecDirectW(OdbcStatementHandle StatementHandle, String StatementText, Int32 TextLength)
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Odbc.OdbcCommand.ExecuteReader()


I have a list of command strings.
I am exceuting the following commands in for loop.
foreach (string str in stringlist)
{
OdbcCommand defineTankCMD = Conn.CreateCommand();
defineTankCMD.CommandText = str;
OdbcDataReader defineTankReader = defineTankCMD.ExecuteReader();
defineTankReader.Close();
}

Is it OK. some times it is working fine and some times it was giving error.

QuestionAccessing Non-Public Members [modified] Pin
John Jak22-Sep-09 20:15
John Jak22-Sep-09 20:15 
QuestionSkins in C# Pin
vivasaayi22-Sep-09 19:11
vivasaayi22-Sep-09 19:11 
AnswerRe: Skins in C# Pin
egenis22-Sep-09 19:25
egenis22-Sep-09 19:25 
GeneralRe: Skins in C# Pin
vivasaayi22-Sep-09 19:52
vivasaayi22-Sep-09 19:52 
GeneralRe: Skins in C# Pin
Ravi Mori22-Sep-09 20:00
Ravi Mori22-Sep-09 20:00 

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.