End Google Ads 201810 - BS.net 01 --> Im trying to add a new feature in the "Image Processing for Dummies with C# and GDI+ Part 2 - Convolution Filters" system.

the problem is that i get this error

A first chance exception of type 'System.InvalidOperationException' occurred in System.Drawing.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Drawing.dll

Additional information: Bitmap region is already locked.

the error occurs in the following line

g.DrawImage(m_Bitmap, new Rectangle(this.AutoScrollPosition.X, this.AutoScrollPosition.Y, (int)(m_Bitmap.Width*Zoom), (int)(m_Bitmap.Height * Zoom)));


any help will be appreciated