digrand...@gmail.com
unread,Apr 3, 2018, 11:42:43 AM4/3/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Crashpad-dev
Hi everyone,
I know there is many documentation on source code for crashpad, but is there any documentation, or example of how to integrate it in an application?
I fail all my try . When I start handler, an error message occured and the return of method is false.
[5204:8288:20180403,152110.161:ERROR registration_protocol_win.cc:84] TransactNamedPipe: Le canal de communication a ├®t├® ferm├®. (109)
I 'm trying to explore chromium but i can't generate solution from command " gn gen out\Default --ide=vs ".
This is my code to start handler:
#include "stdafx.h"
#include "Person.h"
#include "client/crashpad_client.h"
#include <string>
#include <map>
#include <vector>
int main()
{
crashpad::CrashpadClient client;
#ifdef _DEBUG
const base::FilePath handlerPath = base::FilePath(L"C:\\workspace\\crashpad\\crashpad\\out\\Debug\\crashpad_handler.exe");
const base::FilePath databasePath = base ::FilePath(L"C:\\workspace\\crashpad\\crashpad\\out\\Debug\\crashpad_database_util.exe");
const base::FilePath tempDir;
#else
const base::FilePath handlerPath = base::FilePath(L"C:\\workspace\\crashpad\\crashpad\\out\\Release\\crashpad_handler.exe");
const base::FilePath databasePath = base::FilePath(L"C:\\workspace\\crashpad\\crashpad\\out\\Release\\crashpad_database_util.exe");
const base::FilePath tempDir;
#endif
if (client.StartHandler(handlerPath, databasePath, base::FilePath(), std::string(), std::map<std::string, std::string>(), std::vector<std::string>(), true, false))
{
}
return 0;
}
Thanks for your help.
Fabien