473,668 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange Error


Okay, I'm still new to vb.net 2005 - throught this was a hardware problem,
but now I don't know.
(I'm having some problem with my newgroup provider, so hopefully this will
go through)

This problem just started about a week ago, before all was fine. I'm using
the code below to access a mysql database. On the line indicated when the
connection is opened, the application has been sporatically drawing an
error. It doesn't occur very often - so I don't understand what's going on.
The app reports

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

Okay - so perhaps a bad stick of memory - so I pulled one of the two sticks
temporarily and the problem seemed to go away. Nothing for about a week.
....but now I got the same error. I get similar errors in the event log of
the server (W2K3 IIS6).

I can't see how this has anything to do with my code since the problem is
only periodic. I don't know if it is due to the underlying visual studio,
but if I understand correctly, w3wp.exe refers to IIS. there is nothing in
any error messages referring to mysql, so I can't see that the database is
the problem.

Can anyone tell me what might be going on?

Jeff
Try
Dim MyCommand As New OdbcCommand(sb. ToString, MyConn)
MyCommand.Comma ndType = CommandType.Tex t
MyConn.Open() ' drawing the
bad memory error here also.
Dim dr As OdbcDataReader =
MyCommand.Execu teReader(Comman dBehavior.Singl eRow)
Using (dr)
Event Type: Error
Event Source: COM+
Event Category: Unknown
Event ID: 4786
Date: 5/25/2007
Time: 8:45:16 PM
User: N/A
Description:
The system has called a custom component and that component has failed and
generated an exception. This indicates a problem with the custom component.
Notify the developer of this component that a failure has occurred and
provide them with the information below.
Component Prog ID: 0[ODBC][Env e6f14e8]
Method Name: IDispenserDrive r::DestroyResou rce
Process Name: w3wp.exe
Exception: C0000005
Address: 0x7C82F583
Call Stack:
ntdll!RtlGetLas tWin32Error + 0xc0
ntdll!RtlAlloca teHeap + 0x58d
myodbc3!LoadByO rdinal + 0x560
myodbc3!SQLTran sact + 0x9018
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 5/25/2007
Time: 8:45:16 PM
User: N/A
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
ntdll.dll, version 5.2.3790.1830, fault address 0x0002f583.
--
Posted via a free Usenet account from http://www.teranews.com

May 26 '07 #1
5 3501
Firstly, a word of advice.

You are using Microsoft Windows Mail as your news reader so I recommend that
you connect directly to msnews.mocrosof t.com to access this and other MS
provided newsgroups. If you do then you won't have to worry about 'some
problem with your newgroup provider'.

Now to the issue at hand.

The message, "Attempted to read or write protected memory. This is often an
indication
that other memory is corrupt.", is a message associated with an
AccessViolation Exception which is defined as follows:

An access violation occurs in unmanaged or unsafe code
when the code attempts to read or write to memory that
has not been allocated, or to which it does not have
access. This usually occurs because a pointer has a bad
value. Not all reads or writes through bad pointers lead
to access violations, so an access violation usually
indicates that several reads or writes have occurred
through bad pointers, and that memory might be corrupted.
Thus, access violations almost always indicate serious
programming errors. In the .NET Framework version 2.0, an
AccessViolation Exception clearly identifies these serious
errors.

In programs consisting entirely of verifiable managed code,
all references are either valid or null, and access
violations are impossible. An AccessViolation Exception
occurs only when verifiable managed code interacts with
unmanaged code or with unsafe managed code.

I don't know where you got the impression that the memory chips might be at
fault but that is well wide of the mark. If your memory chips started
playing up then I suspect that you would probably not even be able to boot
the computer in question.

While the database it self might not be the problem, the ODBC driver you are
using certainly is and it certainly will contain some unmanaged code. This
is clearly indicated in the extract from the event log, so that is where you
need to start.

We can't really be of anymore help at this stage because we have no idea
what ODBC driver you are using.
"Jeff" <no**@nothingX. comwrote in message
news:46******** *************** @free.teranews. com...
>
Okay, I'm still new to vb.net 2005 - throught this was a hardware problem,
but now I don't know.
(I'm having some problem with my newgroup provider, so hopefully this will
go through)

