473,396 Members | 1,799 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,396 software developers and data experts.

.NET Message box is destroying a window made in C++.

We have a bit of a situation where Windows.Forms.MessageBox is somehow causing a specific window created in native C++ to get an NC_DESTROY message. The windows share a common great-grandparent and I believe are on the same thread. The window being destroyed is a modeless window that is a grandchild of the parent window passed into the messagebox. Here is the middle of the call stack. Somehow it is getting the ParkingWindow (whatever the heck that is) and the C++ modeless child window confused. Any suggesstions would be appreciated. Thanks
XWRAP70.DLL!XWDlgCallBackProc(HWND__ * hWnd=0x002907b6, unsigned int msg=130, unsigned int param1=0, long param2=0) Line 345 + 0x16 C+

user32.dll!77d67ad7()
user32.dll!77d6cc6e()
user32.dll!77d445bd()
user32.dll!77d70b4d()
NTDLL.DLL!77fb4da6()
00eba7b9()
system.windows.forms.dll!System.Windows.Forms.Unsa feNativeMethods.DestroyWindow(System.Runtime.Inter opServices.HandleRef hWnd = {System.Runtime.InteropServices.HandleRef}) + 0x10 bytes
system.windows.forms.dll!System.Windows.Forms.Nati veWindow.DestroyHandle() + 0x79 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.DestroyHandle() + 0x2c7 bytes
system.windows.forms.dll!System.Windows.Forms.Appl ication.ParkingWindow.Destroy() + 0xd bytes
system.windows.forms.dll!ThreadContext.DisposePark ingWindow() + 0x86 bytes
system.windows.forms.dll!ThreadContext.EndModalMes sageLoop() + 0x46 bytes
system.windows.forms.dll!System.Windows.Forms.Appl ication.EndModalMessageLoop() + 0x13 bytes
system.windows.forms.dll!System.Windows.Forms.Mess ageBox.ShowCore(System.Windows.Forms.IWin32Window owner = {Xactware.Core.UI.WrapperIWin32Window}, string text = "Creating a supplement estimate will allow you to add new line item entries to your estimate and create an additional supplement report in Payment Tracker. You will not be able to edit prior ACV/Supplement settlements. Do you intend to create a new supplement estimate?", string caption = "Supplemental Estimate", System.Windows.Forms.MessageBoxButtons buttons = YesNo, System.Windows.Forms.MessageBoxIcon icon = Question, System.Windows.Forms.MessageBoxDefaultButton defaultButton = Button2, System.Windows.Forms.MessageBoxOptions options = 0) + 0x2d7 bytes
system.windows.forms.dll!System.Windows.Forms.Mess ageBox.Show(System.Windows.Forms.IWin32Window owner = {Xactware.Core.UI.WrapperIWin32Window}, string text = "Creating a supplement estimate will allow you to add new line item entries to your estimate and create an additional supplement report in Payment Tracker. You will not be able to edit prior ACV/Supplement settlements. Do you intend to create a new supplement estimate?", string caption = "Supplemental Estimate", System.Windows.Forms.MessageBoxButtons buttons = YesNo, System.Windows.Forms.MessageBoxIcon icon = Question, System.Windows.Forms.MessageBoxDefaultButton defaultButton = Button2) + 0x23 bytes

Nov 15 '05 #1
1 1852
We had similar problem with Xceed Grid. When MessageBox.Show finishes,
it was distroying combobox in focus before message box appeared. The
solution was to make sure the combo box had its .Parent property set
correctly. If no parent is set, the default parent would be desktop
which causes this problem.

Nov 16 '05 #2

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

Similar topics

3
by: Pete | last post by:
I have a site which is using sessions to pass data from one page through to the next. The problem that I have is that there are only two places where the session could/should be destroyed. This...
1
by: George Hester | last post by:
At the time this suggestion was made I didn't have the wherewithall to even attempt it. But over time I learned enough to make a stab at it. Let just say the foating DIV had to provide the same...
2
by: Cantankerous Old Git | last post by:
I am trying to write a program that I hope to get working as a command-line app to start with, and then eventually use a windows service wrapper to call it as a service. Its purpose is to attach...
3
by: Serious_Practitioner | last post by:
Hello, all - A few days ago, I posted the following message - Hello all, and thank you for your help in the recent past. Got a new error message in the last few days. While working with...
1
by: lauch2 | last post by:
hi, I have CView inherited class. After creating the window, I call SetTimer( , , NULL) to set a periodical timer. When the window is no longer need, I just call DestroyWindow() to destroy the...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
4
by: Olumide | last post by:
Hello - I have two classes A and B as follows: class B{ public: ~B(){ cout << "destroying B" << endl; } }; class A{
3
by: Bartholomew Simpson | last post by:
I am writing some C++ wrappers around some legacy C ones - more specifically, I am providing ctors, dtors and assignment operators for the C structs. I have a ton of existing C code that uses...
41
by: =?Utf-8?B?VGltIE1hcnNkZW4=?= | last post by:
Hi, I am after suggestions on the best practice declaring and destroying objects. some example code: Private Sub MySub Dim frmMyForm As MyForm Try
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.