|
And what kind of accsess vaiolation occorus: please post detail. Including its message
|
|
|
|
|
System.AccessViolationException was unhandled
Message="Attempting to read or write protected memory. This often indicates that other memory is damaged."
Source="System.Data"
StackTrace:
в System.Data.Common.UnsafeNativeMethods.SQLGetData(OdbcStatementHandle StatementHandle, UInt16 ColumnNumber, SQL_C TargetType, CNativeBuffer TargetValue, IntPtr BufferLength, IntPtr& StrLen_or_Ind)
в System.Data.Odbc.OdbcStatementHandle.GetData(Int32 index, SQL_C sqlctype, CNativeBuffer buffer, Int32 cb, IntPtr& cbActual)
в System.Data.Odbc.OdbcDataReader.GetData(Int32 i, SQL_C sqlctype, Int32 cb, Int32& cbActualOut)
в System.Data.Odbc.OdbcDataReader.internalGetString(Int32 i)
в System.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap)
в System.Data.Odbc.OdbcDataReader.GetValue(Int32 i)
в FMySQLClient.MySQL.FetchArray(OdbcDataReader& reader) в C:\FMySQLClient\FMySQLClient\MySQL.cs:line 199
в FMySQLClient.Form1.button1_Click(Object sender, EventArgs e) в C:\FMySQLClient\FMySQLClient\Form1.cs:line 30
в System.Windows.Forms.Control.OnClick(EventArgs e)
в System.Windows.Forms.Button.OnClick(EventArgs e)
в System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в System.Windows.Forms.ButtonBase.WndProc(Message& m)
в System.Windows.Forms.Button.WndProc(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
в System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
в System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
в System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
в System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
в System.Windows.Forms.Application.Run(Form mainForm)
в FMySQLClient.Program.Main() в C:\FMySQLClient\FMySQLClient\Program.cs:line 18
в System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
в System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()
InnerException:
|
|
|
|
|
Does the loop run at least once?
I suspect it is connector problem. You coud try using MySql Connector/Net(I Used it, because other connectors were painfull to get them working). It is a form of external dll that you can reference to it. And you are not required to install it as it is required with ODBC connector.
Try asking in their forum, you coud stumble upon a bug.
|
|
|
|
|
"Does the loop run at least once?" - no
Ok, thx
|
|
|
|
|
I say that you are to use.
for (int i = 0; i <= integer-1; i++)
or
for (int i = 0; i < integer; i++)
If reader.FieldCount = 4 get the i parts 0,1,2,3
|
|
|
|
|
hi friend's
i design an application that when start need to read a serial number from a server that this serial number saved in a sql database. but i dont know how to set my connection string and so on...
please give me a asolution
thank you
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
thank you
this site is suitable and useful.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
Hi,
I am using c#.net and Microsoft.Office.Interop.Word dll to read the ms word document content. My requirement is to read all available bookmarks from the document.
I am able to read the number of bookmarks(count only) but failed to read the bookmark names.
Here is the code for reading bookmark count.
_Application wdApp = new Microsoft.Office.Interop.Word.Application();
_Document Doc = new Microsoft.Office.Interop.Word.Document();
Microsoft.Office.Interop.Word.Range wdRange;
object optional = System.Reflection.Missing.Value;
Doc = wdApp.Documents.Open(ref _fileName, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional);
int intParaCount;
intParaCount = Doc.Bookmarks.Count;
Please provide the code for reading the available bookmark names from the word document.
Thanks in advance.
Veerendra
|
|
|
|
|
try
doc.Bookmarks.get_Item(index).name;
|
|
|
|
|
Hi,
I am using .NET to query indexing server (search engine for our Intranet)
If the user searches for "the,he,she,in" or "a" etc they will get an error page stating - "(The query contained only ignored words.)"
What is the best way to catch this and deliver something meaningful back to the page.
|
|
|
|
|
It looks as you have problems with SQL Server Full-Text Search.
If I'm right you should post your question into General Database forum.
Life is a stage and we are all actors!
|
|
|
|
|
Hi
I am new in asp.net can some help me how to start an online chat application in asp.net using c#..MY mail id is guptagaurav212@gmail.com
Thanks in advance
Gaurav Gupta
|
|
|
|
|
GauravGupta212 wrote: Hi
I am new in asp.net can some help me how to start an online chat application in asp.net using c#..MY mail id is guptagaurav212@gmail.com
Thanks in advance
Gaurav Gupta
Wow. Let me spell it out for you.
1 - posting your email, which will get you spam from people who have nothing to do with this site, and almost certainly nothing else
2 - this is NOT the ASP.NET forum
3 - we are NOT here to tell you how to use google.
4 - it is INCREDIBLY rude to delete your message, no matter how stupid. It just clutters the forums.
The only way to write a chat app is with AJAX. ASP.NET has next to nothing to do with it. I suggest buying an AJAX book and reading it before coming back and using the correct forum to ask specific questions.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
You've done just about everything wrong here. Try reading the guide on how to ask questions, do some research, and try using the right forum when you have a question that is more specific than 'do my work for me'.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear All, I am trying to prepare my self for a project which is Distributed and also disconnected at most points.
i would appreciate any reference,website or books of distributed application development which i can do it through c#.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
This is a really nice beginners book for distributed systems.
Life is a stage and we are all actors!
|
|
|
|
|
I am really sorry my friend, I dont have access to credit or any other kinds of cards to buy from amazon or others. kindly i am asking for free source.
thx
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hello,
I wan to able to change the label when i select a radiobutton.
For example when i select the Yes radiobutton, it will show the text as Y and not Yes.
Is there a way to do that?
|
|
|
|
|
Yes. What control do you want to change the text on when the RadioButton is selected?
|
|
|
|
|
click, thanks for the reply.
|
|
|
|
|
"click" is an event. Do you want to change the text on the RadioButton, or a Label, or what?
Anyway, just wire the event "click" event to the control, then inside it: radioButton1.Text = "my new text"; or labelText1.Text = "my new text"; etc.
|
|
|
|
|
For example:
private void radioButton1_Click(object sender, EventArgs e)
{
radioButton1.Text = "my new text";
}
but to wire the event:
this.radioButton1.Click += new System.EventHandler(this.radioButton1_Click);
which is done automatically by the designer, but if you don't have VS, just add the above to your form's constructor with a change to the radio button control's name of course that matches the method signature (e.g. "radioButton1_Click" in this case).
|
|
|
|