473,765 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The Memory Could Not Be "Written"

2 New Member
My Application is C# winform

I am facing below error at the time of form close and end of Dispose() method .

The instruction at "0xXXXXXXXX " referenced memory at "0xXXXXXXXX ", The memory could not be "written". Click on OK to terminate that program.

Please help me how to avoid / catch this error .

Thanks.
Dec 26 '12 #1
3 2337
zmbd
5,501 Recognized Expert Moderator Expert
The instruction at "0xXXXXXXXX " referenced memory at "0xXXXXXXXX ", The memory could not be "written". Click on OK to terminate that program.
Is that the EXACT error message you are receiving? I expect not; therefor, if you would like help, then you need to provide the EXACT error message. Additionally, at least a description of what your program is attempting to at the time the error is issued is at minimum required.
Dec 26 '12 #2
USC2020
2 New Member
Thanks zmbd . The exact message is

The instruction at "0x2fc897be " referenced memory at "0x00000028 ", The memory could not be "written". Click on OK to terminate that program .
Dec 26 '12 #3
zmbd
5,501 Recognized Expert Moderator Expert
Before you post any code, you need to double check that things actually compiled. As I don't know which complier you're using... is it possible to set a break point and then step thru the code.
IFF (and I do mean IF) I understand, (this is a guess) it appears that something in your code doing is trying to overwrite an inuse/restricted register
Dec 26 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

43
5126
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is relative NOT to the immediate script that is including it, but is relative to the top-level calling script. In practice, this means that you have to constantly worry and adjust paths in includes, based on the startup scripts that call these...
5
21988
by: Geert-Pieter Hof | last post by:
Hello, I have written an application in Visual Basic 6.0 Professional SP5 that reads data from an Excel workbook by using ADO. When I close the application, I get the error: 'The instruction at "0x01b302bd" referenced memory at "0xb52ad202". The memory could not be "written"' - this only happens with the compiled exe (both P-code and native code), but
18
8081
by: Leslaw Bieniasz | last post by:
Cracow, 28.10.2004 Hello, I have a program that intensively allocates and deletes lots of relatively small objects, using "new" operator. The objects themselves are composed of smaller objects, again allocated using "new". From my tests I deduce that a considerable part of the computational time is spent on the memory allocation, which makes the program substantially slower compared to the equivalent code written using
1
4295
by: Pablo | last post by:
Hi, there, I have a simple MS ACCESS application. It supposes to print one report. It works fine in my computer, it also works fine in some other computers, but it stops working in one of the computers. When I click the button which supposes to activate the report, nothing instead an error messages comes up 'The instruction at "0x77fcb397" referenced memory at "0x491acfb8". The memory could not be "written"' I even cannot open any of the...
32
2265
by: Fresh Air Rider | last post by:
Hi I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by 70%. Surely this is going to de-skill or dumb down the developer's task and open up the task of web development to less qualified and trained staff. Tell me if I'm wrong.
93
3996
by: jacob navia | last post by:
In this group there is a bunch of people that call themselves 'regulars' that insist in something called "portability". Portability for them means the least common denominator. Write your code so that it will compile in all old and broken compilers, preferably in such a fashion that it can be moved with no effort from the embedded system in the coffe machine to the 64 bit processor in your desktop.
37
3984
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as a function
1
2270
by: Joe Peterson | last post by:
I've been doing a lot of searching on the topic of one of Python's more disturbing issues (at least to me): the fact that if a __del__ finalizer is defined and a cyclic (circular) reference is made, the garbage collector cannot clean it up. First of all, it seems that it's best to avoid using __del__. So far, I have never used it in my Python programming. So I am safe there. Or am I? Also, to my knowledge, I have never created a...
3
2401
by: mabubakarpk | last post by:
I am facing problem when I open vb6.0 exe file. I make programe in vb6.0 and I deploy its exe in different computers when I open this exe file it gives me message. "The Instruction at "0x2682bacf" referenced memory at "0x00000000". The memory could not be "written". Cick Ok to terminate.Clik Cancel to debug the programe. Plz guid me what can I do to rectify this problem. Operating system : Windows 2000 some computers ...
94
30349
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock Statement (C# Reference) statement to serialize access. " But when is it better to use "volatile" instead of "lock" ?
0
9568
marktang
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...
0
9399
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
10007
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
9835
tracyyun
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...
1
7379
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
6649
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();...
1
3924
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
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
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.