Hi,
I am getting the error message
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
It was not coming until yet, for around 2 months. Now, may be the records
have increased and so i am getting this.
anyone has any idea why and when do we get this.
Its a windows based application with c# 2.0 and .Net Framework 2.0.
Regards,
Sugandh Jain 6 49910
Are you using any Interop in the application?
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"Sugandh Jain" <su**********@n irvana-sol.comwrote in message
news:eD******** ******@TK2MSFTN GP02.phx.gbl...
Hi,
I am getting the error message
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
It was not coming until yet, for around 2 months. Now, may be the records
have increased and so i am getting this.
anyone has any idea why and when do we get this.
Its a windows based application with c# 2.0 and .Net Framework 2.0.
Regards,
Sugandh Jain
Hi,
"Sugandh Jain" <su**********@n irvana-sol.comwrote in message
news:eD******** ******@TK2MSFTN GP02.phx.gbl...
Hi,
I am getting the error message
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
What other memory?
You need to provide more details about your app
Hi,
>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
This whole sentence is the part of error message. even I am wondering what
other memory it is talking about.
It is a Windows Based application and I am getting it in the getter of self
defined Indexer for a collection class..
code for the indexer is as follows:
public Position this[Guid positionIdToFin d]
{
get
{
Position foundPosition = null;
foreach (Position position in this)
{
if (position.ID.Eq uals(positionId ToFind))
{
foundPosition = position;
break;
}
}
return foundPosition;
}
set
{
for (int i = 0; i < this.Count; i++)
{
if (this[i].ID.Equals(posi tionIdToFind))
{
this[i] = value;
break;
}
}
}
}
Is there somethingwrong with this indexer?
Regards,
Sugandh
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
message news:OZ******** ******@TK2MSFTN GP05.phx.gbl...
Hi,
"Sugandh Jain" <su**********@n irvana-sol.comwrote in message
news:eD******** ******@TK2MSFTN GP02.phx.gbl...
>Hi, I am getting the error message Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
What other memory?
You need to provide more details about your app
"Kevin Spencer" wrote:
Are you using any Interop in the application?
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
I am getting the same error in a VS.NET 2005 application working with
Oracle9i Client 9.2.0.1.0.
The error occurs when I call an "oracleConnecti on.Open()". The application
hangs, and debugging got me this error message.
By the way, I AM using Interop.PCMCOML ib.
I've been chasing this error for some time now and you mentioning Interop
gave me some hope you might know something that could help me.
The message only appears on a couple of PCs, and is working fine for the
others.
So, any ideas?
Hi,
This is the scene:
I have a dll which processes a text file input of data. The data referenced
in the Text file is extracted from the Db and loaded into datasets, where it
worked on, then when completed, uploaded back into the Db.
Here's the issue:
When processing small files, everything is cool. But when doing a 10k or
more line file, I get the same error message as described in this thread.
Now, I do use a unmanaged dll written in Deplhi, but if that is the problem,
why is all smooth when processing small (3k lines) files.
Hope you can help!
"Sugandh Jain" wrote:
Hi,
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
This whole sentence is the part of error message. even I am wondering what
other memory it is talking about.
It is a Windows Based application and I am getting it in the getter of self
defined Indexer for a collection class..
code for the indexer is as follows:
public Position this[Guid positionIdToFin d]
{
get
{
Position foundPosition = null;
foreach (Position position in this)
{
if (position.ID.Eq uals(positionId ToFind))
{
foundPosition = position;
break;
}
}
return foundPosition;
}
set
{
for (int i = 0; i < this.Count; i++)
{
if (this[i].ID.Equals(posi tionIdToFind))
{
this[i] = value;
break;
}
}
}
}
Is there somethingwrong with this indexer?
Regards,
Sugandh
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
message news:OZ******** ******@TK2MSFTN GP05.phx.gbl...
Hi,
"Sugandh Jain" <su**********@n irvana-sol.comwrote in message
news:eD******** ******@TK2MSFTN GP02.phx.gbl...
Hi,
I am getting the error message
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
What other memory?
You need to provide more details about your app
Im getting the exact same error message in a small winform application that I
converted from 1.1 to 2.0. The error occurs only on some of the PCs in which
the application is installed on. The error occurs specificaly in the
InitializeCompo nent method when setting the properties of a tab control.
What makes this really strange is that when I remote desktop connect to the
pc, the application will work correctly but when I login at the desktop it
will not work.
Below is a code snipet from the InitializeCompo nent() method where the code
crashes:
this.tabControl 1.Alignment = System.Windows. Forms.TabAlignm ent.Bottom;
this.tabControl 1.AllowDrop = true;
this.tabControl 1.Controls.Add( this.tabProduct ion);
this.tabControl 1.Controls.Add( this.tabProdSup p);
this.tabControl 1.Controls.Add( this.tabOther);
this.tabControl 1.Controls.Add( this.tabDevelop ment);
this.tabControl 1.Controls.Add( this.tabTest);
this.tabControl 1.Controls.Add( this.tabUA);
this.tabControl 1.Location = new System.Drawing. Point(15, 12);
this.tabControl 1.Name = "tabControl 1";
this.tabControl 1.SelectedIndex = 0;
this.tabControl 1.Size = new System.Drawing. Size(295, 285);
this.tabControl 1.TabIndex = 0;
Thanks,
Patrick This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: hiralparikh |
last post by:
Hi,
I am using .NET 2.0 and trying to use a function from a native DLL
file.
Here is the syntax that I am using:
definition:
public static extern String getPwd(String strServerName, String
strUserId);
|
by: Seok Bee |
last post by:
Dear Experts,
I have created a script to extract the Event Logs from the system into an
excel sheet. The logs are separated into 2 worksheets (Application Log and
System Log). After this excel file being created, it will be sent out via
email to the list of recipients.
I run the script on my notebook (also developed on th same machine) it works
fine. However, when I copy all the programs into the server which running on
Windows 2000...
|
by: Dhruba Bandopadhyay |
last post by:
I have a problem.
I have a C++ service and added a new API to it. I re-registered the service
and re-added the reference in my ASP.NET Visual Web Developer. However when
I call the new API I get:
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
|
by: XJ |
last post by:
Hi experts,
i try to use vb.net 2005 call dll, then give me "Attempted to
read or write protected memory.This is often an indication that other
memory is corrupt". i have chk some message others people posted, but
since still cannot, pls give me some commnet.(this dll run smoothly at
vb 6 )
module:
' example
Declare Function TwTsxInitPar Lib "TSDKVC.DLL" _
|
by: ianyian |
last post by:
Hi experts,
i try to use vb.net 2005 call C++ dll, then give me "Attempted
to
read or write protected memory.This is often an indication that other
memory is corrupt". i have chk some message others people posted, but
since still cannot, pls give me some commnet.(this dll run smoothly at
vb 6 )
module:
' example
| |
by: Ilkka |
last post by:
I have created an C++ application with Windows Forms, ADO and SQL server
2005. Now I need to change something and started debugging the code. Then
suddenly I receive an error.
"An unhandled exception of type 'System.AccessViolationException' occurred
in mscorlib.dll
Additional information: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt."
The progran ends on a windows form designer...
|
by: adypoly |
last post by:
Hi guys...
I am having a typical problem in using one of the native dll in C#
I'll explain what am trying to do, I've a dll written in C language which i am trying to include in my C# project, the solutions builds fine but once i try to run the program it gives an exception as "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" I am passing two integer pointer variables as the...
|
by: Scott Gravenhorst |
last post by:
Windows XP SP3
My application is set to open a SaveFile dialog when an exit is
requested. When I click the app's close button, the save dialog
opens, but when I click to change the folder, the exception occurs
pointing to FileSaveDialog1.ShowDialog(). The exception also
indicates some problem with system.drawing.dll.
The exception text is:
"Attempted to read or write protected memory. This is often an
|
by: sriram347 |
last post by:
Hi
I am a newbie to ASP.NET. I developed a web page (project type is web application) and I keep getting this error.
B]Error message :
"System.AccessViolation Exception attempted to read or write protected memory. this is often an indication that other memory is corrupt.... "
These are all the platform info :
Visual Studio 2005 (VB.NET) and ASP.NET 2.0.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |