Initialisation incorrecte ?#@%¤!

Résolu
ephilas Messages postés 21 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 14 février 2007 - 4 mai 2005 à 23:49
ephilas Messages postés 21 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 14 février 2007 - 17 mai 2005 à 07:12
Bonjour à vous,



je me tourne une nouvelle fois vers vous parce que je suis dans le brouillard.

J'ai fait un petit programme qui permet de télécharger les différentes
parties de videos de concerts et de les recoller ensuite : le voilà.
Seulement voilà aujourd'hui certains utilisateurs ont eu un probleme au
lancement de l'application et ont eu ce message : "l'application n'a
pas reussi a s'initialiser correctement .... Cliquez sur OK pour
arreter l'application".

Donc apparemment y a un probleme d'initialisation mais pourquoi chez
eux ? Et pourquoi maintenant ? L'un est sous win xp SP2 avec un
firewall et l'autre sous Win xp SP1 avec juste le firewall windows !



Je ne peux malheureusement pas vous montrer le code source du programme
à cause d'un p$ù#é&* de formatage, mais pour le prochain programme
je voudrais pas faire la même erreur !



Merci Beaucoup d'avance, parce que je sais que le probleme est un peu flou !

8 réponses

cs_coq Messages postés 6349 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 101
16 mai 2005 à 13:23
3
cs_coq Messages postés 6349 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 101
5 mai 2005 à 00:29
Salut,

Malheureusement sans plus de détails sur l'erreur ni code on ne peut pas deviner.
Refait la même erreur et là on pourra t'aider ;-)

Cocoricoooooooo !!!!
coq
MVP Visual C#
0
ephilas Messages postés 21 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 14 février 2007 1
5 mai 2005 à 08:26
Ok coq ! Je suis reparti ! Merci quand meme !!
0
ephilas Messages postés 21 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 14 février 2007 1
15 mai 2005 à 20:16
Rebonjour,

je viens de refaire mon code, je l'ai un peu simplifié mais rien
à faire certains "utilisateurs" ont toujours ce message d'erreur
lorsqu'ils lancent le programme : "l'application n'a
pas reussi a s'initialiser correctement (0xc0000135). Cliquez sur OK pour
arreter l'application" et je trouve pas quel est le probleme !

Alors voilà le code dans son intégralité !

Soyez indulgent je debute et certains bouts de code sont fait un peu fait maison, comme calculer la vitesse !!!



Bonne lecture !



using System;

using System.Drawing;

using System.Collections;

using System.ComponentModel;

using System.Windows.Forms;

using System.Data;

using System.Net;

using System.IO;

using System.Diagnostics;

using System.Threading;



namespace GIDDownload

