You are not logged in.
Pages: 1
I am developing a DLL for a third-party Host Executable (that I have no control and no access the its C++ source code).
QUESTION 1:
I used TSynLog to generate logging for my DLL. I also generated MAP file for the DLL. How can I use the MAP file correctly for my DLL, so the log can show line numbers?
QUESTION 2:
The hosting executable use LoadLibrary to load my DLL.
Inside my DLL, I use LOG_VERBOSE, which include Exception and ExceptionOS. I also put the line ExceptionIgnore.Add(EExternalException);
However, the hosting executable always crashes when closing with LOG_VERBOSE. The hosting executable works fine if I remove sllException and sllExceptionOS. One exception I caught from host executable was
DBG_PRINTEXCEPTION_C (0x40010006)
So, any advice, on the CORRECT way to use TSynlog, in a DLL?
Thank you.
xiwu
Offline
Thank you AB. By "append it to the .dll", you mean putting the ".mab" file in the same folder as the DLL? Or else?
Offline
Thank you again. How can I automatically generate the mab file (as a post build event) and merge the exe/DLL with the mab file?
Last edited by xiwuping (2018-02-11 18:24:50)
Offline
You can Use a map2mab utility
Offline
Thank you. I appended the mab file to the DLL using copy /b. But the generated new log doesn't seem to have the line number? Any heads up?
Offline
Pages: 1