ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Error using Popup menu in LayerMView
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


42 Posts

Posted - Jul 13 2019 :  09:53:49  Show Profile  Reply
1. Add to the "Layers" demo an Action "removelayer"

2. Copy the code of the procedure Tfmain.btnRemoveClick and paste it in the action procedure


3. Connect a popupmenu with the layermview and add the action to the menu

4. Run the demo and create some layers (for example 4)

5. Delete the top layer (#4) using the popup menu

The layer #4 will be removed but the error message "List index out of bounds (4)" appears. No error message appears when you remove another but the top layer or if you remove the layer #4 using the popup menu connected to the viewer.

Can you reproduce this behaviour and do you know a workaround in order to correct the error?

Thank you,


5522 Posts

Posted - Jul 15 2019 :  20:56:37  Show Profile  Reply
Hi Al

If the error goes away when you disconnect the TImageEnLayerMView then we have a fix.

Please confirm and email me.

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: