472,961 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,961 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 1455
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.