Click here to Skip to main content
15,892,298 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Docking a DialogBox into main form Pin
Ponzano Paolo2-Nov-07 3:42
Ponzano Paolo2-Nov-07 3:42 
GeneralRe: Docking a DialogBox into main form Pin
Luc Pattyn2-Nov-07 4:16
sitebuilderLuc Pattyn2-Nov-07 4:16 
AnswerRe: Docking a DialogBox into main form Pin
darkelv1-Nov-07 23:56
darkelv1-Nov-07 23:56 
GeneralRe: Docking a DialogBox into main form Pin
Ponzano Paolo2-Nov-07 3:46
Ponzano Paolo2-Nov-07 3:46 
Question.chm Pin
ellllllllie31-Oct-07 3:00
ellllllllie31-Oct-07 3:00 
AnswerRe: .chm Pin
Christian Graus31-Oct-07 15:26
protectorChristian Graus31-Oct-07 15:26 
AnswerRe: .chm Pin
TJoe2-Nov-07 2:19
TJoe2-Nov-07 2:19 
QuestionShowDialog causing system hang Pin
Dave Parker31-Oct-07 2:05
Dave Parker31-Oct-07 2:05 
Posted this in a few newsgroups but haven't had any luck so thought I'd try here.

I have an interesting problem in one of my applications in which a call to
Form.ShowDialog() is causing a complete system lockup. Ctrl+Alt+Delete has
no effect and after a few seconds the mouse cursor will no longer move. I'd
be grateful if anyone can offer any help with this or suggest anything else to try.

I have reproduced the problem on 3 different machines running Windows XP
Pro.

The Form making the call to ShowDialog() is in a .NET 2.0 assembly and is
being hosted within an old VB6 executable via COM interop. The VB6
application contains a form, which hosts a .NET COM-visible control that in
turn hosts another .NET form (without border, etc). This works fine, but I
have an event set up so that when an icon is double-clicked within a
listview on this form, a dialog box should appear.

The dialog box consists of a few buttons and another embedded form that is
being used as a control. This embedded form is also used on the parent form
where it works correctly.

By setting a breakpoint on the call to ShowDialog(), I can see that no other
threads are executing managed code within the process. If I replace the call
to ShowDialog() with Show() then the window appears correctly. If I make a
call to MessageBox.Show() immediately above the call to ShowDialog(), the
dialog also works correctly. If I host the whole thing in a .NET
application, without the COM interop, everything works as it should.

By reproducing the hang within a virtual machine and using windbg to force
it to crash, then analyzing the crash dump,
I've obtained the following stack trace...

nt!RtlpBreakWithStatusInstruction
nt!KiBugCheckDebugBreak+0x19
nt!KeBugCheck2+0xa51
nt!KeBugCheckEx+0x1b
nt!KdpCauseBugCheck+0x10
nt!KdpSendWaitContinue+0x319
nt!KdpReportExceptionStateChange+0x8a
nt!KdpReport+0x60
nt!KdpTrap+0x108
nt!KiDispatchException+0x129
nt!CommonDispatchException+0x4d
nt!KiTrap03+0xad
nt!RtlpBreakWithStatusInstruction+0x1
nt!KeUpdateSystemTime+0x165
win32k!GetRealOwner+0x12
win32k!ZOrderByOwner2+0x7c
win32k!ZOrderByOwner+0xa9
win32k!xxxEndDeferWindowPosEx+0x86
win32k!xxxSetWindowPos+0x101
win32k!xxxShowWindow+0x250
win32k!NtUserShowWindow+0xa1
nt!KiFastCallEntry+0xf8
ntdll!KiFastSystemCallRet
USER32!NtUserShowWindow+0xc
0x646d0a7
0x6472716
0x647254e
0xa050ff5
0xad542b0
Dfd_Client_UI!Dfd.Client.UI.Workflow.TaskManagement.list_FieldClicked(System.Object,
FieldClickedEventArgs)+0x173
[C:\Work\Ims.Core\Dfd.Client.UI\Workflow\TaskManagement.cs @ 294]
Dfd_Client_CommonControls!Dfd.Client.CommonControls.ObjectList.OnFieldClicked(System.Windows.Forms.ListViewItem,
Dfd.Client.CommonControls.ObjectListColumn,
System.Windows.Forms.MouseEventArgs)+0x7d
[C:\Work\Ims.Core\Dfd.Client.CommonControls\ObjectList.cs @ 1625]
Dfd_Client_CommonControls!Dfd.Client.CommonControls.ObjectList.lv_DoubleClick(System.Object,
System.EventArgs)+0x1ce
[C:\Work\Ims.Core\Dfd.Client.CommonControls\ObjectList.cs @ 1918]
0xad2decc
0xad95d85
USER32!InternalCallWinProc+0x28
USER32!UserCallWinProcCheckWow+0x150
USER32!DispatchMessageWorker+0x306
USER32!DispatchMessageA+0xf
MSVBVM60!ThunderMsgLoop+0x87
MSVBVM60!CMsoCMHandler::FPushMessageLoop+0x19
MSVBVM60!SCM::FPushMessageLoop+0xb9
MSVBVM60!SCM_MsoCompMgr::FPushMessageLoop+0x2b
MSVBVM60!CMsoComponent::PushMsgLoop+0x26
MSVBVM60!ThunRTMain+0x9b
ims!__vbaS+0xa

