IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C# Discussion :

Executable ne fonctionnant pas sur certaines machines


Sujet :

C#

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut Executable ne fonctionnant pas sur certaines machines
    Bonjour,

    Je suis actuellement en stage et j'ai développé une application C# WPF avec Visual studio 2010. Tout allait bien jusqu'aux test sur les machines qui allaient utiliser l'application. En effet sur certaines machines le programme fonctionne parfaitement (comme sur le PC de dev) et sur certains je vois dans le gestionnaire de tâches le processus ce lancer puis disparaitre 1/2 secondes après sans aucun message d'erreur ou autre.
    Il y a 2 types de machines :
    • les postes windows XP 32bits
    • les postes windows 7 64bits

    Sur les postes windows 7 aucun problème. Pour XP, le PC de dev, et d'autres font fonctionner le programme, et d'autres ont le problème. Les postes ont globalement les mêmes caractéristiques et ont la même version du framework .NET (4.0.0) et la dll sqlite utilisé par le programme est dans le dossier d’exécution.

    J'ai essayé l’exécution direct du .exe (avec le projet publié ou non par VS), l'install OneClick, aucune de ces solutions ne fonctionne.

    Dans mes sauvegardes du projet une version plus ancienne du programme, l’exécution du programme fonctionne sur les machines n'acceptant pas la nouvelle version mais la dll SQLite n'était pas trouvée lors de la création de la BDD.

    On est à court d'idée pour trouver d’où viens le bug.

    d'avance merci.

  2. #2
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Ça fleure mauvais le souci d'affinité binaire.

    Essaye de lancer ton exécutable depuis la console (CMD) tu devrais obtenir une exception.
    Si ce n'est pas le cas () consulte les logs Windows via l'Event Viewer il devrait y avoir quelque chose, à voir si c'est exploitable...

  3. #3
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Bonjour,
    Le fait de lancer l'exe depuis l'invite de cmd ne change rien et pas de message d'erreur.
    Avec l'event Viewer plus de succès :
    On à une erreur .NET Runtime événement 1026 et pas de catégorie
    voila le message d'erreur avec la stacktrace :
    Application: PACCA9-V2.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Windows.Markup.XamlParseException
    Stack:
    at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
    at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
    at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
    at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
    at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
    at System.Windows.Application.LoadComponent(System.Uri, Boolean)
    at System.Windows.Application.DoStartup()
    at System.Windows.Application.<.ctor>b__1(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at System.Threading.ExecutionContext.runTryCode(System.Object)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
    at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
    at System.Windows.Application.RunDispatcher(System.Object)
    at System.Windows.Application.RunInternal(System.Windows.Window)
    at System.Windows.Application.Run(System.Windows.Window)
    at PACCA9_V2.App.Main()
    De ce que je crois comprendre le XAML serait en cause. j'ai donc changé mon XAML et mon code behind de ma fenêtre pour une version plus ancienne qui fonctionnait partout mais pas terminé et la miracle l'application se lance (la dll SQLite est manquante ,mais bon c'est mieux que rien ). le problème viens donc surement du code ajouté entre temps.

  4. #4
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Bon au moins on sait d'où vient le problème et tu as un "workaround".

    Donc maintenant il faudrait que tu nous montres le XAML qui fait planter...

  5. #5
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Voila le XAML fautif. Avec notepadd++ et le plugin pour comparer 2 fichiers j'ai pu commencer à chercher les différences qui pourrait causer ce genre de problème mais c'est mon 1er projet en C# / WPF donc je manque de pratique

    Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    <Window x:Class="PACCA9_V2.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="PACCA9_V2" WindowStartupLocation="CenterScreen" 
            Activated="Window_Activated" KeyDown="Window_KeyDown" Closing="Window_Closing" Closed="Window_Closed" FontFamily="Bauhaus 93" Width="{StaticResource {x:Static SystemParameters.FullPrimaryScreenWidthKey}}" Height="{StaticResource {x:Static SystemParameters.FullPrimaryScreenHeightKey}}" MinHeight="780" MinWidth="1090">
        <!-- Grille principale de la fenêtre-->
        <Grid>
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="1" />
                    <GradientStop Color="#E317355D" Offset="0.767" />
                </LinearGradientBrush>
            </Grid.Background>
            <Grid.ColumnDefinitions> <!-- définition des colonnes de la grille (3 colonnes)-->
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
     
        <!-- Partie 
            Importation-->
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <Grid Grid.Column="0" Name="gridImport" HorizontalAlignment="Stretch">
                    <Grid.RowDefinitions> <!-- Définition des lignes de la grille pour partie importation (7 lignes)-->
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Label Grid.Row="0" Content="Importation des Fichiers" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="{StaticResource {x:Static SystemParameters.WindowCaptionHeightKey}}" FontFamily="Bauhaus 93" BorderBrush="Black" BorderThickness="0,0,0,5">
                        <Label.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFF78137" Offset="0" />
                                <GradientStop Color="#EBF59D37" Offset="1" />
                            </LinearGradientBrush>
                        </Label.Background>
                    </Label>
                    <!-- Sélection des faces-->
                    <DockPanel Grid.Row="1" Grid.Column="0">
                        <DockPanel.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFF78137" Offset="0" />
                                <GradientStop Color="#EBF59D37" Offset="1" />
                            </LinearGradientBrush>
                        </DockPanel.Background>
                        <TextBlock Text="sélection des faces à importer : " TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Bauhaus 93" FontSize="18" Padding="5,0,5,0" Margin="0,10,0,0" TextWrapping="Wrap" DockPanel.Dock="Top" />
                        <CheckBox Name="checkBoxTop" Content="TOP" VerticalAlignment="Center" HorizontalAlignment="Left" Checked="checkBoxTop_Checked" Unchecked="checkBoxTop_Unchecked" Padding="2,0,0,0" FontFamily="Bauhaus 93" FontSize="18" HorizontalContentAlignment="Center" FlowDirection="LeftToRight" Focusable="True" Margin="100,0,0,0" />
                        <CheckBox Name="checkBoxBot" Content="BOT" VerticalAlignment="Center" HorizontalAlignment="Right" Checked="checkBoxBot_Checked" Unchecked="checkBoxBot_Unchecked" Padding="2,0,0,0" FontFamily="Bauhaus 93" FontSize="18" HorizontalContentAlignment="Center" Margin="0,0,100,0" />
                    </DockPanel>
     
                    <!-- Face Top -->
                    <Expander Grid.Row="2" Grid.Column="0" Name="expanderTop" Header="TOP" IsExpanded="True" IsEnabled="False" Foreground="Black">
                        <StackPanel Background="#EBF59D37">
                            <DockPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonCA9" Content="CA9 run 2" Padding="5,1,5,1" Click="CA9TOP_Button_Click" />
                                <TextBox Name="cheminCA9TOP" Text=""/>
                            </DockPanel>
                            <DockPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonATD" Content="ATD run 1" Padding="5,1,5,1" Click="ATDTOP_Button_Click" />
                                <TextBox Name="cheminATDTOP" Text=""/>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
                    <!-- Face Bot-->
                    <Expander Grid.Row="3" Grid.Column="0" Name="expanderBot" Header="BOT" IsExpanded="True" IsEnabled="False" Foreground="Black" >
                    <StackPanel Background="#EBF59D37">
                        <DockPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10">
                            <Button Name="ButtonCA9Bot" Content="CA9 run 2" Padding="5,1,5,1" Click="CA9BOT_Button_Click"/>
                            <TextBox Name="cheminCA9BOT" Text=""/>
                        </DockPanel>
                        <DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="10" >
                            <Button Name="ButtonATDBot" Content="ATD run 1" Padding="5,1,5,1" Click="ATDBOT_Button_Click" />
                            <TextBox Name="cheminATDBOT" Text="" />
                        </DockPanel>
                    </StackPanel>
                </Expander>
     
                    <!-- Nomenclature -->
                    <Expander Grid.Row="4" Grid.Column="0" Name="expanderBOM" Header="Nomenclature" IsExpanded="True" Foreground="Black">
                        <StackPanel Background="#EBF59D37">
                            <DockPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonBOM" Content="BOM run 2" Padding="3,1" Click="ButtonBOM_Click" />
                                <TextBox Name="cheminBOM" Text=""/>
                            </DockPanel>
                            <DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonBOMOld" Content="BOM run 1" Padding="5,1,5,1" Click="ButtonBOMOld_Click" />
                                <TextBox Name="cheminBOMOld" Text=""/>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
     
                    <!-- Net List -->
                    <Expander Grid.Row="5" Grid.Column="0" Name="expanderNET" Header="NetList" IsExpanded="True" >
                        <StackPanel Background="#EBF59D37" Margin="0">
                            <DockPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10,10,10,10" >
                                <Button Name="ButtonNET" Content="NetList run 2" Padding="5,1,5,1" Click="ButtonNET_Click"/>
                                <TextBox Name="cheminNET" Text="" />
                            </DockPanel>
                            <DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonNETOld" Content="NetList run 1" Padding="5,1,5,1" Click="ButtonNETOld_Click" />
                                <TextBox Name="cheminNETOld" Text=""/>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
     
                    <!-- Nails -->
                    <Expander Grid.Row="6" Grid.Column="0" Name="expanderNAILS" Header="Nails" IsExpanded="True" Foreground="Black">
                        <StackPanel Background="#EBF59D37">
                            <StackPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Orientation="Horizontal">
                                <RadioButton Name="RButtonFab" Content="FabMaster" FontFamily="Arial" FontWeight="Black" Padding="5,1,5,1" Margin="15,5" VerticalAlignment="Center" HorizontalAlignment="Left" Checked="RButton_Checked"/>
                                <RadioButton Name="RButtonTestWay" Content="TestWay" FontFamily="Arial" FontWeight="Black" Padding="5,1,5,1" Margin="15,5" VerticalAlignment="Center" HorizontalAlignment="Right" Checked="RButton_Checked" />
                            </StackPanel>
                            <DockPanel Name="NailsPannel1" VerticalAlignment="Center" HorizontalAlignment="Stretch" IsEnabled="False" Margin="10">
                                <Button Name="ButtonNAILS" Content="Nails run 2" Padding="5,1,5,1" Click="ButtonNAILS_Click" VerticalAlignment="Center" />
                                <TextBox Name="cheminNAILS" Text="" VerticalAlignment="Center" />
                            </DockPanel>
                            <DockPanel Name="NailsPannel2" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" IsEnabled="False" Margin="10" >
                                <Button Name="ButtonNAILSOld" Content="Nails run 1" Padding="5,1,5,1" Click="ButtonNAILSOld_Click" VerticalAlignment="Center" />
                                <TextBox Name="cheminNAILSOld" Text="" VerticalAlignment="Center" />
                            </DockPanel>
                        </StackPanel>
                    </Expander>
                </Grid>
            </ScrollViewer>
     
            <!-- Partie
            Centrale -->
            <Grid Grid.Column="1" Name="gridMid" HorizontalAlignment="Stretch" ShowGridLines="False">
                <Grid.RowDefinitions>
                    <!-- Définition des lignes de la grille pour partie importation (6 lignes)-->
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Label Grid.Row="0" Name="etapeSuivante" Content="En Attente de sélection de / des faces" Padding="10,10,10,10" Height="Auto" Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Bauhaus 93" FontSize="16" FontStretch="Normal" Foreground="White" FontStyle="Normal" FontWeight="ExtraLight" Background="{Binding}" />
                <Button Grid.Row="1" Name="importButton" Content="Importer les Fichiers" Click="importButton_Click" IsEnabled="False" HorizontalAlignment="Center" VerticalAlignment="Top" Height="50" Width="auto" Padding="10" Margin="20" />
                <Image Name="logo" Grid.Row="2" Grid.RowSpan="2" Source="Ressources/LOGO_PACCA9.png" ImageFailed="Image_ImageFailed" />
                <ProgressBar Grid.Row="4" Name="importProgress" Minimum="0" Maximum="100"  HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="30" Width="300"  AllowDrop="False"  BorderBrush="Black" Margin="0,0,0,30" />
                <StackPanel Grid.Row="5" Name="boutonPannel" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal" Width="auto" Background="{Binding}">
                    <Button Grid.Row="5" Name="stopButton" Content="Stop" Click="stopButton_Click"  MaxHeight="90" Padding="10,10,10,10" HorizontalAlignment="Center" Margin="20"/>
                    <Button Grid.Row="5" Name="quitButton" Content= "Quitter PACCA9" Click="quitButton_Click" MaxHeight="90" Padding="10,10,10,10" HorizontalAlignment="Center" Margin="20" />
                </StackPanel>
            </Grid>
            <!-- partie 
             de droite -->
            <TabControl Grid.Column="2" Name="gestionnaireOnglet" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TabStripPlacement="Left" FlowDirection="LeftToRight" VerticalContentAlignment="Center" Padding="0">
                <TabControl.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF78137" Offset="0" />
                        <GradientStop Color="#EBF59D37" Offset="1" />
                    </LinearGradientBrush>
                </TabControl.Background>
                <TabItem Header="Progression" Name="progressionTab" FlowDirection="LeftToRight" Padding="12,2">
                    <Grid>
                        <Grid.RowDefinitions>
                            <!-- Définition des lignes de la grille pour partie Sauvegarde (7 lignes)-->
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0" Content="Traitements" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="{StaticResource {x:Static SystemParameters.WindowCaptionHeightKey}}" FontFamily="Bauhaus 93" FontWeight="Normal" BorderBrush="Black" BorderThickness="0,0,0,5"/>
                        <DockPanel Grid.Row="3" Name="traitChoixPannel" Width="auto" HorizontalAlignment="Stretch">
                            <TextBlock Text="sélection des faces à traiter : (si différent du choix initiale)" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Bauhaus 93" FontSize="18" Margin="0,10,0,0" FontWeight="Normal" TextWrapping="Wrap" DockPanel.Dock="Top" />
                            <CheckBox Name="checkBoxTopTrait" Content="TOP" VerticalAlignment="Center" HorizontalAlignment="Left" HorizontalContentAlignment="Center"  Margin="30,0,0,0" Padding="5,0,0,0" FontFamily="Bauhaus 93" FontSize="18" FontWeight="Normal" />
                            <CheckBox Name="checkBoxBotTrait" Content="BOT" VerticalAlignment="Center" HorizontalAlignment="Right" HorizontalContentAlignment="Center" Margin="0,0,30,0" Padding="5,0,0,0" FontFamily="Bauhaus 93" FontSize="18" FontWeight="Normal" />
                        </DockPanel>
                        <StackPanel Grid.Row="4">
                            <TextBlock Name="txtEstimation" Text="Temps restant : X minutes" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Bauhaus 93" FontSize="18" Margin="0,10,0,0" FontWeight="Normal" TextWrapping="Wrap" />
                            <ProgressBar Name="traitementProgress" Minimum="0" Maximum="3420"  HorizontalAlignment="Center" VerticalAlignment="Center" Height="30" MinWidth="230" Width="auto" AllowDrop="False" Margin="10" />
                        </StackPanel>
                        <Button Grid.Row="5" Name="traitementButton" Content="Lancer PACCA9 V2" Click="traitementButton_Click" IsEnabled="True" HorizontalAlignment="Center" VerticalAlignment="Top" Height="auto" Width="auto" Padding="10" />
                    </Grid>
                </TabItem>
                <TabItem Header="Résultats" Name="resultatsTab">
                    <Grid>
                        <Grid.RowDefinitions>
                            <!-- Définition des lignes de la grille pour partie Sauvegarde (10 lignes)-->
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0" Content="Résultats PACCA9" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="{StaticResource {x:Static SystemParameters.WindowCaptionHeightKey}}" FontFamily="Bauhaus 93" FontWeight="Normal" BorderBrush="Black" BorderThickness="0,0,0,5"/>
                        <TextBlock Grid.Row="2" Grid.RowSpan="2" Name="SauvegardeInstruction" TextWrapping="Wrap" Width="auto" Text="Choisissez le nom de fichier pour les CA9 de sortie, un suffixe BOT ou TOP sera ajouté au fichier correspondant." TextAlignment="Center" FontSize="13" Margin="10" />
                        <TextBox Grid.Row="3" Name="cheminSaveCA9" HorizontalAlignment="Center" VerticalAlignment="Center" MinHeight="25" Height="auto" Width="auto"  MinWidth="225" />
                        <Button Grid.Row="4" Name="saveCA9" Content="Sauvegarder CA9" Click="saveCA9_Click" IsEnabled="True" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" />
                        <DockPanel Grid.Row="5" HorizontalAlignment="Stretch" FlowDirection="LeftToRight">
                            <Image Source="Ressources/jump.png" Height="48" Width="48" Margin="10" VerticalAlignment="Center"/>
                            <TextBlock Name="jumptTextBox" Text="Nombre de lignes en jump lors du run 1 : " FontSize="12" VerticalAlignment="Center" Margin="10" Height="auto" TextWrapping="Wrap" />
                        </DockPanel>
                        <DockPanel Grid.Row="6" HorizontalAlignment="Stretch">
                            <Image Source="Ressources/Circle_Red.png" Height="48" Width="48" Margin="10" />
                            <TextBlock Name= "rougeTextBlock" Text="Nombre de ligne avec un feu Rouge : " FontSize="12" Margin="10" Height="auto" VerticalAlignment="Center" TextTrimming="None" TextWrapping="Wrap" />
                        </DockPanel>
                        <DockPanel Grid.Row="7" HorizontalAlignment="Stretch">
                            <Image Source="Ressources/Circle_Orange.png" Height="48" Width="48" Margin="10" />
                            <TextBlock Name= "orangeTextBlock" Text="Nombre de ligne avec un feu Orange : " FontSize="12" Margin="10" Height="auto" VerticalAlignment="Center" TextTrimming="None" TextWrapping="Wrap" />
                        </DockPanel>
                        <DockPanel Grid.Row="8" HorizontalAlignment="Stretch" FlowDirection="LeftToRight">
                            <Image Source="Ressources/Circle_Green.png" Height="48" Width="48" Margin="10" VerticalAlignment="Center"/>
                            <TextBlock Name="greenTextBlock" Text="Nombre de ligne avec un feu Vert : " FontSize="12" VerticalAlignment="Center" Margin="10" Height="auto" TextWrapping="Wrap" />
                        </DockPanel>
                    </Grid>
                </TabItem>
            </TabControl>
            <Grid />
        </Grid>
    </Window>

    MaJ : J'ai résolue le preoblème venait du style pour un label que j'avais mis dans App.xaml, merci pour ton aide

  6. #6
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Rien de particulièrement suspect, si ce n'est peut être la police non présente "Bauhaus 93" mais je ne pense pas que ça provoque des crashs, au pire ça devrait utiliser une police par défaut.

    Donc procède par dichotomie :
    - déjà vire tout ce qui est au sein de l'élément Window, i.e. toute la Grid et vérifie si ça crash toujours,
    - si oui le souci est surement dans une des propriétés de Window
    - si non élimine la moitié du code à l'intérieur et de proche en proche identifie le code coupable.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Le php ne fonctionne pas sur certaine page ?
    Par dark vador 008 dans le forum Langage
    Réponses: 2
    Dernier message: 01/07/2009, 17h09
  2. Réponses: 1
    Dernier message: 22/06/2009, 09h16
  3. [ZF 1.7] [Zend_Lucene] $doc->addField ne fonctionne pas sur certains serveurs
    Par JeanVcrt dans le forum Autres composants
    Réponses: 1
    Dernier message: 13/02/2009, 12h00
  4. Réponses: 7
    Dernier message: 20/11/2008, 10h27
  5. Programme ne fonctionnant que sur certaines machines
    Par Marekh dans le forum DirectX
    Réponses: 14
    Dernier message: 30/08/2005, 14h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo