My MushClient crash sometime, but I cannot find a stable repro. When i attach to the crashed process, i saw a error dialog in MushClient pop up and said "bad magic".
I found some information at http://www.gammon.com.au/pcre/pcreapi.html about "Bad Magic" exception.
//=========================================================//
PCRE_ERROR_BADMAGIC the "magic number" was not found
The "magic number" is placed at the start of each compiled pattern as an simple check against passing an arbitrary memory pointer. Here is a typical call of pcre_fullinfo(), to obtain the length of the compiled pattern:
//=========================================================//
But I am not very understand what is the problem and how to resolve it.
Can someone help me understand what is the root cause of "bad magic"? I can fix the issue accordingly.
I found some information at http://www.gammon.com.au/pcre/pcreapi.html about "Bad Magic" exception.
//=========================================================//
PCRE_ERROR_BADMAGIC the "magic number" was not found
The "magic number" is placed at the start of each compiled pattern as an simple check against passing an arbitrary memory pointer. Here is a typical call of pcre_fullinfo(), to obtain the length of the compiled pattern:
//=========================================================//
But I am not very understand what is the problem and how to resolve it.
Can someone help me understand what is the root cause of "bad magic"? I can fix the issue accordingly.