473,321 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

The Memory Could Not Be "Written"

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 2325
zmbd
5,501 Expert Mod 4TB
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
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 Expert Mod 4TB
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
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...
5
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...
18
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...
1
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...
32
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...
93
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...
37
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...
1
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...
3
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"...
94
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.