473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

MessageBox shuts down program

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

Jan 19 '06 #1
5 1469
When you day it fails, what do you mean? Is an exception thrown? If
so, and it is not caught and handled, then it could very easily be that. If
it is an exception, what is it?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<br************@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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

Jan 19 '06 #2
Hi,

<br************@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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.
Post the code in question
Bear in mind i am working with GDI+


What this has to do with the problem in hand?


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 19 '06 #3

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uP**************@tk2msftngp13.phx.gbl...
| Hi,
|
| <br************@gmail.com> wrote in message
| news:11**********************@g49g2000cwa.googlegr oups.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.
|
| Post the code in question
|
| > Bear in mind i am working with GDI+
|
| What this has to do with the problem in hand?
|

Bugs?

Willy.
Jan 19 '06 #4
Are you using .NET 1.1?

I have had trouble in the past (took 3 weeks to track down) with MessageBox
and the infamous "ParkingWindow" - 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 "ParkingWindow" for my postings on
that issue.

<br************@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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

Jan 20 '06 #5
Hi,

| Post the code in question
|
| > Bear in mind i am working with GDI+
|
| What this has to do with the problem in hand?
|

Bugs?


Probably :)
Jan 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chen, Mao | last post by:
------_=_NextPart_001_01C35C45.723AEBCE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 Hi everyone, =20
2
by: Brian | last post by:
Hello I am using version 4.0.12-nt of MySQL and when I hit the enter key rapidly I can't connect to the database. The result is a message is returned to me from mysql that says I can't connect...
2
by: dday76 | last post by:
What's going on? I just installed studio, and I start up the program, click on the my profile tab (per the tutorial in the book) and the program just shuts down. What's going on?
5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
5
by: Henry Stockbridge | last post by:
Hi, I have a combo box on a form whose purpose is to add a record to the form's underlying table. There are several (16) fields that the combo box carries with it, only a few that are visible...
0
oll3i
by: oll3i | last post by:
Why my rmi server shuts down? when i run it it starts and then shuts down here is the server code import java.util.Properties; import javax.naming.InitialContext; import...
1
by: TC | last post by:
I'm experiencing an unusual problem. When I run a specific make-table query on a computer, that computer shuts down. The computer shuts down completely, without warning, as if a power failure...
2
by: =?Utf-8?B?YW5ub3llZCB3aXRoIHZpc3Rh?= | last post by:
I have a new Toshiba Satellite laptop. It came with Vista and IE 7. When I close an Exporer window (using the X in the corner) I get a message that says "Internet Explorer has stopped working and...
1
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.