m0use0ver

Messages__zz4

Oct 20th, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. Message IDE0067 Disposable object created by 'new SaveFileDialog
  2. {
  3. Filter = "JSON files (*.json)|*.json"
  4. }' is never disposed ProfileConverter C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI\CMD.cs 52 IntelliSense Active
  5.  
  6.  
  7.  
  8. Message IDE0067 Disposable object created by 'new OpenFileDialog()
  9. {
  10. Filter = "XML files (*.xml)|*.xml"
  11. }' is never disposed ProfileConverter C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI\CMD.cs 26 IntelliSense Active
  12. Use recommended dispose pattern to ensure that locally scoped disposable objects are disposed on all paths. If possible, wrap the creation within a 'using' statement or a 'using' declaration. Otherwise, use a try-finally pattern, with a dedicated local variable declared before the try region and an unconditional Dispose invocation on non-null value in the 'finally' region, say 'x?.Dispose()'. If the object is explicitly disposed within the try region or the dispose ownership is transfered to another object or method, assign 'null' to the local variable just after such an operation to prevent double dispose in 'finally'
Advertisement
Add Comment
Please, Sign In to add comment