Hello!
Is it possible to get a system information in a string? (like the 1st section of a bugreport).
My software behaves strange on a customers computer, but it doesn't crash.
I'd like to put together a tool that collects some data, also the operating system etc.
Thanks,
Ralf S.
Generate system info without Exception?
Re: Generate system info without Exception?
Sorry for the late reply.
You have 2 options:
(1) madExcept.pas exports most of the functions used for generation the first section of the bug report. See here:
http://help.madshi.net/madExceptUnit.htm#IsUserAdmin
(2) You can also call "madExcept.CreateBugReport" and delete everything after the first empty line.
You have 2 options:
(1) madExcept.pas exports most of the functions used for generation the first section of the bug report. See here:
http://help.madshi.net/madExceptUnit.htm#IsUserAdmin
(2) You can also call "madExcept.CreateBugReport" and delete everything after the first empty line.
Re: Generate system info without Exception?
Superb, thanks! The only function that I am missing is one to generate a disk-info line like this one:madshi wrote: (1) madExcept.pas exports most of the functions used for generation the first section of the bug report. See here:
http://help.madshi.net/madExceptUnit.htm#IsUserAdmin
"free disk space : (C:) 75,85 GB (D:) 83,85 GB"
Cheers!
Ralf
Re: Generate system info without Exception?
You will find the code for that in madExcept.pas in this function:
function GetDiskStr(drive: AnsiChar) : AnsiString;
function GetDiskStr(drive: AnsiChar) : AnsiString;
Re: Generate system info without Exception?
Yeah, but you have to copy quite a bit of code around, simply cuttong out the GetDiskStr doesn't do it...madshi wrote:You will find the code for that in madExcept.pas in this function:
function GetDiskStr(drive: AnsiChar) : AnsiString;