Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
mkarta #1
Member since Aug 2015 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: XMPP with Windows Service
Hey,

I'm working on a project with the XMPP library, and I don't get the BOSH events.
At first the project was a Windows Form Application, everything worked perfectly and I got the BOSH events.
But after I've changed my project to Windows process the events are not working anymore.

this is the code of my process:

  1. public MyService()
  2. {
  3.     InitializeComponent();
  4.     eventLog1 = new System.Diagnostics.EventLog();
  5. if (!System.Diagnostics.EventLog.SourceExists("MySource"))
  6. {
  7. System.Diagnostics.EventLog.CreateEventSource("MySource","MyNewLog");
  8. }
  9. eventLog1.Source = "MySource";
  10. eventLog1.Log = "MyNewLog";
  11.  
  12.     fcm = new RT.FinesseCommManager();
  13.     fcm.NewMessage += new NewMessageEventHandler(fcm_NewMessage);
  14.     fcm.LoggedIn += new System.EventHandler(fcm_Loggedin);
  15.     fcm.FinesseAPIURL = FinesseAPIURL;
  16.  
  17.     eventLog1.WriteEntry("my service connected events to bosh");
  18. }

Code has no errors or warnings.
The "LoggedIn" event is fired but not the "NewMessage".
I've a System.Timers.Timer that keep on firing the tick event (which means the rest of the code works fine).

What am I doing wrong?
Thanks in advanced
This post was edited on 2015-08-10, 10:24 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
try to set:

  1. XmppClient.AutoInvoke = false;
Avatar
mkarta #3
Member since Aug 2015 · 2 posts
Group memberships: Members
Show profile · Link to this post
Still not working
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
just telling us it does not work is not enough.

  • Please post the MatriX code you are using, or at least the relevant parts. Or attach a test where where we can reproduce your problem.
  • Attach you Debug Xml
  • Subscribe to the MatriX OnError handler to see if there are any errors thrown
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS