--- a/src/hugin1/ptbatcher/PTBatcherGUI.cpp
+++ b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
@@ -177,7 +177,10 @@
         m_frame->GetHelpController().Initialize(m_xrcPrefix+wxT("data/hugin_help_en_EN.chm"));
 #endif
 		SetTopWindow(m_frame);
-		m_frame->Show(true);
+        if(!(m_frame->IsStartedMinimized()))
+        {
+            m_frame->Show(true);
+        }
 		m_server = new BatchIPCServer();
 		if (!m_server->Create(servername))
 		{
@@ -381,23 +384,30 @@
 }
 #endif
 
+#if wxCHECK_VERSION(2,9,0)
+#define RETURNEMPTYSTRING return wxEmptyString
+const void* BatchIPCConnection::OnRequest(const wxString& topic, const wxString& item, size_t *size, wxIPCFormat format)
+#else
+#define RETURNEMPTYSTRING return wxT("")
 wxChar* BatchIPCConnection::OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format)
-{
+#endif
+{
+    *size=wxNO_LEN;
 	BatchFrame *MyBatchFrame=wxGetApp().GetFrame();
 	if(item.Left(1)==wxT("A"))
     {
 		MyBatchFrame->AddToList(item.Mid(2));
-        return wxT("");
+        RETURNEMPTYSTRING;
     };
 	if(item.Left(1)==wxT("D"))
     {
         MyBatchFrame->AddToList(item.Mid(2),Project::DETECTING);
-        return wxT("");
+        RETURNEMPTYSTRING;
     };
 	if(item.Left(1)==wxT("P"))
     {
 		MyBatchFrame->ChangePrefix(-1,item.Mid(2));
-        return wxT("");
+        RETURNEMPTYSTRING;
     };
 	wxCommandEvent event;
 	event.SetInt(1);
@@ -438,7 +448,7 @@
 		wxCommandEvent myEvent(wxEVT_COMMAND_TOOL_CLICKED ,XRCID("tool_start"));
 		MyBatchFrame->GetEventHandler()->AddPendingEvent(myEvent);
 	};
-	return wxT("");
+    RETURNEMPTYSTRING;
 };
 
 wxConnectionBase* BatchIPCServer::OnAcceptConnection (const wxString& topic)