GeneralRe: ShowDialog causing system hang Pin
Dave Parker31-Oct-07 5:19
Dave Parker31-Oct-07 5:19 
QuestionUpgrading vb.net 2002 to vb.net 2005 Pin
gil_be31-Oct-07 0:02
gil_be31-Oct-07 0:02 
AnswerRe: Upgrading vb.net 2002 to vb.net 2005 Pin
Luc Pattyn31-Oct-07 0:23
sitebuilderLuc Pattyn31-Oct-07 0:23 
GeneralRe: Upgrading vb.net 2002 to vb.net 2005 Pin
gil_be31-Oct-07 1:15
gil_be31-Oct-07 1:15 
GeneralRe: Upgrading vb.net 2002 to vb.net 2005 Pin
Luc Pattyn31-Oct-07 2:03
sitebuilderLuc Pattyn31-Oct-07 2:03 
QuestionInsert Code tag in the webbrowser control Pin
Luay.Essa29-Oct-07 21:14
Luay.Essa29-Oct-07 21:14 
QuestionLoading a User Control onto a panel at runtime Pin
Henry Venn28-Oct-07 1:49
Henry Venn28-Oct-07 1:49 
AnswerRe: Loading a User Control onto a panel at runtime Pin
TJoe28-Oct-07 6:52
TJoe28-Oct-07 6:52 
QuestionRe: Loading a User Control onto a panel at runtime Pin
Henry Venn28-Oct-07 15:56
Henry Venn28-Oct-07 15:56 
AnswerRe: Loading a User Control onto a panel at runtime Pin
TJoe29-Oct-07 2:14
TJoe29-Oct-07 2:14 
GeneralRe: Loading a User Control onto a panel at runtime Pin
Henry Venn30-Oct-07 0:58
Henry Venn30-Oct-07 0:58 
GeneralRe: Loading a User Control onto a panel at runtime Pin
TJoe30-Oct-07 2:01
TJoe30-Oct-07 2:01 
QuestionRe: Loading a User Control onto a panel at runtime Pin
Henry Venn31-Oct-07 17:18
Henry Venn31-Oct-07 17:18 
AnswerRe: Loading a User Control onto a panel at runtime Pin
Henry Venn31-Oct-07 17:35
Henry Venn31-Oct-07 17:35 
QuestionEmbedding an Access table into datagrid Pin
latuan13227-Oct-07 21:53
latuan13227-Oct-07 21:53 
AnswerRe: Embedding an Access table into datagrid Pin
Paul Conrad28-Oct-07 6:33
professionalPaul Conrad28-Oct-07 6:33 
GeneralHorizontally Scroll Lines of Text Pin
Brady Kelly27-Oct-07 1:40
Brady Kelly27-Oct-07 1:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.