Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
Hi guys,

I create a simple window in wpf by VS2010, .net framework 3.5, c# and I run it to win7 x86 that result was mainWindow[^], but I try that's it on XP 32bit by this properties XP pro[^]and result was crash app err1[^], err2[^], I also install .net framework packages, DirectX, windows installer and so on... but didn't run!
Where is the problem? Is there a solution?
If was necessary more info about this issue, please tell me.

Thanks in advance

and Viva! Quds Day[^]
Posted
Comments
Sergey Alexandrovich Kryukov 14-Aug-12 15:35pm    
Sorry, your information is insufficient to discuss this problem. You need to check up many things, but you do have your code, we don't.
--SA
hzawary 14-Aug-12 15:43pm    
Is necessary the code? but tell us in the image of 'err2' about system.window.markup.xamlparse
Sergey Alexandrovich Kryukov 14-Aug-12 15:54pm    
At least you would need to catch all exceptions on top of every thread and provides us with real exception information. The error information you show is pretty much useless, taken too late.
--SA
[no name] 14-Aug-12 15:38pm    
Just for your information, I know that it real convenient to take a screenshot and post it somewhere but not everyone has access to the pictures. For instance, I can't see the pictures so I do not know what the errors are and I cannot help you. And people searching for this same question in the future might not have access to the pictures.
hzawary 14-Aug-12 15:47pm    
So I can upload the images where?

1 solution

To debug this a little better and get proper information add an eventhandler to the app.xaml like in this example

XML
<application x:class="interMASTER.App" xmlns:x="#unknown">
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:vm="clr-namespace:InterstoneViewModel;assembly=InterstoneViewModel"
             StartupUri="MainWindow.xaml" DispatcherUnhandledException="Application_DispatcherUnhandledException">
    <application.resources>
		<!-- Resources scoped at the Application level should be defined here. -->
        
        
        
    </application.resources>
</application>


Then in the partial class App.xaml.cs do this :
C#
public partial class App : Application
    {
        private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            MessageBox.Show(e.Exception.Message+" "+e.Exception.StackTrace);
        }
    }


This way a nice dialog will appear when something is wrong and post that informaton iso those nasty bitmaps.
 
Share this answer
 
v2
Comments
Kenneth Haugland 14-Aug-12 17:31pm    
Yes, a5 :)
hzawary 16-Aug-12 15:58pm    
Thank you very much for your advice and my 5:)
In fact I develop program using wpf window and run on my system pc with properties: VS2010, win7 86x and test on vmware with xp sp3 32bit, but I test and run the program on system pc my friend (xp sp3 2002 32bit), the error message result was: http://www.4shared.com/photo/nNX_pnB6/noLoadBlurEffect.html

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900