Click here to Skip to main content
15,913,487 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Anchor Pin
Yoyosch21-Feb-08 4:43
Yoyosch21-Feb-08 4:43 
QuestionWPF data binding - How to cancel an edit Pin
Simon P Stevens18-Feb-08 22:47
Simon P Stevens18-Feb-08 22:47 
GeneralRe: WPF data binding - How to cancel an edit Pin
User 27100918-Feb-08 23:16
User 27100918-Feb-08 23:16 
GeneralRe: WPF data binding - How to cancel an edit Pin
Simon P Stevens19-Feb-08 1:54
Simon P Stevens19-Feb-08 1:54 
GeneralRe: WPF data binding - How to cancel an edit Pin
User 27100919-Feb-08 2:01
User 27100919-Feb-08 2:01 
GeneralRe: WPF data binding - How to cancel an edit Pin
Simon P Stevens19-Feb-08 2:50
Simon P Stevens19-Feb-08 2:50 
GeneralRe: WPF data binding - How to cancel an edit Pin
User 27100919-Feb-08 2:52
User 27100919-Feb-08 2:52 
GeneralWPF - weird crash issue Pin
Christian Graus16-Feb-08 11:10
protectorChristian Graus16-Feb-08 11:10 
Hi guys.

We have a WPF app, it's only use of COM is that we have a control which wraps the native windows media player control, because the WPF one is too slow. It's worked fine for ages, but suddenly, there is an intermittent crash. It never crashes the first time it's run. When it does crash, it's in this method:



try

{

Application.Current.MainWindow.MinHeight = ActualHeight + 100;

}

catch

{

// Empty - will crash if we are not registered

}



which is in the load event for our tab control. At this stage, the app has done all it's heavy lifting and is in fact visible. An error message comes up, and the app closes. If I get it to crash in the debugger, I get this message three times:



DisconnectedContext was detected
Message: Context 0x21a250' is disconnected. Releasing the interfaces from the current context (context 0x21a0e0).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.



and this is the exception itself:



Sunday, 17 February 2008
Not enough quota is available to process this command
at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, List`1 channelList)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)



All the googling I've done on this message indicates it means the system doesn't have enough resources, but all I'm trying to do in the line that crashes it, is set the minimum height of a control !!! In the debugger, all the properties I am trying to read or set are able to be viewed, Application.Current.MainWindow.MinHeight is 0.0, reading it does not create an exception, as I would have expected.



Any help or guidance greatly appreciated.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: WPF - weird crash issue Pin
User of Users Group17-Feb-08 11:35
User of Users Group17-Feb-08 11:35 
GeneralRe: WPF - weird crash issue Pin
User 27100918-Feb-08 0:02
User 27100918-Feb-08 0:02 
GeneralRe: WPF - weird crash issue Pin
Christian Graus18-Feb-08 16:12
protectorChristian Graus18-Feb-08 16:12 
GeneralRe: WPF - weird crash issue Pin
kantan3-Aug-08 15:06
kantan3-Aug-08 15:06 
Generalabout silverlight... Pin
koolprasad200315-Feb-08 23:35
professionalkoolprasad200315-Feb-08 23:35 
GeneralRe: about silverlight... Pin
Paul Selormey16-Feb-08 5:08
Paul Selormey16-Feb-08 5:08 
GeneralRe: about silverlight... Pin
Michael Sync16-Feb-08 18:59
Michael Sync16-Feb-08 18:59 
GeneralRe: about silverlight... Pin
koolprasad200317-Feb-08 21:45
professionalkoolprasad200317-Feb-08 21:45 
GeneralRe: about silverlight... Pin
Michael Sync18-Feb-08 2:00
Michael Sync18-Feb-08 2:00 
GeneralRe: about silverlight... Pin
Gandalf_TheWhite21-Feb-08 0:00
professionalGandalf_TheWhite21-Feb-08 0:00 
GeneralRe: about silverlight... Pin
Michael Sync21-Feb-08 21:28
Michael Sync21-Feb-08 21:28 
QuestionSilverlight supports COM objects? 3d of any kind? Pin
Judah Gabriel Himango14-Feb-08 10:29
sponsorJudah Gabriel Himango14-Feb-08 10:29 
AnswerRe: Silverlight supports COM objects? 3d of any kind? Pin
Michael Sync14-Feb-08 17:06
Michael Sync14-Feb-08 17:06 
GeneralRe: Silverlight supports COM objects? 3d of any kind? Pin
Judah Gabriel Himango15-Feb-08 4:06
sponsorJudah Gabriel Himango15-Feb-08 4:06 
GeneralRe: Silverlight supports COM objects? 3d of any kind? Pin
Michael Sync15-Feb-08 5:17
Michael Sync15-Feb-08 5:17 
GeneralGridViewColumn DataTemplate Pin
teejayem14-Feb-08 5:30
teejayem14-Feb-08 5:30 
GeneralRe: GridViewColumn DataTemplate Pin
User 27100918-Feb-08 1:18
User 27100918-Feb-08 1:18 

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.