diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
index 27e3164ee..5895316fe 100644
--- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
+++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
@@ -92,6 +92,7 @@
+
@@ -107,6 +108,7 @@
+
diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters
index eb06d261a..1a73f9e3d 100644
--- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters
+++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters
@@ -56,6 +56,9 @@
Header Files
+
+ Header Files
+
@@ -85,6 +88,9 @@
Source Files
+
+ Source Files
+
diff --git a/CefSharp.BrowserSubprocess.Core/CefTaskScheduler.cpp b/CefSharp.BrowserSubprocess.Core/CefTaskScheduler.cpp
new file mode 100644
index 000000000..69fd08e46
--- /dev/null
+++ b/CefSharp.BrowserSubprocess.Core/CefTaskScheduler.cpp
@@ -0,0 +1,21 @@
+// Copyright © 2010-2013 The CefSharp Project. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
+
+#include "Stdafx.h"
+#include "CefTaskScheduler.h"
+
+namespace CefSharp
+{
+ void CefTaskWrapper::Execute()
+ {
+ try
+ {
+ _scheduler->ExecuteTask(this);
+ }
+ catch (Exception^)
+ {
+
+ }
+ };
+}
\ No newline at end of file
diff --git a/CefSharp.BrowserSubprocess.Core/CefTaskScheduler.h b/CefSharp.BrowserSubprocess.Core/CefTaskScheduler.h
new file mode 100644
index 000000000..513ae3174
--- /dev/null
+++ b/CefSharp.BrowserSubprocess.Core/CefTaskScheduler.h
@@ -0,0 +1,69 @@
+// Copyright © 2010-2013 The CefSharp Project. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
+
+#pragma once
+
+#include "Stdafx.h"
+#include
+
+using namespace System;
+using namespace System::Threading::Tasks;
+using namespace System::Runtime::InteropServices;
+
+namespace CefSharp
+{
+ ref class CefTaskScheduler;
+
+ class CefTaskWrapper
+ {
+ public:
+ gcroot _task;
+ gcroot _scheduler;
+ void Execute();
+
+ CefTaskWrapper(Task^ task, CefTaskScheduler^ scheduler) :
+ _task(task),
+ _scheduler(scheduler)
+ {
+ };
+
+ IMPLEMENT_REFCOUNTING(CefTaskWrapper)
+ };
+
+ public ref class CefTaskScheduler : TaskScheduler
+ {
+ public:
+ cef_thread_id_t _thread;
+
+ CefTaskScheduler(cef_thread_id_t thread) :
+ _thread(thread)
+ {
+ };
+
+ virtual void QueueTask(Task^ task) override
+ {
+ auto taskwrapper = CefRefPtr(new CefTaskWrapper(task, this));
+
+ CefPostTask(_thread, NewCefRunnableMethod(taskwrapper.get(), &CefTaskWrapper::Execute));
+ };
+
+ void ExecuteTask(CefRefPtr wapper)
+ {
+ TryExecuteTask(wapper->_task);
+ };
+
+ protected:
+
+ virtual bool TryExecuteTaskInline(Task^ task, bool taskWasPreviouslyQueued) override
+ {
+ return false;
+ };
+
+ virtual IEnumerable^ GetScheduledTasks() override
+ {
+ return nullptr;
+ };
+ typedef void(*Executor)(CefTaskWrapper*);
+ };
+}
\ No newline at end of file
diff --git a/CefSharp.BrowserSubprocess/Program.cs b/CefSharp.BrowserSubprocess/Program.cs
index cda1cdc32..f8cae7864 100644
--- a/CefSharp.BrowserSubprocess/Program.cs
+++ b/CefSharp.BrowserSubprocess/Program.cs
@@ -16,7 +16,7 @@ namespace CefSharp.BrowserSubprocess
{
Kernel32.OutputDebugString("BrowserSubprocess starting up with command line: " + String.Join("\n", args));
- //MessageBox.Show("Please attach debugger now", null, MessageBoxButtons.OK, MessageBoxIcon.Information);
+ MessageBox.Show("Please attach debugger now", null, MessageBoxButtons.OK, MessageBoxIcon.Information);
int result;