Scalabium Software

SMReport Autogenerated
Knowledge for your independence'.
Home Delphi and C++Builder tips

#8: I need read the unit name and line number with error

If you included the debug information in your project then:

string currentFile = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName(); 
int currentLine = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileLineNumber();

Published: July 9, 2010

See also
DBExport tools
ABA Picture Convert
Word Web-stream
SMImport suite
Clarion to Text converter
ABA Database Convert
Protected Storage Viewer
Viewer for TNEF-files (winmail.dat)
Viewer for MS Outlook Messages

Contact to webmaster


Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2024, Scalabium Software. All rights reserved.

SMExport/SMImport suites