|
@@ -4,6 +4,7 @@
|
|
|
#include <Globals.h>
|
|
|
#include <InitDatei.h>
|
|
|
#include <KSGNetwork.h>
|
|
|
+#include <Network.h>
|
|
|
|
|
|
int KSGStart Framework::Start( Startparam p )
|
|
|
{
|
|
@@ -86,16 +87,17 @@ int KSGStart Framework::Start( Startparam p )
|
|
|
iDat->speichern();
|
|
|
Text *ipT = iDat->zWert( "ServerIP" );
|
|
|
unsigned short port = (unsigned short)TextZuInt( iDat->zWert( "ServerPort" )->getText(), 10 );
|
|
|
- iDat->release();
|
|
|
|
|
|
// Registrieren beim Server
|
|
|
if( !mainClient->registerSSL( ipT->getText(), port ) )
|
|
|
{
|
|
|
+ iDat->release();
|
|
|
Text err = "Fehler beim Registrieren des Clients: ";
|
|
|
err += mainClient->getLetzterFehler();
|
|
|
WMessageBox( 0, new Text( "Fehler" ), err.getThis(), MB_ICONERROR );
|
|
|
exit( 0 );
|
|
|
}
|
|
|
+ iDat->release();
|
|
|
|
|
|
// Speichere Server Adresse für andere Anwendungen
|
|
|
int klientNummer = mainClient->getClientId();
|
|
@@ -185,7 +187,6 @@ int KSGStart Framework::Start( Startparam p )
|
|
|
mainClient->unregister();
|
|
|
mainClient->release();
|
|
|
|
|
|
- ipT->release();
|
|
|
Network::Exit();
|
|
|
|
|
|
DateiRemove( new Text( "data/tmp" ) );
|
|
@@ -229,7 +230,6 @@ int KSGStart Framework::Start( Startparam p )
|
|
|
mainClient->unregister();
|
|
|
mainClient->release();
|
|
|
|
|
|
- ipT->release();
|
|
|
Network::Exit();
|
|
|
|
|
|
DateiRemove( new Text( "data/tmp" ) );
|