Darkein
unread,Apr 23, 2009, 11:03:32 AM4/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparsh-ui
Hi,
Do you have Sources of a C++ Application for sparsh-ui.
I tried to create my own application but each time I run it, the
application is correctly connected but after the first touch
information sent to the server I have an exception:
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error>
> at memory location 0x00c9f6ac..
When I tried to Debug it I saw that my Application use:
Constructor
getGroupId
Constructor
getAllowedGestures 67108864
Constructor
getAllowedGestures 67108864
getAllowedGestures fin
And never ProcessEvent, even if I use a basic gesture like
TouchGesture.
This with the use of Java Server or C++ Server.
Thank you in advance.
Florent
Sources:
********************
ClientSparshUI.Cpp
*******************
#include "stdafx.h"
#include "ClientSparshUI.h"
#include ".\Gestures\GestureType.h"
int ClientSparshUI::getGroupId(Location location){
cout<<"getGroupId"<<endl;
return 3;
}
std::vector<int> ClientSparshUI::getAllowedGestures(int groupId){
std::vector<int> allowedGesture;
cout<<"getAllowedGestures "<<groupId<<endl;
allowedGesture.insert (allowedGesture.begin() ,
sparshui::TOUCH_GESTURE);
return allowedGesture;
}
void ClientSparshUI::ProcessEvent(int groupID,Event* event){
cout<<"ProcessEvent"<<endl;
}
ClientSparshUI::ClientSparshUI(void){}
**********************
AppSparshUI.cpp
**********************
static ServerConnection serverConnection=0;
static ClientSparshUI clientSparshUI=0;
DWORD WINAPI Thread( LPVOID arg )
{
serverConnection = new ServerConnection("localhost",
clientSparshUI);
serverConnection->run();
return 0;
}
BOOL Init()
{
clientSparshUI= new ClientSparshUI();
int Data_Of_Thread_1 = 1;
HANDLE Handle_Of_Thread_1 = 0;
Handle_Of_Thread_1 = CreateThread( NULL, 0,Thread, NULL, 0, NULL);
}