This problem just started about a week ago, before all was fine. I'm using
the code below to access a mysql database. On the line indicated when the
connection is opened, the application has been sporatically drawing an
error. It doesn't occur very often - so I don't understand what's going
on. The app reports

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

Okay - so perhaps a bad stick of memory - so I pulled one of the two
sticks temporarily and the problem seemed to go away. Nothing for about a
week. ...but now I got the same error. I get similar errors in the event
log of the server (W2K3 IIS6).

I can't see how this has anything to do with my code since the problem is
only periodic. I don't know if it is due to the underlying visual studio,
but if I understand correctly, w3wp.exe refers to IIS. there is nothing in
any error messages referring to mysql, so I can't see that the database is
the problem.

Can anyone tell me what might be going on?

Jeff
Try
Dim MyCommand As New OdbcCommand(sb. ToString, MyConn)
MyCommand.Comma ndType = CommandType.Tex t
MyConn.Open() ' drawing the
bad memory error here also.
Dim dr As OdbcDataReader =
MyCommand.Execu teReader(Comman dBehavior.Singl eRow)
Using (dr)
Event Type: Error
Event Source: COM+
Event Category: Unknown
Event ID: 4786
Date: 5/25/2007
Time: 8:45:16 PM
User: N/A
Description:
The system has called a custom component and that component has failed and
generated an exception. This indicates a problem with the custom
component. Notify the developer of this component that a failure has
occurred and provide them with the information below.
Component Prog ID: 0[ODBC][Env e6f14e8]
Method Name: IDispenserDrive r::DestroyResou rce
Process Name: w3wp.exe
Exception: C0000005
Address: 0x7C82F583
Call Stack:
ntdll!RtlGetLas tWin32Error + 0xc0
ntdll!RtlAlloca teHeap + 0x58d
myodbc3!LoadByO rdinal + 0x560
myodbc3!SQLTran sact + 0x9018
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 5/25/2007
Time: 8:45:16 PM
User: N/A
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
ntdll.dll, version 5.2.3790.1830, fault address 0x0002f583.
--
Posted via a free Usenet account from http://www.teranews.com
May 26 '07 #2

"Stephany Young" <noone@localhos twrote in message
news:ue******** ******@TK2MSFTN GP06.phx.gbl...
>
I recommend that you connect directly to msnews.mocrosof t.com to access
this and other MS provided newsgroups.
Done. Thanks
In programs consisting entirely of verifiable managed code,
all references are either valid or null, and access
violations are impossible.
While the database it self might not be the problem, the ODBC driver you
are using certainly is and it certainly will contain some unmanaged code.
This is clearly indicated in the extract from the event log, so that is
where you need to start.

We can't really be of anymore help at this stage because we have no idea
what ODBC driver you are using.
I believe that I have MySql 3.51.12 ODBC driver. I just checked their site
and see that they have a 3.51.15 driver out and perhaps changing might help?

I get the general idea of your helpful comments, but I'm a bit new and some
of the specifics/implications are a bit over my head.

Are you suggesting that the entire driver is written incorrectly, there
might be a bug in the particular version I have, or it is hard to tell?

Jeff

May 26 '07 #3
It's not a matter of believing if you have such annd such a driver. You
should know for absolute sure what it is. If you don't know then check!

I was suggesting nothing about their driver because I don't know anything
about it. All I was pointing out was what was recorded in the event log.

"Jeff" <no**@nothingX. comwrote in message
news:uo******** ******@TK2MSFTN GP06.phx.gbl...
>
"Stephany Young" <noone@localhos twrote in message
news:ue******** ******@TK2MSFTN GP06.phx.gbl...
>>
I recommend that you connect directly to msnews.mocrosof t.com to access
this and other MS provided newsgroups.

Done. Thanks
> In programs consisting entirely of verifiable managed code,
all references are either valid or null, and access
violations are impossible.
>While the database it self might not be the problem, the ODBC driver you
are using certainly is and it certainly will contain some unmanaged code.
This is clearly indicated in the extract from the event log, so that is
where you need to start.

