Proud::CMiniDumper Class Reference
Inheritance diagram for Proud::CMiniDumper:

Public Member Functions

PROUD_API void ManualFullDump ()
 
PROUD_API void ManualMiniDump ()
 

Static Public Member Functions

static PROUD_API MiniDumpAction Startup (const CMiniDumpParameter &parameter)
 
static PROUD_API void WriteDumpFromHere (const PNTCHAR *fileName, bool fullDump=false)
 
- Static Public Member Functions inherited from Proud::DllSingleton< CMiniDumper >
static CMiniDumperGetUnsafeRef ()
 
static PtrType GetSharedPtr ()
 

Additional Inherited Members

- Public Types inherited from Proud::DllSingleton< CMiniDumper >
typedef RefCount< CMiniDumperPtrType
 

Detailed Description

Mini dump module

Characterictics

  • This object creates .DMP files when server crash occurs.
  • .DMP can be opened by visual studio.net directly and helps tracking where error occurred.
  • The first cump file will be created even if there are multiple unhandled exceptionals occured from many thread simultaneously. Other thread will standby until dump ends. There will be no other problems while dumping the process by doing so.

General usage

  • This object is Singleton. This will become JIT creation by designating Delegate of this object. Delegate is designated by using Init(). From this point and then, dump program will automatically run when error occurs.
  • Dump() is used to create manual mini dump.

Member Function Documentation

PROUD_API void Proud::CMiniDumper::ManualMiniDump ( )

Create mini dump file by user calling.

static PROUD_API MiniDumpAction Proud::CMiniDumper::Startup ( const CMiniDumpParameter parameter)
static

It is an initialized function.

Parameters
cmdLinePlease insert Command-Line argument factor of application.

When an error occurs in application, ProudNet executes the application with new process.

void main(int argc, char* argv[])
{
...
CMiniDumpParameter parameter;
switch(CMiniDumper::GetSharedPtr()->Startup(parameter))
{
// After dump file creation at a new process due to error occurrence, this value will return.
// Please proceed with works (such as sending created dump file by email & error window management) that need to be done right after dump file creation.
...
break;
// After dump file creation at a new process by user calling, this value will return.
// In this case, you should not do anything.
break;
default: // MiniDumpAction_None
// Generally, this value returns when executing the application.
// At this time, you should proceed with the relevant works.
...
break;
}
}
static PROUD_API void Proud::CMiniDumper::WriteDumpFromHere ( const PNTCHAR *  fileName,
bool  fullDump = false 
)
static

Process status of calling this function as dump file

Parameters
fileNameName of dump file. Its extension must be .dmp.