problem with JID
From: "Gerardo Perez" <gerardop@xxxxxxxxxxxxxxxxx>
Date: Tue, 20 May 2008 01:50:51 +0200
Hi, I just started using gloox, so I am still understanding how does it
works, my problem is when I try to create an instance of JID, this is my
code:

void BotIMM::Start (string jidStr)
{  
  JID jid( jidStr );  //--> Crash here
  j = new Client( jid, "password" );
  j->registerMessageHandler( this );
  j->setPresence( PresenceAvailable, 5 );
  j->connect();
}

I also tried using but I got the same error:

  jid->setUsername("username");
  jid->setServer("172.16.6.213");
  jid->setResource("gloox");

The code is compiling Ok, but when I run the application, it crashes when
trying to instantiate jid, I'm getting the following error: Access Violation
reading location 0xccccccccc. I'm using Visual Studio 2005 so I don't know
if I'm missing some compiler configuration. I also noticed that libidn has
some code related to strings and JID, so I tried to add libidn to gloox but
I couldn't because I get some compilation errors in the profiles size
stringprep.h.

Thanks in advance for your advice....



-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx