summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2009-10-15 10:26:27 +0000
committerfcolin2009-10-15 10:26:27 +0000
commit473bf59297a9c8010fb35f505c872024ae3d259d (patch)
treeba296d860b9ecda9101b76f1eea4407daa997a38 /Ivy/IvyApplication.cxx
parent3bd1423d9bd7374c2d39f9817e3a1caa836f86e6 (diff)
downloadivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.zip
ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.tar.gz
ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.tar.bz2
ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.tar.xz
correction bug threaded IvyApplication
correction checkconnected self
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index 4b41bbe..ab0cd9e 100644
--- a/Ivy/IvyApplication.cxx
+++ b/Ivy/IvyApplication.cxx
@@ -50,6 +50,7 @@ IvyApplication::IvyApplication(Ivy * bus)
appname = "Unknown";
AppConnectedCallbackCalled = false;
readyToSend = 0;
+ regexp_in.clear();
InitializeCriticalSection(&m_SendReadySection );
}
@@ -128,7 +129,6 @@ void IvyApplication::OnReceive(char * line)
{
TRACE("Quitting bad format %s\n", line);
SendMsg(Error, Error, "bad format request expected 'type id ...'");
-// bus->RemoveApplication( this );
Close();
return;
}
@@ -141,9 +141,7 @@ void IvyApplication::OnReceive(char * line)
TRACE("Quitting %s\n", line);
#endif //IVY_DEBUG
-// bus->RemoveApplication( this );
OnClose(0);
- //Close();
break;
case Error:
@@ -185,7 +183,6 @@ void IvyApplication::OnReceive(char * line)
regexp_str_in.resize( id + 1 );
}*/
regexp_in[ id ] = exp;
- regexp_str_in[ id ] = arg;
#ifdef IVY_DEBUG
TRACE("Adding regexp[%d]='%s' size: %d\n",id,arg,regexp_in.size());
#endif //IVY_DEBUG
@@ -199,8 +196,7 @@ void IvyApplication::OnReceive(char * line)
if ( regexp_in[id] )
{
exp = regexp_in[ id ];
- bus->CallBindingRemoveCallback( this, id, regexp_str_in[id].c_str() );
-
+ bus->CallBindingRemoveCallback( this, id, exp->getExpression() );
delete exp;
regexp_in[ id ] = NULL;
}
@@ -234,7 +230,6 @@ void IvyApplication::OnReceive(char * line)
TRACE("Quitting already connected %s\n", appname.c_str());
target->SendMsg( Error, Error, "already connected" );
- // bus->RemoveApplication( target );
target->Close();
}
}
@@ -348,7 +343,6 @@ void IvyApplication::OnClose(int nErrorCode)
delete iter->second;
regexp_in.clear();
Close();
- //bus->RemoveApplication( this );
}
int IvyApplication::SendMsg(const char *message)