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
 
MAPIMail
Viewer for TNEF-files (winmail.dat)
Paradox ActiveX
SMExport suite
SMMsg suite
Paradox Viewer
Word Web-stream
SMDBGrid
Paradox Password Recovery
Database Information Manager
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2026, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMReport Autogenerated