Scalabium Software |
|
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();
|
Copyright© 1998-2024, Scalabium
Software. All rights reserved. |