CN101989229A - 基于delphi语言下的捕获系统异常的方法 - Google Patents

基于delphi语言下的捕获系统异常的方法 Download PDF

Info

Publication number
CN101989229A
CN101989229A CN 200910183033 CN200910183033A CN101989229A CN 101989229 A CN101989229 A CN 101989229A CN 200910183033 CN200910183033 CN 200910183033 CN 200910183033 A CN200910183033 A CN 200910183033A CN 101989229 A CN101989229 A CN 101989229A
Authority
CN
China
Prior art keywords
application system
timely
capturing system
exception based
language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200910183033
Other languages
English (en)
Inventor
杨际荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD
Original Assignee
ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD filed Critical ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD
Priority to CN 200910183033 priority Critical patent/CN101989229A/zh
Publication of CN101989229A publication Critical patent/CN101989229A/zh
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明属于计算机应用系统数据库技术领域,本发明属于计算机应用领域,是基于DELLPHI语言下的捕获系统异常的方法,此方法能及时的把应用系统出错的信息保存下来并及时截图并保存在相对应的目录中,也可以保存在数据库中或者通过网络发给其他AppServer处理,以分析故障原因,及时的排除故障。此方法做成通用的动态连接库后能广泛嵌入应用系统中。

Description

基于DELPHI语言下的捕获系统异常的方法
技术领域
本发明属于计算机语言应用领域,是基于DELLPHI语言下的捕获系统异常的方法,此方法可以把应用系统所出错的信息保存下来并截取出错图片并通过邮件发送到服务者中,此方法可广泛应用所有的开发人员,方便了系统服务人员的工作,提高了工作效率。
背景技术
在计算机里,由于应用系统在运行时发生许多不可意想的事情,由于使用人员无法解决在请求服务人员时,错误信息无法及时保存下来,而遭成信息不及时给服务人员或开发人员一定的难度,因此发明此方法,此方法能及时的把应用系统出错的信息保存下来并及时截图并保存在相对应的目录中,也可以保存在数据库中或者通过网络发给其他AppServer处理,以分析故障原因,及时的排除故障。此方法做成通用的动态连接库后能广泛嵌入应用系统中。
发明内容
此方法的发现主要运用DELPHI中存储文件类、图片存储机制、屏幕截取类来解决此方法。
首先先定义五个文件STRING变量和一个内容MemoryStream变量,五个STRING变量是错误文件名、日记文件记录,错误图片文件名,及日期变量名。
此方法在运行时先判明是否有错误日记文件,如果没有由创建此文件,如果存在则往文件中写入错误信息。此文件准确无误记录错误的信息和图片保存的名称及位置,根据此文件记录的信息可找到其截取的图片。
图片的截图是由DELPHI自带的内存变量进行的,此主要是通过JPG类来操作其主要定义如下:
var
  scrWidth,scrHeight:integer;
  DC:hDC;
  FBi tmap:TBi tmap;
  FJPEGImage:TJPEGImage;
begin
  DC:=Ge tDC(0);
  FBi tmap:=TBi tmap.Create;
  FJPEGImage:=TJPEGImage.Crea te;
try
  scrWidth:=Screen.Width;
  scrHeight:=Screen.Height;
  FBitmap.Width:=scrWidth;
  FBitmap.Height:=scrHeight;
  BitBlt(FBitmap.Canvas.Handle,0,0,scrWidth,scrHeight,DC,0,0,SRCCOPY);
FJPEGImage.Assign(FBitmap);
FJPEGImage.CompressionQuality:=75;
FJPEGImage.Compress;
AStream.Clear;
   FJPEGImage.SaveToStream(AStream);
   AStream.Position:=0;   finally
   FBitmap.Free;
   FJPEGImage.Free;
   ReleaseDC(0,DC);
end;
此方法很简单的截获图片并保存到相对应的目录中。

Claims (1)

1.基于DELLPHI语言下的捕获系统异常的方法,特征在于采用下列步骤:
1.由于此方法需要运用到其文件存储、图片截获及保存D类。
2.根据权利1的要求,则设置方法中的变量ErrorFile、FileName、title,MyDateString及AStream。
3.根据权利2的要求,赋值于变量中并执行保存特定的文件。
CN 200910183033 2009-08-05 2009-08-05 基于delphi语言下的捕获系统异常的方法 Pending CN101989229A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910183033 CN101989229A (zh) 2009-08-05 2009-08-05 基于delphi语言下的捕获系统异常的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910183033 CN101989229A (zh) 2009-08-05 2009-08-05 基于delphi语言下的捕获系统异常的方法

Publications (1)

Publication Number Publication Date
CN101989229A true CN101989229A (zh) 2011-03-23

Family

ID=43745771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910183033 Pending CN101989229A (zh) 2009-08-05 2009-08-05 基于delphi语言下的捕获系统异常的方法

Country Status (1)

Country Link
CN (1) CN101989229A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021358A (zh) * 2016-05-10 2016-10-12 深圳云之家网络有限公司 一种异常信息记录方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021358A (zh) * 2016-05-10 2016-10-12 深圳云之家网络有限公司 一种异常信息记录方法及系统

Similar Documents

Publication Publication Date Title
CN110347746B (zh) 一种异构数据库同步数据一致性校验方法及装置
US10503616B2 (en) Periodic data replication
US8560502B2 (en) Method and a system for replaying database workload with transactional consistency
US10353621B1 (en) File block addressing for backups
US9124669B2 (en) Cooperative client and server logging
CN109086410A (zh) 流式海量数据的处理方法及系统
CN104252500A (zh) 一种数据库管理平台的故障修复方法和装置
CN111563130A (zh) 一种基于区块链技术的数据可信数据治理方法和系统
CN103488546A (zh) 一种支持多级别数据和数据库在线并发备份与恢复方法
CN105376277A (zh) 一种数据同步方法及装置
CN105701094A (zh) 一种etl数据采集方法和装置
US8527454B2 (en) Data replication using a shared resource
CN103780417A (zh) 一种基于云硬盘的数据库故障转移方法及装置
CN101610303A (zh) 多媒体数据自动备份方法及系统
CN106850761A (zh) 日志文件存储方法及装置
CN105227379A (zh) 一种针对java web 应用的集中监控和预警方法
KR20180061493A (ko) 데이터베이스 이중화 무중단 정합성 복구 기법
CN101201767A (zh) 计算机系统数据的磁盘镜像备份与恢复系统及方法
US7953894B2 (en) Providing aggregated directory structure
CN105828017A (zh) 一种面向视频会议的云存储接入系统及方法
CN105490847B (zh) 一种私有云存储系统中节点故障实时检测及处理方法
CN101989229A (zh) 基于delphi语言下的捕获系统异常的方法
CN101098265A (zh) 数据网络存取系统及方法
US20170147447A1 (en) Method and system of migrating applications to a cloud-computing environment
CN105573897A (zh) 一种基于Delphi捕获系统异常的方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110323