This sounds more like an ArrayOutofRange Error.
Checking beforehand would avoid this,
if (((x > m_Bitmap.Width ) || (y > m_Bitmap.Height)) || ((x < 0) || (y <
0)))
{
MessageBox.Show("Out of Range Error");
}
else
{
try
{
m_Bitmap.SetPixel(x,y,Color.Black);
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
} // else if
without checking, should tell you more and avoid a crash.
Mark Johnson, Berlin Germany
(e-mail address removed)