Microsoft
Software
Hardware
Network
Question : attempted to read or write protected memory c# visual studio
I have an accounting program that has different types of transactions. I have had to add a lookup winform to each of these types. The lookups are practically indentical with the exception of the source of the data. For some peculiar reason, with one of these programs, if I go to one transaction and then another, on the second transaction when my code is called I get the messsage "attempted to read or write protected memory". This happens on both WXP and Vista computers. How do I even track down what is causing this? I am using VS 2008 C#. With the other programs I can open the window till the cows come home and never get this message, it is only this one. Is there some line I should be adding to my code to make sure it is completely removed from memory when the code is completed? Should I change the target framework to 3.0 or 3.5? Right now it is 2.0.
Attachments:
Mem-Error.bmp
(3.8 MB)
(File Type Details)
Memory Error
Answer : attempted to read or write protected memory c# visual studio
wow, quite a bit of code.
First thing I would do is comment this out
ViewJobLinkerForm.Dispose(
);
Random Solutions
Cisco ASA 5505 ssh default username and password
Problems with Accordion functionality
Passing argument to a function
How to make a password expire now?
Windows 7 BSOD STOP: c0000221 Unknown Hard Error ntdll.dll
how to use find control
How do I access setting in web.config file ?
Pivot table macro gives error subscript out of range
what is Relationship ?
Given a string{aab,cdb,aabbc,d$hhd
}remove duplicates and show the string as {ab,cdb,abc,d$h).Solve with linked lists in C#