Are you using .NET 1.1?
I have had trouble in the past (took 3 weeks to track down) with MessageBox
and the infamous "ParkingWin dow" - a hidden window which is used by the
framework as a temporary parent if a control is initially created without a
parent. There is a bug in 1.1 framework where such controls do not always
get reparented correctly. Calling MessageBox blows away the ParkingWindow,
and such controls not correctly reparented can cause a crash as a result.
Seems to have been fixed in 2.0.
Search the newsgroups for my name and "ParkingWin dow" for my postings on
that issue.
<br************ @gmail.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hello all,
Any reason why a program would simply shut down when a
MessageBox.Show () is issued?
Strange behaviour as the MessageBox never actually pops up.. but
running through the debugger shows it fails and shuts down at the line
when the MessageBox.Show () is issued.
Bear in mind i am working with GDI+
Any suggestions?
Regards,
BrianMessageBox .Show