CuteChat Messenger Global.ASAX File

Last post 01-30-2012, 7:08 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  05-02-2011, 3:34 PM 67411

    CuteChat Messenger Global.ASAX File

    So the global.asax file has this check
     
    CuteChat.ChatSystem.HasStarted
     
    My problem is that this check seems to come back false a lot of the time.  Say if a new folder is added to the site, this will trigger the global.asax method and this call.  As a result it will cause an error in the messenger. 
     
    What can I do to avoid this?  Thanks
     
        Public Overrides Sub Init()
            MyBase.Init()
            
            If Not CuteChat.ChatSystem.HasStarted Then
                CuteChat.ChatProvider.Instance = New DNNChatProvider()
                CuteChat.ChatSystem.Start(New CuteChat.AppSystem())
            End If
        End Sub
     
  •  01-30-2012, 7:08 AM 72871 in reply to 67411

    Re: CuteChat Messenger Global.ASAX File

    Hi mikemack,
     
    Please try
     
     SyncLock GetType(CuteChat.ChatSystem)
                If Not CuteChat.ChatSystem.HasStarted Then
                    CuteChat.ChatProvider.Instance = New DNNChatProvider()
                    CuteChat.ChatSystem.Start(New CuteChat.AppSystem())
                End If
            End SyncLock  
    Regards,
     
    Ken 
View as RSS news feed in XML