Solved

Error for getitem and insertitem

Posted on 1997-05-20
3
345 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to convert c++ code to Android App 3 97
getting a fire fox page (view page source ) in c++ 6 42
I could not build boost code, 10 88
Why isn't object file created? 6 59
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

803 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