Enable SEH exception handling in the VS2012 project

This commit is contained in:
Vinnie Falco
2013-06-10 17:11:10 -07:00
parent c23b088755
commit 124c28b0eb
17 changed files with 9 additions and 60 deletions

View File

@@ -17,6 +17,7 @@
<WarningLevel>Level3</WarningLevel> <WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>$(RepoDir);$(RepoDir)\src\cpp\leveldb;$(RepoDir)\src\cpp\leveldb\include;$(RepoDir)\src\cpp\protobuf\src;$(RepoDir)\src\cpp\protobuf\vsprojects;$(RepoDir)\build\proto;$(RepoDir)\Subtrees\beast;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>$(RepoDir);$(RepoDir)\src\cpp\leveldb;$(RepoDir)\src\cpp\leveldb\include;$(RepoDir)\src\cpp\protobuf\src;$(RepoDir)\src\cpp\protobuf\vsprojects;$(RepoDir)\build\proto;$(RepoDir)\Subtrees\beast;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
<ExceptionHandling>Async</ExceptionHandling>
</ClCompile> </ClCompile>
<Link> <Link>
<AdditionalDependencies>Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>

View File

@@ -1,13 +1,8 @@
// VFALCO TODO remove this when it's safe to do so.
#ifdef __APPLICATION__
#error Including Application.h is disallowed!
#endif
SETUP_LOG (RippleAddress) SETUP_LOG (RippleAddress)
RippleAddress::RippleAddress() : mIsValid(false) RippleAddress::RippleAddress ()
: mIsValid (false)
{ {
nVersion = VER_NONE; nVersion = VER_NONE;
} }

View File

@@ -34,6 +34,7 @@
#include <iostream> #include <iostream>
#include <list> #include <list>
#include <map> #include <map>
#include <queue>
#include <set> #include <set>
#include <stack> #include <stack>
#include <string> #include <string>
@@ -55,11 +56,14 @@
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <boost/mem_fn.hpp>
#include <boost/pointer_cast.hpp> #include <boost/pointer_cast.hpp>
#include <boost/program_options.hpp>
#include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_vector.hpp>
#include <boost/ref.hpp> #include <boost/ref.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/smart_ptr/shared_ptr.hpp> #include <boost/smart_ptr/shared_ptr.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <boost/thread/condition_variable.hpp> #include <boost/thread/condition_variable.hpp>

View File

@@ -1,5 +1,5 @@
#ifndef __APPLICATION__ #ifndef RIPPLE_APPLICATION_H
#define __APPLICATION__ #define RIPPLE_APPLICATION_H
// VFALCO TODO Fix forward declares required for header dependency loops // VFALCO TODO Fix forward declares required for header dependency loops
class IFeatures; class IFeatures;

View File

@@ -20,7 +20,6 @@
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include "Application.h"
#include "RPC.h" #include "RPC.h"
#include "RPCErr.h" #include "RPCErr.h"

View File

@@ -1,10 +1,4 @@
#include "Application.h"
#include "Transaction.h"
#include "HashPrefixes.h"
#include "LedgerConsensus.h"
#include "LedgerTiming.h"
SETUP_LOG (NetworkOPs) SETUP_LOG (NetworkOPs)
// This is the primary interface into the "client" portion of the program. // This is the primary interface into the "client" portion of the program.

View File

@@ -1,12 +1,4 @@
#include "Pathfinder.h"
#include <queue>
#include <boost/foreach.hpp>
#include "Application.h"
SETUP_LOG (Pathfinder) SETUP_LOG (Pathfinder)
/* /*

View File

@@ -1,13 +1,4 @@
#include "PeerDoor.h"
#include <iostream>
#include <boost/bind.hpp>
#include <boost/mem_fn.hpp>
#include "Application.h"
SETUP_LOG (PeerDoor) SETUP_LOG (PeerDoor)
using namespace std; using namespace std;

View File

@@ -1,5 +1,4 @@
#include "RPCDoor.h" #include "RPCDoor.h"
#include "Application.h"
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include <iostream> #include <iostream>

View File

@@ -11,7 +11,6 @@
#include "Pathfinder.h" #include "Pathfinder.h"
#include "RPCHandler.h" #include "RPCHandler.h"
#include "RPCSub.h" #include "RPCSub.h"
#include "Application.h"
#include "AccountItems.h" #include "AccountItems.h"
#include "Wallet.h" #include "Wallet.h"
#include "RippleCalc.h" #include "RippleCalc.h"

View File

@@ -1,6 +1,5 @@
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include "Application.h"
#include "RPCSub.h" #include "RPCSub.h"
#include "CallRPC.h" #include "CallRPC.h"

View File

@@ -11,7 +11,6 @@
#include <boost/pointer_cast.hpp> #include <boost/pointer_cast.hpp>
#include "WSDoor.h" #include "WSDoor.h"
#include "Application.h"
#include "CallRPC.h" #include "CallRPC.h"
#include "LoadManager.h" #include "LoadManager.h"
#include "RPCErr.h" #include "RPCErr.h"

View File

@@ -4,7 +4,6 @@
//#include "../websocketpp/src/sockets/autotls.hpp" //#include "../websocketpp/src/sockets/autotls.hpp"
//#include "../websocketpp/src/websocketpp.hpp" //#include "../websocketpp/src/websocketpp.hpp"
#include "Application.h"
#include "WSConnection.h" #include "WSConnection.h"
#include "WSHandler.h" #include "WSHandler.h"

View File

@@ -1,8 +1,6 @@
#ifndef __WSHANDLER__ #ifndef __WSHANDLER__
#define __WSHANDLER__ #define __WSHANDLER__
#include "Application.h"
extern void initSSLContext(boost::asio::ssl::context& context, extern void initSSLContext(boost::asio::ssl::context& context,
std::string key_file, std::string cert_file, std::string chain_file); std::string key_file, std::string cert_file, std::string chain_file);

View File

@@ -1,15 +1,4 @@
#include <iostream>
#include <boost/asio.hpp>
#include <boost/foreach.hpp>
#include <boost/program_options.hpp>
#include <boost/test/included/unit_test.hpp>
#include "Application.h"
#include "CallRPC.h"
#include "RPCHandler.h"
namespace po = boost::program_options; namespace po = boost::program_options;
// VFALCO TODO make these singletons that initialize statically // VFALCO TODO make these singletons that initialize statically

View File

@@ -1,7 +1,3 @@
//#include <boost/test/unit_test.hpp>
//#include <boost/thread.hpp>
//#include <boost/date_time/posix_time/posix_time.hpp>
//#include "Application.h"
class LoadFeeTrack : public ILoadFeeTrack class LoadFeeTrack : public ILoadFeeTrack
{ {

View File

@@ -1,9 +1,4 @@
#include <boost/foreach.hpp>
#include "Application.h"
#include "LedgerTiming.h"
class Validations; class Validations;
SETUP_LOG (Validations) SETUP_LOG (Validations)