Error en thread Room

Results 1 to 4 of 4
  1. #1
    Apprentice leof900 is offline
    MemberRank
    Jan 2015 Join Date
    6Posts

    Error en thread Room

    Error en thread Room cycle task for room 1: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
    at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
    at Mercury.HabboHotel.Rooms.RoomUserManager.OnCycle(Int32& idleCount) in c:\HabboHotel\Rooms\RoomUserManager.cs:line 1293
    at Mercury.HabboHotel.Rooms.Room.ProcessRoom() in c:\Users\HabboHotel\Rooms\Room.cs:line 761
    Help
    Last edited by leof900; 18-02-15 at 11:06 PM.


  2. #2
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: Error en thread Room

    Quote Originally Posted by leof900 View Post
    Help
    Please send the line 761 of Room and 1293 of RoomUserManager.cs

  3. #3
    Apprentice leof900 is offline
    MemberRank
    Jan 2015 Join Date
    6Posts

    Re: Error en thread Room

    GetRoomUserManager().OnCycle(ref idle);

    and

    foreach (RoomUser roomUser in this.UserList.Values)

  4. #4
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: Error en thread Room

    Quote Originally Posted by leof900 View Post
    GetRoomUserManager().OnCycle(ref idle);

    and

    foreach (RoomUser roomUser in this.UserList.Values)
    Try edit:
    foreach (RoomUser roomUser in this.UserList.Values)

    For this:
    foreach (RoomUser roomUser in this.UserList.Values.ToList())



Advertisement