Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error for getitem and insertitem

Posted on 1997-05-20
3
Medium Priority
?
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
md041797 earned 20 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

730 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