Solved

Error for getitem and insertitem

Posted on 1997-05-20
3
340 Views
Last Modified: 2012-05-04
I have created the mulit-column list control to show and treat data. When I run the program, the error ' The instruction at "0x10219a5c" referenced memory at "0x2fdf070a". The memory could not be "written".' was prompted. I have debugged the program and discover this error created by getitem and insertitem of CListCtrl.

What is the meaning of this error?
How to fix it?
Thank.
0
Comment
Question by:edward95
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
md041797 earned 10 total points
ID: 1163574
Grade your provious responses and maybe someone will help you
0
 
LVL 4

Expert Comment

by:md041797
ID: 1163575
Thanks for grading your responses.  Refuse these answers to re-queue them.  Sorry I was so loud.
0
 

Expert Comment

by:mzbd9w
ID: 2576360
One possibility:  We recently started experiencing this problem because we were not setting the mask on the data item before calling GetItem.  I haven't been able to find documentation indicating a need to set the mask; however, that does appear to be our problem.  The weird thing is, it worked when originally implemented.  We didn't have a problem until we started upgrading our OS Service Packs.  Sample code to set mask follows:
LV_ITEM lvi;
lvi.mask = LVIF_IMAGE | LVIF_STATE;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C++ get user from AD  (VS6) 7 55
Cross compile release version of c++ program for linux 2 131
C++ to C# code conversion issue 4 100
Path to  STL Map header file 1 44
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now