473,804 Members | 3,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1499
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.co m

<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

Jan 19 '06 #2
Hi,

<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.
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.mach in AT dot.state.fl.us > wrote
in message news:uP******** ******@tk2msftn gp13.phx.gbl...
| Hi,
|
| <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.
|
| 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 "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

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
1304
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
2543
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 because the database is down. If I only hit the 'enter' key once (to execute the page that my queries are on(their are four queries on this particular web page)) my queries execute just fine. We have noticed that this only happens when we:
2
1151
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
3093
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 I want to send the error report to Microsoft. Has anybody seen this type of error message and what can I do to prevent it from happening. Am I doing something illegal in my code? It used to work but I have added conditional formatting to a subform...
5
1890
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 to the User. When the User selects a value from the combo box, the application shuts down. Here is the code for the combo box that may lead to the problem. ============================================== Private Sub cboAddPhysician_AfterUpdate()...
0
1048
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 javax.rmi.PortableRemoteObject; import PhoneDirectory.PhoneDirImpl;
1
1631
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 occurred. I can run the query without any trouble on other computers. I can also run other queries on this computer, including make-table queries which create much bigger tables. When it works (on other computers), the make-table query creates a...
2
2824
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 windows is trying to fix the problem" It thinks for a few seconds and then another box dialog box pops up and says "Internet Explorer is restarting" It then shuts down every IE window I have open and restarts. I also found that it does that...
1
3519
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 project, Visual Studio shuts down immediately and with no error message. I can open Visual Studio - but when subsequently attempting to open the project, Visual Studio immediately shuts down. More specifically:
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.