--- a/targets/Win32/plc_Win32_main.c Fri Dec 12 17:54:17 2008 +0100
+++ b/targets/Win32/plc_Win32_main.c Mon Dec 15 08:41:16 2008 +0100
@@ -65,7 +65,7 @@
HANDLE PLC_thread;
HANDLE debug_sem;
HANDLE wait_sem;
-#define MAX_SEM_COUNT 10
+#define MAX_SEM_COUNT 1
int startPLC(int argc,char **argv)
{
@@ -147,12 +147,10 @@
return __debug_tick;
}
-/* Called by PLC thread when debug_publish finished
+/* Called by PLC thread when debug_pu//blish finished
* This is supposed to unlock debugger thread in WaitDebugData*/
void InitiateDebugTransfer()
{
- /* Leave debugger section */
- ReleaseSemaphore(debug_sem, 1, NULL);
/* remember tick */
__debug_tick = __tick;
/* signal debugger thread it can read data */