Highlighted
alfonsop
New Member.
50 views

Tree view memory access error

Hi,

I'm trying for the first time setting the configuration variable TV_EDITLABELS to 1 to allow the users to edit labels on tree views.

In my program, when I click on a tree view label, I get the expected MSG_TV_BEGINEDITLABEL message, but after I edit the contents of the label and hit Enter, I don't get the expected MSG_TV_ENDEDITLABEL message, but the program crashes with a "Memory access violation" system error message instead.

Any ideas of how could I fix this?

Thanks.

Labels (1)
Tags (1)
0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Tree view memory access error

What version are you using. I'm not getting a mav. Here's what I did - I used our treesamp.cbl program and added this to the tree-events paragraph:

when MSG_TV_BEGINEDITLABEL
display message box "start"
when MSG_TV_ENDEDITLABEL
display message box "done"

I run the program in debug, right click on a tree label and see the code goes to MSG_TV_BEGINEDITLABEL, change the tree item and use enter, then in the debugger I see the code goes to MSG_TV_ENDEDITLABEL.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.