I think I found something,
This makes more sense to me.
- Dim lobbies As New ArrayList()
- For Each Lobby as LobbyInfo In ChatApi.GetLobbyInfoArray()
- lobbies.Add(Lobby)
- Next
But now I'm getting the follingen error in step 6 when I add the addminCheck
- System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: ChatSystem already started at CuteChat.ChatSystem.Start(ChatSystem sys) at dValuate.EvalRunTime.EvaluateIt(OpenControl& MyForm, HtmlGenericControl& ControlPlace, HttpServerUtility& Server, HttpRequest& Request, HttpSessionState& session, HttpResponse& Response, String constring, String[] par, Int32 parcount, String Senderid) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SiennEngine.PBW.Run_OpenControl(String key, String cid, Boolean DebugMode, Boolean CreateAssembly, Boolean RunFromAssembly, UserControl& MyForm, String SenderId, HttpServerUtility& Server, HttpRequest& Request, HttpSessionState& session, HttpResponse& response, String constring, String[] par, Int32 parvulling, String source, String sourcefunction, HtmlGenericControl& ControlPlace)
Does someone kwow what I'm doing wrong?