{

///

/// Description résumée de Form1.

///

public class GIDDownload : System.Windows.Forms.Form

{

private System.Windows.Forms.MainMenu mainMenu1;

private System.Windows.Forms.MenuItem menuItem1;

private System.Windows.Forms.MenuItem menuItem4;

private System.Windows.Forms.Button Telecharger;

private System.Windows.Forms.GroupBox groupBox1;

private System.Windows.Forms.Button Lecture;

private System.Windows.Forms.Button Pause;

private System.Windows.Forms.Label Etat;

private System.Windows.Forms.MenuItem Quitter;

private System.Windows.Forms.TextBox Destination;

private System.Windows.Forms.GroupBox Informations;

private System.Windows.Forms.Label Video;

private System.Windows.Forms.Label Vitesse;

private System.Windows.Forms.Label Temps;

private System.Windows.Forms.FolderBrowserDialog Repertoire;

private System.Windows.Forms.Label Etat2;

private System.Windows.Forms.Label Vitesse2;

private System.Windows.Forms.Label Temps2;

private System.Windows.Forms.Label Video2;

private System.Windows.Forms.ProgressBar progressBar1;

private System.Windows.Forms.Button Parcourir;

private string video;

private int nb_parties;

private string extension;

private int taille;

private bool pause=false;

private int secondes;

private int fic_dl=0;

private System.Windows.Forms.MenuItem Tutorial;

private System.Windows.Forms.MenuItem APropos;

private System.Timers.Timer timer2;

private System.Windows.Forms.Button Connexion;

private System.Windows.Forms.MenuItem menuItem2;

private System.ComponentModel.IContainer components;



public GIDDownload()

{

//

// Requis pour la prise en charge du Concepteur Windows Forms

//

InitializeComponent();



//

// TODO :
ajoutez le code du constructeur après l'appel à InitializeComponent

//

}



///

/// Nettoyage des ressources utilisées.

///

protected override void Dispose( bool disposing )

{

if( disposing )

{

if (components != null)

{

components.Dispose();

}

}

base.Dispose( disposing );

}



#region Code généré par le Concepteur Windows Form

///

/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas

/// le contenu de cette méthode avec l'éditeur de code.

///

private void InitializeComponent()

{


System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(GIDDownload));

this.mainMenu1 = new System.Windows.Forms.MainMenu();

this.menuItem1 = new System.Windows.Forms.MenuItem();

this.Quitter = new System.Windows.Forms.MenuItem();

this.menuItem4 = new System.Windows.Forms.MenuItem();

this.Tutorial = new System.Windows.Forms.MenuItem();

this.menuItem2 = new System.Windows.Forms.MenuItem();

this.APropos = new System.Windows.Forms.MenuItem();

this.Telecharger = new System.Windows.Forms.Button();

this.Lecture = new System.Windows.Forms.Button();

this.Pause = new System.Windows.Forms.Button();

this.groupBox1 = new System.Windows.Forms.GroupBox();

this.Destination = new System.Windows.Forms.TextBox();

this.Parcourir = new System.Windows.Forms.Button();

this.Informations = new System.Windows.Forms.GroupBox();

this.progressBar1 = new System.Windows.Forms.ProgressBar();

this.Temps2 = new System.Windows.Forms.Label();

this.Vitesse2 = new System.Windows.Forms.Label();

this.Video2 = new System.Windows.Forms.Label();

this.Etat2 = new System.Windows.Forms.Label();

this.Etat = new System.Windows.Forms.Label();

this.Temps = new System.Windows.Forms.Label();

this.Vitesse = new System.Windows.Forms.Label();

this.Video = new System.Windows.Forms.Label();

this.Repertoire = new System.Windows.Forms.FolderBrowserDialog();

this.timer2 = new System.Timers.Timer();

this.Connexion = new System.Windows.Forms.Button();

this.groupBox1.SuspendLayout();

this.Informations.SuspendLayout();

((System.ComponentModel.ISupportInitialize)(this.timer2)).BeginInit();

this.SuspendLayout();

//

// mainMenu1

//

this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {








this.menuItem1,








this.menuItem4});

//

// menuItem1

//

this.menuItem1.Index = 0;

this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {








this.Quitter});

this.menuItem1.Text = "Fichier";

//

// Quitter

//

this.Quitter.Index = 0;

this.Quitter.Text = "Quitter";

this.Quitter.Click += new System.EventHandler(this.Quitter_Click);

//

// menuItem4

//

this.menuItem4.Index = 1;

this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {








this.Tutorial,








this.menuItem2,








this.APropos});

this.menuItem4.Text = "?";

//

// Tutorial

//

this.Tutorial.Index = 0;

this.Tutorial.Text = "Tutorial";

this.Tutorial.Click += new System.EventHandler(this.Tutorial_Click);

//

// menuItem2

//

this.menuItem2.Index = 1;

this.menuItem2.Text = "FAQ";

this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);

//

// APropos

//

this.APropos.Index = 2;

this.APropos.Text = "A propos";

this.APropos.Click += new System.EventHandler(this.APropos_Click);

//

// Telecharger

//

this.Telecharger.Enabled = false;


this.Telecharger.Image =
((System.Drawing.Image)(resources.GetObject("Telecharger.Image")));

this.Telecharger.Location = new System.Drawing.Point(8, 48);

this.Telecharger.Name = "Telecharger";

this.Telecharger.Size = new System.Drawing.Size(32, 32);

this.Telecharger.TabIndex = 0;

this.Telecharger.Tag = "Télécharger";


this.Telecharger.Click += new
System.EventHandler(this.Telecharger_Click);

//

// Lecture

//

this.Lecture.Enabled = false;


this.Lecture.Image =
((System.Drawing.Image)(resources.GetObject("Lecture.Image")));

this.Lecture.Location = new System.Drawing.Point(8, 80);

this.Lecture.Name = "Lecture";

this.Lecture.Size = new System.Drawing.Size(32, 32);

this.Lecture.TabIndex = 1;

this.Lecture.Click += new System.EventHandler(this.Lecture_Click);

//

// Pause

//

this.Pause.Enabled = false;


this.Pause.Image =
((System.Drawing.Image)(resources.GetObject("Pause.Image")));

this.Pause.Location = new System.Drawing.Point(8, 112);

