Traceinfo gone

frame frame86 at live.com
Sat Jul 24 08:41:20 UTC 2021


I recently discovered that my exceptions do not show a trace 
anymore.
How can this happen?

```d
int main() {
   try {
     throw new Exception("test");
   } catch(Throwable e) {
     writefln("trace: %s", e.info);
   }
   // ...
}
```
I'm expecting something like this:
```
trace: 0x00402326
0x0040E337
0x0040E2B1
0x0040E14C
0x0040A1D2
0x0040236B
0x76466359 in BaseThreadInitThunk
0x77CA7B74 in RtlGetAppContainerNamedObjectPath
0x77CA7B44 in RtlGetAppContainerNamedObjectPath
```

but it just prints: "trace:" and continues normally (does not 
terminate).
The e.info contains a core.sys.windows.stacktrace.StackTrace but 
it seems empty.

I cannot reproduce it with a standalone example app - everything 
works as expected there. But not in my application. Anyone ever 
experienced this?



More information about the Digitalmars-d-learn mailing list