1. stack trace and stack frame - CSharp/C#
Hi My app is supposed to print the line number and file name whenever an exception occurs. I have tried the following piece of code. I am always getting a file name of null and file number = 0 StackTrace st = new StackTrace(true); StackFrame sf = st.GetFrame(0); int LineNumber = sf.GetFileLineNumber(); String FileName = sf.GetFileName(); I am running a debug version of my C# program. Also please let me know how i can get these information when i run a release build of my program. Thank you all very much.
3. Stack frame incorrect on stack unwinding during exception
4. Pascal Stack Frame prologue
Hi folks, I was chasing to see what happens when I disassembled an old DOS BPW app. Inside the function "MaxAvail", I see this 45 inc bp 55 push bp 8B EC mov bp,sp 1E push ds I obtained a program called intrfc, I tried to dump the core structure for Turbo3.tpu which contains "maxavail" But the result was pretty surprising. 55 89 E5 83 EC which was totally different from what I expected (different from the disassembler results) Was I dumping the wrong file? or it was supposed to be like this? any ideas? Thanks Jack
5. JCL Debug: no stack frame - Borland C++ Builder VCL Components
6. QC 48623:Size and speed optimizations corrupt stack frame
I have just reported a critical error from C++Builder 2007 to QualityCentral, see report number on subject. This is the text of the report: >I have imported all of my work projects from BDS2006 to CB++2007, and just *one* has failed to run corrcetly after importing. > >I have stripped down the offending part to a really small test case. > >Test case will run OK when compiled with No Optimizations or with any Selected optimizations settings, but will throw exceptions when run with Size or Speed optimizations selected. The exception will be variable depoending on the rest of the code, because it is caused by a function return without correctly restoring ESP register. > >Complete test case in test.cpp/cbproj attachment. Offending function decompiled on bith cases (ok and error case), in test.txt attachment. > >BTW, which special optimizations options are applied in Size or Speed cases that are not listed for Selected optimizations? I woulkd really love to know. Attachments located on the report! Best regards, zara
7. Adding watches for other stack frames. - C++ Builder IDE
Hi,
I've tried to ask this on the Project JEDI yahoo group, but it seems
nobody is there. I hope someone here can help me:
I've added a JCL Exception dialog to my BDS 2006 C++ project. When an
exception occurs, this dialog shows the details of the exception. So far
so good. But the stack trace is missing. I see the exception address,
loaded modules etc, but no stack trace.
In ExceptDlg.pas I see this:
StackList := JclLastExceptStackList;
but JclLastExceptStackList returns nil. Don't know where to look further..
I have generated a map file, and Project|Insert JCL Debug data is
enabled. Any ideas on how to include the stack trace?
Thanks!
Joost