Skip to content

Error "Collection was modified" when switching from one profile to another #4891

Closed

Description

@itg-assistant

Nico Henn asked 2025-10-26 19:45:06 UTC

I have a problem with Wisej 3.5 in VS2022 with the profiles. For example on a EmptyPage i added a Label and changed size and text on the "Default" layout.

I then switched to the "Phone" layout to adjust size and position for the mobile viewpoint. I am not using any containers in thix example.

Once i finished editing size and position of the label in the "Phone" layout i then want to go back to "Default" layout or to the "Phone Landscape" profile.

I then sometimes but not always get this error:

Collection was modified; enumeration operation may not execute

and i can't switch to other Profiles anymore. The only solution is to press the red X and by that deleting the current Layout / resetting it to Default. Then i can access the other profiles again.

I can't figure out whats causing this and what the solution might be. Its very annoying as it destroys already exiting profiles. For example if this error occurs after working on the "Phone" layout i can't access the Default, Tablet etc. layouts anymore.

Any ideas?

Thanks

Activity

  1. itg-assistant commented on Jun 17, 2026

    @itg-assistant
    Author

    Julie (ITG) answered 2025-10-27 14:56:02 UTC

    I tried with a new project and I am unable to reproduce. Can you please attach a reproducible test case? Delete the bin and obj folders before posting.

    Thanks,

    Julie

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions