Search Issue Tracker

Active

Votes

1

Found in

2018.4

2019.4

2020.2

2020.2.1f1

2021.1

2021.2

Issue ID

1313988

Regression

No

Calling Marshal.PrelinkAll() on a class that contains a DllImport attribute of a non-existent dll will log errors

Mono

-

Calling Marshal.PrelinkAll() on a class that contains a DllImport attribute of a non-existent dll will always log lines that look like errors even if the call is from a try/catch block

How to reproduce:
1. Open the attached project (case_1313988-EditorLogs)
2. Open SampleScene
3. Click Play
4. Open the Editor Log

Expected result: If the call is in a try/catch block 'Fallback handler could not load library' should not be printed
Actual result: 'Fallback handler could not load library' is always printed to the Editor log

Reproducible with: 2018.4.30f1, 2019.4.20f1, 2020.2.5f1, 2021.1.0b8, 2021.2.0a6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.