C# Error of Lockbits
-
Even after doing Unlockbits,we get the error as "Image is already locked",if we try to lock the image. Plz do Help....
-
Even after doing Unlockbits,we get the error as "Image is already locked",if we try to lock the image. Plz do Help....
Hi, my best guess is something, probably an exception, is making your code skip the unlockbits part. It may be wise to use a try-finally construct so the finally part can guarantee the unlock to occur. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets