rust-lang / backtrace-rs

Backtraces in Rust
https://docs.rs/backtrace
Other
532 stars 245 forks source link

dll injection error handling #514

Open Kengyen opened 1 year ago

Kengyen commented 1 year ago

I inject .dll to a window and it produces: thread 'DEVELOP' panicked at 'called Option::unwrap() on a None value', library\std\src....\backtrace\src\dbghelp.rs:338:34

bjorn3 commented 1 year ago

That line number seems to indicate that looking up the SymInitializeW function in dbghelp.dll using GetProcAddress fails for some reason.

Kengyen commented 1 year ago

That line number seems to indicate that looking up the SymInitializeW function in dbghelp.dll using GetProcAddress fails for some reason.

when using if let Err(e) = expression it would panic use match pattern it would be ok