this.Pause.Name = "Pause";

this.Pause.Size = new System.Drawing.Size(32, 32);

this.Pause.TabIndex = 2;

this.Pause.Click += new System.EventHandler(this.Pause_Click);

//

// groupBox1

//

this.groupBox1.Controls.Add(this.Destination);

this.groupBox1.Controls.Add(this.Parcourir);

this.groupBox1.Location = new System.Drawing.Point(8, 152);

this.groupBox1.Name = "groupBox1";

this.groupBox1.Size = new System.Drawing.Size(368, 56);

this.groupBox1.TabIndex = 3;

this.groupBox1.TabStop = false;

this.groupBox1.Text = "Destination";

//

// Destination

//

this.Destination.Enabled = false;

this.Destination.Location = new System.Drawing.Point(8, 24);

this.Destination.Name = "Destination";

this.Destination.Size = new System.Drawing.Size(280, 20);

this.Destination.TabIndex = 2;

this.Destination.Text = "";

//

// Parcourir

//

this.Parcourir.Location = new System.Drawing.Point(296, 24);

this.Parcourir.Name = "Parcourir";

this.Parcourir.Size = new System.Drawing.Size(64, 24);

this.Parcourir.TabIndex = 1;

this.Parcourir.Text = "Parcourir";

this.Parcourir.Click += new System.EventHandler(this.Parcourir_Click);

//

// Informations

//

this.Informations.Controls.Add(this.progressBar1);

this.Informations.Controls.Add(this.Temps2);

this.Informations.Controls.Add(this.Vitesse2);

this.Informations.Controls.Add(this.Video2);

this.Informations.Controls.Add(this.Etat2);

this.Informations.Controls.Add(this.Etat);

this.Informations.Controls.Add(this.Temps);

this.Informations.Controls.Add(this.Vitesse);

this.Informations.Controls.Add(this.Video);

this.Informations.Location = new System.Drawing.Point(48, 8);

this.Informations.Name = "Informations";

this.Informations.Size = new System.Drawing.Size(328, 136);

this.Informations.TabIndex = 4;

this.Informations.TabStop = false;

this.Informations.Text = "Informations";

//

// progressBar1

//

this.progressBar1.Location = new System.Drawing.Point(8, 112);

this.progressBar1.Name = "progressBar1";

this.progressBar1.Size = new System.Drawing.Size(312, 16);

this.progressBar1.TabIndex = 9;

//

// Temps2

//

this.Temps2.Location = new System.Drawing.Point(112, 80);

this.Temps2.Name = "Temps2";

this.Temps2.Size = new System.Drawing.Size(208, 16);

this.Temps2.TabIndex = 7;

//

// Vitesse2

//

this.Vitesse2.Location = new System.Drawing.Point(112, 64);

this.Vitesse2.Name = "Vitesse2";

this.Vitesse2.Size = new System.Drawing.Size(208, 16);

this.Vitesse2.TabIndex = 6;

//

// Video2

//

this.Video2.Location = new System.Drawing.Point(112, 48);

this.Video2.Name = "Video2";

this.Video2.Size = new System.Drawing.Size(208, 16);

this.Video2.TabIndex = 5;

//

// Etat2

//

this.Etat2.Location = new System.Drawing.Point(112, 32);

this.Etat2.Name = "Etat2";

this.Etat2.Size = new System.Drawing.Size(208, 16);

this.Etat2.TabIndex = 4;

//

// Etat

//

this.Etat.Location = new System.Drawing.Point(16, 32);

this.Etat.Name = "Etat";

this.Etat.Size = new System.Drawing.Size(88, 16);

this.Etat.TabIndex = 3;

this.Etat.Text = "Etat : ";

//

// Temps

//

this.Temps.Location = new System.Drawing.Point(16, 80);

this.Temps.Name = "Temps";

this.Temps.Size = new System.Drawing.Size(88, 16);

this.Temps.TabIndex = 2;

this.Temps.Text = "Temps restant :";

//

// Vitesse

//

this.Vitesse.Location = new System.Drawing.Point(16, 64);

this.Vitesse.Name = "Vitesse";

this.Vitesse.Size = new System.Drawing.Size(88, 16);

this.Vitesse.TabIndex = 1;

this.Vitesse.Text = "Vitesse :";

//

// Video

//

this.Video.Location = new System.Drawing.Point(16, 48);

this.Video.Name = "Video";

this.Video.Size = new System.Drawing.Size(88, 16);

this.Video.TabIndex = 0;

