I just make a new cocos2dx project and all Additional lib configuration is good.but when i invoke like this:
m_ptrSmartFox->Connect( "127.0.0.1",9933 );
and debug step by step,I found that IP and port are not the value specified in the function but a random value.
please help me
The c++ sfs.Connect() not worked
Moderators: Lapo, Bax, MBagnati
Re: The c++ sfs.Connect() not worked
Hi,
I don't think I fully understand.
Is the connection not working? If so what error are you getting?
Thanks
I don't think I fully understand.
Is the connection not working? If so what error are you getting?
Thanks
Re: The c++ sfs.Connect() not worked
Yah,I got this error when i invoke like this
m_ptrSmartFox->Connect( "127.0.0.1",9933 );
First-chance exception at 0x759AC42D in NewCocosProject.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> > at memory location 0x0059F3B0.
Unhandled exception at at 0x759AC42D in NewCocosProject.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> > at memory location 0x0059F3B0.
m_ptrSmartFox->Connect( "127.0.0.1",9933 );
First-chance exception at 0x759AC42D in NewCocosProject.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> > at memory location 0x0059F3B0.
Unhandled exception at at 0x759AC42D in NewCocosProject.exe: Microsoft C++ exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> > at memory location 0x0059F3B0.
Re: The c++ sfs.Connect() not worked
Hi,
Please, can you give me additional information about the issue?
1) When you invoke
is there a SmartFoxServer running in localhost or is switched off?
2) You say
Which value do you see?
Is value 8080 for IP Port?
3) You say that you have some exceptions when invoke m_ptrSmartFox->Connect
Do you see these exceptions only in debug's logger...or the exceptions go up to your application?
Thanks
Massimo
Please, can you give me additional information about the issue?
1) When you invoke
Code: Select all
m_ptrSmartFox->Connect( "127.0.0.1",9933 );
is there a SmartFoxServer running in localhost or is switched off?
2) You say
I found that IP and port are not the value specified in the function but a random value.
Which value do you see?
Is value 8080 for IP Port?
3) You say that you have some exceptions when invoke m_ptrSmartFox->Connect
Do you see these exceptions only in debug's logger...or the exceptions go up to your application?
Thanks
Massimo
Re: The c++ sfs.Connect() not worked
thanks,This issue was caused by VS2013 compiler settings.i already fix
Who is online
Users browsing this forum: No registered users and 29 guests