Click here to Skip to main content
15,881,687 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Skins in C# Pin
vivasaayi22-Sep-09 20:33
vivasaayi22-Sep-09 20:33 
GeneralRe: Skins in C# Pin
egenis22-Sep-09 20:36
egenis22-Sep-09 20:36 
QuestionNeed help with updating SQL server express DB from c# Pin
Mark-12345678922-Sep-09 16:15
Mark-12345678922-Sep-09 16:15 
Answerrepost Pin
Luc Pattyn22-Sep-09 16:29
sitebuilderLuc Pattyn22-Sep-09 16:29 
AnswerRe: Need help with updating SQL server express DB from c# Pin
Michael Eber22-Sep-09 18:53
Michael Eber22-Sep-09 18:53 
GeneralRe: Need help with updating SQL server express DB from c# Pin
Mark-12345678923-Sep-09 2:43
Mark-12345678923-Sep-09 2:43 
GeneralRe: Need help with updating SQL server express DB from c# Pin
PIEBALDconsult23-Sep-09 5:12
mvePIEBALDconsult23-Sep-09 5:12 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
Mark-12345678924-Sep-09 9:02
Mark-12345678924-Sep-09 9:02 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
PIEBALDconsult24-Sep-09 9:23
mvePIEBALDconsult24-Sep-09 9:23 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
Mark-12345678924-Sep-09 9:29
Mark-12345678924-Sep-09 9:29 
GeneralRe: Need help with updating SQL server express DB from c# - Done IT! Pin
PIEBALDconsult24-Sep-09 9:44
mvePIEBALDconsult24-Sep-09 9:44 
Questionhow to make check of a value in a textbox is integer or string? Pin
bounik22-Sep-09 13:41
bounik22-Sep-09 13:41 

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.