this.Video.Text = "Vidéo du mois :";

//

// timer2

//

this.timer2.Enabled = true;

this.timer2.Interval = 1000;

this.timer2.SynchronizingObject = this;


this.timer2.Elapsed += new
System.Timers.ElapsedEventHandler(this.timer2_Elapsed);

//

// Connexion

//

this.Connexion.AccessibleDescription = "";


this.Connexion.Image =
((System.Drawing.Image)(resources.GetObject("Connexion.Image")));

this.Connexion.Location = new System.Drawing.Point(8, 16);

this.Connexion.Name = "Connexion";

this.Connexion.Size = new System.Drawing.Size(32, 32);

this.Connexion.TabIndex = 5;

this.Connexion.Click += new System.EventHandler(this.Connexion_Click);

//

// GIDDownload

//

this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

this.ClientSize = new System.Drawing.Size(384, 215);

this.Controls.Add(this.Connexion);

this.Controls.Add(this.Informations);

this.Controls.Add(this.groupBox1);

this.Controls.Add(this.Pause);

this.Controls.Add(this.Lecture);

this.Controls.Add(this.Telecharger);

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

this.MaximizeBox = false;

this.MaximumSize = new System.Drawing.Size(392, 264);

this.Menu = this.mainMenu1;

this.MinimumSize = new System.Drawing.Size(392, 264);

this.Name = "GIDDownload";

this.Text = "GIDDownload";

this.groupBox1.ResumeLayout(false);

this.Informations.ResumeLayout(false);

((System.ComponentModel.ISupportInitialize)(this.timer2)).EndInit();

this.ResumeLayout(false);



}

#endregion



///

/// Point d'entrée principal de l'application.

///

[STAThread]

static void Main()

{

Application.Run(new GIDDownload());

}



private void Quitter_Click(object sender, System.EventArgs e)

{

Application.ExitThread();

Application.Exit();

}



private void Parcourir_Click(object sender, System.EventArgs e)

{

if (Repertoire.ShowDialog() == DialogResult.OK)

Destination.Text = Repertoire.SelectedPath;

if
(Repertoire.SelectedPath!=@Path.GetPathRoot(Repertoire.SelectedPath))

Destination.Text+="\";

}



private void timer2_Elapsed(object sender, System.Timers.ElapsedEventArgs e)

{

if (!pause)

secondes++;

}



private void Telecharger_Click(object sender, System.EventArgs e)

{

Verification();

}



private void Lecture_Click(object sender, System.EventArgs e)

{

Lecture.Enabled=false;

pause=false;

Thread dl = new Thread(new ThreadStart(Telechargement));

}



private void Pause_Click(object sender, System.EventArgs e)

{

Etat2.Text="Téléchargement interrompu";

Etat2.ForeColor=System.Drawing.Color.Red;

Etat2.Refresh();



Lecture.Enabled=true;

Pause.Enabled=false;

pause=true;

}



private void APropos_Click(object sender, System.EventArgs e)

{


MessageBox.Show(" GIDDownload
v.1.1\n\nwww.grungeisdead.zik.mu");

}



private void Tutorial_Click(object sender, System.EventArgs e)

{

Process.Start("http://grungeisdead.free.fr/forum/viewtopic.php?t=276");

}



private void menuItem2_Click(object sender, System.EventArgs e)

{

Process.Start("http://grungeisdead.free.fr/forum/viewtopic.php?t=234");

}



private string Heure (int secondes)

{

int minutes;

int heures;

string heure;



minutes=secondes/60;

secondes=secondes%60;

heures=minutes/60;

minutes=minutes%60;



if (heures
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cs_coq Messages postés 6349 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 101
16 mai 2005 à 09:51
Le message ne parlerais pas de mscorlib.dll par hasard ?

Cocoricoooooooo !!!!
coq
MVP Visual C#
0
ephilas Messages postés 21 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 14 février 2007 1
16 mai 2005 à 12:50
Non, voila une capture d'ecran du message d'erreur : http://home.ripway.com/2004-11/211433/--2005-05-14--14-08-45.jpg
0
cs_coq Messages postés 6349 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 101
16 mai 2005 à 13:13
Il n'aurais pas oublier d'installer le Framework .Net ?

Cocoricoooooooo !!!!
coq
MVP Visual C#
0
ephilas Messages postés 21 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 14 février 2007 1
17 mai 2005 à 07:12
Merci beaucoup Coq t'as encore vu juste !
0
Rejoignez-nous