We can't really be of anymore help at this stage because we have no idea
what ODBC driver you are using.

I believe that I have MySql 3.51.12 ODBC driver. I just checked their
site and see that they have a 3.51.15 driver out and perhaps changing
might help?

I get the general idea of your helpful comments, but I'm a bit new and
some of the specifics/implications are a bit over my head.

Are you suggesting that the entire driver is written incorrectly, there
might be a bug in the particular version I have, or it is hard to tell?

Jeff
May 26 '07 #4

"Stephany Young" <noone@localhos twrote in message
news:uL******** ******@TK2MSFTN GP04.phx.gbl...
It's not a matter of believing if you have such annd such a driver. You
should know for absolute sure what it is. If you don't know then check!

I was suggesting nothing about their driver because I don't know anything
about it. All I was pointing out was what was recorded in the event log.

Okay then, it is most definitely mysql 3.15.12 dated 10/15/2005

I must admit that I don't do this full time and I'm largely self-taught. If
someone gets me started and I can figure out what to read I can usually go
from there. But when I see an error message that says something about memory
possibly being corrupt, I assume that this means a hardware problem. There
are memory testing programs available, but I haven't yet used the one that I
have as it would require me to take the server down for a few hours while
the thing ran, and I have people accessing it right now.

In reading more on the web, others are reporting some problems with that
driver version, but I suspect that they will report problems with all
drivers sooner or later. I'll probably update to the newest driver and see
if that solves the problem. If you or anyone can see any way that this might
be an issue caused by my code or by asp.net I would appreciate a hint to
point me in the right direction.

Jeff

May 26 '07 #5

"Jeff" <no**@nothingX. comwrote in message
news:O9******** ******@TK2MSFTN GP03.phx.gbl...
>
Okay then, it is most definitely mysql 3.15.12 dated 10/15/2005
Oops, that was supposed to be 3.51.12

--
Posted via a free Usenet account from http://www.teranews.com

May 26 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8919
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input onclick="javaScript:alert('document.forms(0)='+document.forms(0)); parent.myFunc(document.forms(0));" type="button" value="Open" name="Button" ID="Button"> The strange part is that the debug alert says that the document.forms(0) is an object så all seem to be well. But...
25
3719
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's machines. The code opens MS Word through Automation and then opens a particular Word doc. It's still working fine on most machines; but on one or two of them, the user is getting an Automation Error. The code used is as follows: Dim objWord As...
0
328
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\spsweb\0e3514bf\cb1844e7\assembly\dl2\3b163f 16\00452d31_84e5c301\infragistics.webui.ultrawebgrid.v3.dll' could not be found
6
1694
by: Gary | last post by:
I have an application that has been working just fine for a couple of years. It queries a SQL database and returns some formatted data back to the client. I have a new client, who has a larger database than any of our previous customers. For example, the query to build the datatable now takes about 2 minutes instead of one minute or less. This is a third party database we are integrating with. He is getting very strange results. For...
5
1733
by: Nathan Sokalski | last post by:
When I view my index.aspx page any time after the first time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263
0
3568
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage requests database, and query execution time exceeds 30 seconds, the following error reported: ===
11
2588
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating temperatures. T = 20 degrees at all times.... The 2D T-array looks like this:
1
1545
by: JoReiners | last post by:
Hello, I have a really strange problem. I'm unable to figure it out on my own. I parse very simple xml documents, without any check for their form. These files look very similar and are encoded in UTF-8. Now minidom is always able to parse these files with minidom.parse("file") . Now when fetching I use this expression: xmldoc.getElementsByTagName('DocNumb').firstChild.data.encode('latin1')
11
2482
by: Mike C# | last post by:
Hi all, I keep getting a strange error and can't pin it down. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. However I'm not purposely requesting that the Runtime terminate in an "unusual way." The line that is causing me headaches is:
3
1826
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error is intermittent -- sometimes it happens and sometimes not from the same screen with the same data. Here is the error:
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8797
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7401
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2791
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.