Bug in User Interface Process Application Block
From: Luxspes (luxspes_at_yahoo.com)
Date: 03/15/04
- Next message: Andersen: "Call for presentation, ECOOP'04 practitioners report"
- Previous message: Stefan Schachner[MSFT]: "RE: Authentication through sockets"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Mar 2004 11:30:55 -0600
Hi!
I found a Bug in User Interface Process Application Block
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html
/uip.asp).
If you add a control that has a "MessageBox.Show" in its constructor to a
child modal form that inherits from WinFormView, the current view and
controller get out of sync.
You can seet if you add the following code to the WinFormViewManager:
public bool IsRequestCurrentView( IView view, string stateViewName )
{
// Was Not implemented. Microsoft thinks that In a winform
applications isnīt necesary
// but it is if some control calls MessageBox in its constructor in a
chid modal view...
ViewSettings viewSettings =
UIPConfiguration.Config.GetViewSettingsFromName(stateViewName);
if( viewSettings == null )
throw new UIPException( Resource.ResourceManager.FormatMessage(
"RES_ExceptionViewConfigNotFound", stateViewName ) );
string stateViewType = viewSettings.Type;
System.Windows.Forms.Form form = (System.Windows.Forms.Form)view;
string viewType=form.GetType().FullName;
Debug.Assert(stateViewType.Equals( viewType ),stateViewType+" ==
"+viewType);
return true;
}
The assert fails!! this shouldn't happen! Any ideas in how to fix this?
thanks
bye
Luxspes
- Next message: Andersen: "Call for presentation, ECOOP'04 practitioners report"
- Previous message: Stefan Schachner[MSFT]: "RE: Authentication through sockets"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|