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 :

Crash sur l'écriture dans un fichier


Sujet :

C++

  1. #1
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut Crash sur l'écriture dans un fichier
    Bonjour à tous,
    Voila j'ai de manière assez aléatoire des crashs sur les lignes comportant l’opérateur<< de std::ofstream.

    Je doit écrire dans un fichier temporaire certaines donnés, puis ce fichier temporaire et relu par le soft qui traite les données au fur qui sont mise dans un fichier final avant de supprimer le fichier temporaire sachant que ces actions sont répété en boucle pendant un certain temps. Cela me permet de traiter zone après zone mes informations.

    Or de manière tout a fait aléatoire d'un coup je ne peux plus supprimer mon fichier temporaire puis même si j'écrase le contenu de mon fichier au bout d'un moment je ne peut plus écrire dans mon fichier final . je reçois l'erreur : <blockquote>The inferior stopped because it triggered an exceptions. Stopped in thread 11 by : Exception at 0x7ffb78a841es, code: 0x0000005: write acces violation at 0x1, flag= 0x0

    lorsque je passe par la ligne suivante:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    flux << "1vv10.0" << endl;   // ligne du crash
    pour information j'utilise Qtcreator avec QT 5.2.1

    voici ma fonction entière :
    Code : 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
    void Remplissage::redactionFichier(QMatrix4x4 transfo, std::ofstream &flux, std::map<double, std::vector<double> > &intersection)
    {
        bool aller = true;
        for (std::map<double, std::vector<double>>::iterator it = intersection.begin(); it != intersection.end(); ++it)
        {
            if (annulation)
                return ;
            unsigned int nbPoint = (unsigned int)it->second.size();
            if (nbPoint > 1)
            {
                sort(it->second.begin(), it->second.end());
                int nbTrajSupprimer = VerifTrajTropCourte(it->second);
     
                double axeDetection = it->first;
                nbPoint = (unsigned int)it->second.size();
                if ( nbPoint <2)
                {
                    qDebug() << "Supression de la trajectoire entière";
                    continue;
                }
     
                unsigned int nbPointParTraj = 500;
                unsigned int nbTrajectoire = ceil((static_cast<double>(nbPoint)/ static_cast<double>(nbPointParTraj)));
                unsigned int nbPointDejaLu = 0;
                for (unsigned int n = 0; n < nbTrajectoire; ++n)
                {
                    if (annulation)
                        return ;
     
                    unsigned int nbPoint_TrajCourante = qMin(nbPoint-nbPointDejaLu,nbPointParTraj);
                    double coordDebutTrajectoire = 0.0;
                    double coordFinTrajectoire = 0.0;
                    if (aller)
                    {
                        coordDebutTrajectoire = it->second[nbPointDejaLu] - stabDebut;
                        coordFinTrajectoire = it->second[nbPointDejaLu + nbPoint_TrajCourante - 1] + stabFin;
                    }
                    else
                    {
                        coordFinTrajectoire = it->second[nbPointDejaLu] - stabFin;
                        coordDebutTrajectoire = it->second[nbPointDejaLu + nbPoint_TrajCourante - 1] + stabDebut;
                    }
                    try
                    {
                        if (direction == HORIZONTAL)
                            flux << "[FSCX]" << std::endl; //ligne qui crash 
                        else if ( direction == VERTICALE)
                            flux << "[FSCY]" << endl;
                        else
    					{
                            qDebug() << "Combinaison Impossible";
    						continue;
                        }
                        flux << "Points " << nbPoint_TrajCourante;
                        for (unsigned int indicePoints = 0; indicePoints < nbPoint_TrajCourante; ++indicePoints)
                        {
                            double value = 0.0;
                            if (aller)
                                value = it->second[nbPointDejaLu + indicePoints];
                            else
                                value = it->second[nbPoint - (nbPointDejaLu + indicePoints + indicePoints + 1)];
                            flux << " " << QString().sprintf("%.6f", value).toLatin1().constData();
                        }
                        flux << endl;
     
                        flux << "[END]" << endl;
                        if ( nbPoint_TrajCourante<500)
                            nbPointDejaLu = 0;
                        else
                            nbPointDejaLu += nbPoint_TrajCourante;
                    }
    				catch (...)
                    {
                            qDebug() << "Crash a déterminer"
                    }
     
                }
            }
        }
    }

  2. #2
    Rédacteur/Modérateur


    Homme Profil pro
    Network game programmer
    Inscrit en
    Juin 2010
    Messages
    7 113
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Canada

    Informations professionnelles :
    Activité : Network game programmer

    Informations forums :
    Inscription : Juin 2010
    Messages : 7 113
    Points : 32 958
    Points
    32 958
    Billets dans le blog
    4
    Par défaut
    Ce seul code ne comporte à priori pas d'erreurs, si le test de vérification que le fichier est bien ouvert se fait à l'extérieur, à partir du moment où tu ne fais pas n'importe quoi avec ton fichier à côté.
    Et vu que tu parles de le lire en parallèle etc, j'ai des doutes à ce sujet.
    Pensez à consulter la FAQ ou les cours et tutoriels de la section C++.
    Un peu de programmation réseau ?
    Aucune aide via MP ne sera dispensée. Merci d'utiliser les forums prévus à cet effet.

  3. #3
    Expert éminent sénior
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 059
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 059
    Points : 12 095
    Points
    12 095
    Par défaut
    Le message d'erreur indique que vous essayez d'écrire dans une zone mémoire où il est interdit d'écrire.
    L'adresse, c'est 0x00000001, ça sent donc l'utilisation d'un pointeur nullptr.
    Le coredump devrait vous indiquez où et pourquoi vous faites cette chose.

  4. #4
    Expert éminent
    Homme Profil pro
    Ingénieur développement matériel électronique
    Inscrit en
    Décembre 2015
    Messages
    1 562
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement matériel électronique
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Décembre 2015
    Messages : 1 562
    Points : 7 628
    Points
    7 628
    Par défaut
    Bonjour,

    ligne 61. Pourquoi donc indicePoints est-il décompté deux fois?

  5. #5
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    tout d'abord Merci d'avoir pris le temps de répondre.
    L'adresse, c'est 0x00000001, ça sent donc l'utilisation d'un pointeur nullptr.
    j'ai tenté de vérifié avec le code suivant l'état de mon ofstream comme ceci et je ne passe dans aucun de mes if
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
                        if ( !flux.is_open())
                            qDebug() << "not open";
                        if ( !flux.good())
                            qDebug() << "not good";
                        if ( flux.bad())
                            qDebug() << "flux bad";
                        if ( flux.fail())
                            qDebug() << " flux fail";
    et je ne pense pas que ce soit mon texte qui est static.

    Concernant cette remarque :
    ligne 61. Pourquoi donc indicePoints est-il décompté deux fois?
    il va falloir que je revérifie ma logique a ce niveau là, mais il me semble en effet qu'il y a peut être un soucis à ce niveau là .
    Par contre es ce que c'est vraiment la cause de mon problème je ne pense pas sinon ça n'aurais pas crash ici. non ?

  6. #6
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    il va falloir que je revérifie ma logique a ce niveau là, mais il me semble en effet qu'il y a peut être un soucis à ce niveau là .
    Par contre es ce que c'est vraiment la cause de mon problème je ne pense pas sinon ça n'aurais pas crash ici. non ?
    Je confirme que cela ne change rien quand j'enlève le second "indicePoints" à la ligne 61

    Ensuite pour etre exacte voici les methodse qui appelle la méthode qui crash :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    bool Remplissage::generationUneTrajectoire(QMatrix4x4 transfo,std::ofstream& file ,float coord, ClipperLib::Paths &polygone)
    {
        //Creation de la trajectoire
        ClipperLib::Path trajectoire;
        generationLigneRemplissage(trajectoire,coord);
     
        //intersection
        std::map<double, std::vector<double> > intersectionUneLigne;
        intesectionUneTrajectoire(intersectionUneLigne,polygone,trajectoire);
     
        redactionLWO(transfo,file,intersectionUneLigne); // << Méthode qui crash
     
        return true;
    }
    Code : 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
    int Remplissage::generationLwo(std::ofstream &file, QMatrix4x4& mat)
    {
        if ( lesPolygones.size()==0)
        {
            return 0;
        }
     
        float borneMax= FLT_MIN ;
        float borneMin = FLT_MAX ;
        ClipperLib::Paths polygones;
        recupMinMax(borneMin, borneMax, polygones);
     
        //-----------------------------
        // Fusion des polygones
        // ----------------------------
        if ( !inverserRecouvrement)
        {
            fusionPolygone(polygones);
        }
     
        //-------------------------------------
        //  Génération des trajectoires
        //-------------------------------------
        for (float currentCoord = borneMax ; currentCoord >= borneMin ; currentCoord-= deltaTrajectoire)
        {
            generationUneTrajectoire(mat,file,currentCoord,polygones); << Méthodes qui appel celle qui crash
        }
        return 0;
    }

    Code : 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
    bool Pattern::writeRemplissage(std::vector<QPointF> &poly, QRectF boundary)
    {
        if ( !remplissage)
        {
            return true;
        }
     
        if ( !fichier.is_open())
        {
            return false;
        }
     
        Remplissage unremplissage;
        prepareParametreRemplissage(unremplissage);
        unremplissage.setZoneRemplissage(boundary);
        unremplissage.addPolygone(poly);
     
        return (unremplissage.generationLwo(fichier,transformation) == 0);
     
    }
    sachant que pattern est :
    Code : 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
    class Pattern : public QObject
    {
        Q_OBJECT
     
        //----------------------------------
        //     Attributs
        //----------------------------------
    protected:
     
        std::ofstream fichier;
        bool remplissage;
        QMatrix4x4  transformation;
        bool annulation;
     
    // ... Attributs divers inutiles pour la problématique
     
     
        //----------------------------------
        //     Methodes
        //----------------------------------
    public:
        Pattern(QFileInfo path);
        ~Pattern();
     
        bool writeRemplissage(std::vector< std::vector<QPointF> >& polys, QRectF boundary = QRectF(QPointF(-FLT_MAX,FLT_MAX), QPointF(FLT_MAX,-FLT_MAX)));
     
        // ... fonctions diverses inutile pour la problématique ...
     
    };
    avec comme constructeur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    Pattern::Pattern(QFileInfo path):
            fichier(path.absoluteFilePath().toLatin1().constData(), std::ios::out | std::ios::trunc)
    {
        if ( !fichier.is_open())
            qDebug() << "Impossible de créer le fichier" << "Pattern::Pattern(QFileInfo path)";
        transformation.setToIdentity();
    }

  7. #7
    Rédacteur/Modérateur


    Homme Profil pro
    Network game programmer
    Inscrit en
    Juin 2010
    Messages
    7 113
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Canada

    Informations professionnelles :
    Activité : Network game programmer

    Informations forums :
    Inscription : Juin 2010
    Messages : 7 113
    Points : 32 958
    Points
    32 958
    Billets dans le blog
    4
    Par défaut
    Et si tu utilisais le debugger pour savoir et indiquer sur quelle ligne le crash se produit ?
    Pensez à consulter la FAQ ou les cours et tutoriels de la section C++.
    Un peu de programmation réseau ?
    Aucune aide via MP ne sera dispensée. Merci d'utiliser les forums prévus à cet effet.

  8. #8
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    Justement comme j'indiquais dans mon premier message le crash se produit sur la ligne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    flux << "1vv10.0" << endl;   // ligne du crash

  9. #9
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    d’ailleurs pour être exacte l'erreur est réellement produite sur la ligne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    	virtual int __CLR_OR_THIS_CALL sync()
    		{	// synchronize C stream with external file
    		return (_Myfile == 0
    			|| _Traits::eq_int_type(_Traits::eof(), overflow())
    			|| 0 <= fflush(_Myfile) ? 0 : -1);
    mais celle ci semble etre appelé par :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    flux << "1vv10.0" << endl;   // ligne du crash

  10. #10
    Expert éminent sénior

    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    5 186
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 5 186
    Points : 17 126
    Points
    17 126
    Par défaut
    Que dit le débugger?
    La fameuse ligne que tu mentionnes n'est pas présente dans le code que tu nous as fourni.
    Mes principes de bases du codeur qui veut pouvoir dormir:
    • Une variable de moins est une source d'erreur en moins.
    • Un pointeur de moins est une montagne d'erreurs en moins.
    • Un copier-coller, ça doit se justifier... Deux, c'est un de trop.
    • jamais signifie "sauf si j'ai passé trois jours à prouver que je peux".
    • La plus sotte des questions est celle qu'on ne pose pas.
    Pour faire des graphes, essayez yEd.
    le ter nel est le titre porté par un de mes personnages de jeu de rôle

  11. #11
    Rédacteur/Modérateur


    Homme Profil pro
    Network game programmer
    Inscrit en
    Juin 2010
    Messages
    7 113
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Canada

    Informations professionnelles :
    Activité : Network game programmer

    Informations forums :
    Inscription : Juin 2010
    Messages : 7 113
    Points : 32 958
    Points
    32 958
    Billets dans le blog
    4
    Par défaut
    Citation Envoyé par flamme34 Voir le message
    Justement comme j'indiquais dans mon premier message le crash se produit sur la ligne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    flux << "1vv10.0" << endl;   // ligne du crash
    Et comme indiqué dans nos premières réponses, tu fais sûrement n'importe quoi avec ton autre appli qui lit et écrase le même fichier d'après ton premier message.
    Cette seule ligne n'a absolument aucune chance de crasher en tant que tel, si flux est valide.
    Pensez à consulter la FAQ ou les cours et tutoriels de la section C++.
    Un peu de programmation réseau ?
    Aucune aide via MP ne sera dispensée. Merci d'utiliser les forums prévus à cet effet.

  12. #12
    Expert éminent sénior

    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    5 186
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 5 186
    Points : 17 126
    Points
    17 126
    Par défaut
    Au passage, pourquoi passer par un fichier temporaire? Un std::stringstream ne suffirait pas? Ca serait très certainement beaucoup plus efficace.
    Mes principes de bases du codeur qui veut pouvoir dormir:
    • Une variable de moins est une source d'erreur en moins.
    • Un pointeur de moins est une montagne d'erreurs en moins.
    • Un copier-coller, ça doit se justifier... Deux, c'est un de trop.
    • jamais signifie "sauf si j'ai passé trois jours à prouver que je peux".
    • La plus sotte des questions est celle qu'on ne pose pas.
    Pour faire des graphes, essayez yEd.
    le ter nel est le titre porté par un de mes personnages de jeu de rôle

  13. #13
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    Je dois avouer ne pas connaitre les std::stringstreams (je vais me renseigner cependant) mais c'est une demande express de mon manager de passer par un fichier physique afin de pouvoir à tout instant voir les fichiers temporaires avec notepadd++.

  14. #14
    Rédacteur/Modérateur


    Homme Profil pro
    Network game programmer
    Inscrit en
    Juin 2010
    Messages
    7 113
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Canada

    Informations professionnelles :
    Activité : Network game programmer

    Informations forums :
    Inscription : Juin 2010
    Messages : 7 113
    Points : 32 958
    Points
    32 958
    Billets dans le blog
    4
    Par défaut
    Que le manager se contente de manager et laisse les développeurs développer.
    Quel est l'intérêt du fichier puisque le programme le supprime automatiquement de toutes façons ?
    Un fichier pour échanger des données en temps réel entre 2 applications ça doit pas être loin de la pire idée possible pour ce genre d'échanges.
    Pensez à consulter la FAQ ou les cours et tutoriels de la section C++.
    Un peu de programmation réseau ?
    Aucune aide via MP ne sera dispensée. Merci d'utiliser les forums prévus à cet effet.

  15. #15
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    son idée était de pouvoir observé le fichier en cours de debug et de pouvoir éviter une surcharge RAM

  16. #16
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    Et comme indiqué dans nos premières réponses, tu fais sûrement n'importe quoi avec ton autre appli qui lit et écrase le même fichier d'après ton premier message.

    ce n'est pas une autre appli qui lit le fichier mais la même appli un peu plus tard.
    la boucle fait :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    creation fichier final 
     
    TANT QUE PAS TOUT TRAITE
    {
          creation du fichier TMP en ecriture
          remplissage du fichier TMP
          fermeture du fichier TMP
     
          ouverture du fichier TMP en lecture
          lecture du fichier TMP
          Ecriture dans le fichier final
          fermeture du fichier TMP
          destruction du fichier TMP 
    }
    fermeture du fichier final
    or là c'est l'écriture dans le fichier final qui crash

    Pour vous expliquer un peu je dois traité un certain nombre d’éléments dans un espace graphique je récupéré donc les cordonnées de tout les points des éléments à travers un certain calcul ( calcul de clone avec transformation) de la bande que je stocke dans le fichier TMP que je relis ensuite une fois la bande intégralement décrite dans le tmp pour pouvoir appliquer des calcul uniquement a cette bande puis en écrire la description dans le fichier final

    je ne sais pas si je suis très clair



    Cette seule ligne n'a absolument aucune chance de crasher en tant que tel, si flux est valide.
    dans la logique oui je suis d'accord à part si le flux est invalide je ne vois pas pourquoi cette ligne crasherai.
    cependant j'ai tenté de testé le flux avec ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
                        if ( !flux.is_open())
                            qDebug() << "not open";
                        if ( !flux.good())
                            qDebug() << "not good";
                        if ( flux.bad())
                            qDebug() << "flux bad";
                        if ( flux.fail())
                            qDebug() << " flux fail";
    mais le code ne passe absolument jamais par mes qDebug().

  17. #17
    Expert éminent sénior
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 059
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 059
    Points : 12 095
    Points
    12 095
    Par défaut
    On va laisser de côté ces idées "originales" qui, de loin, n'apportent que des emmerdes.

    On va prouver que ces de la merde, puis on vous donnera une "bonne" solution à votre vrai problème.
    (Les bibliothèques/API de Log, c'est pas pour sucrer des fraises!)

    Donc, sur la ligne où ça crash, vérifiez avec le débogueur les valeurs des variables utilisés ("this" compris).
    L'une d'elles doit être à null_ptr, et elle devrait pas.

  18. #18
    Membre régulier
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Février 2011
    Messages
    266
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 34
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 266
    Points : 86
    Points
    86
    Par défaut
    On va laisser de côté ces idées "originales" qui, de loin, n'apportent que des emmerdes.

    On va prouver que ces de la merde, puis on vous donnera une "bonne" solution à votre vrai problème.
    (Les bibliothèques/API de Log, c'est pas pour sucrer des fraises!)
    Ça pour le coup j'ai bien compris que notre solution n'était pas des plus élégantes pour tout conseil je suis preneuse. L'avantage pour nous de notre solution était d'éviter une surcharge mémoire en écrivant dans le disque dur physique mais si vous avez d'autre idée comme je le dis je suis preneuse.


    Donc, sur la ligne où ça crash, vérifiez avec le débogueur les valeurs des variables utilisés ("this" compris).
    L'une d'elles doit être à null_ptr, et elle devrait pas.
    Concernant le débogueur voici un copier coller des information concernant le flux . j'ai pu voir que plusieurs variable était à 0x0 mais je ne comprend pas pourquoi elles sont à null.

    Code : 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
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
     
    	Variables locales		
    		flux	0x28a92cc1af0	std::basic_ofstream<char,std::char_traits<char> > *
    			_Filebuffer	class std::basic_filebuf<>	std::basic_filebuf<char,std::char_traits<char> >
    				_Closef	true	bool
    				_Mychar	'' 	-51/205	0xcd	char
    				_Myfile	0x7ffe3bf186d0	_iobuf *
    					_base	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    						*	'[' 	91    	0x5b	char
    					_bufsiz	4096	int
    					_charbuf	0	int
    					_cnt	4089	int
    					_file	3	int
    					_flag	32778	int
    					_ptr	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    						*	'a' 	97    	0x61	char
    					_tmpfname	0x0	char *
    						*	<Memory access error>	char
    				_Pcvt	0x0	std::codecvt<char,char,int> *
    					id	<Static const member value not available error>	<Static const member value not available error>
    					std::codecvt_base	class std::codecvt_base	std::codecvt_base
    						std::locale::facet	class std::locale::facet	std::locale::facet
    							_Refs	<Memory access error>	unsigned long
    							std::_Facet_base	class std::_Facet_base	std::_Facet_base
    								__vfptr	0x0	__fptr() [3]
    									[0]	<Memory	__fptr()
    									[1]	<Memory	__fptr()
    									[2]	<Memory	__fptr()
    				_Set_eback	0xcdcdcdcdcdcdcdcd "--- memory read error at address 0xcdcdcdcd`cdcdcdcd ---"	char *
    					*	<Memory access error>	char
    				_Set_egptr	0xcdcdcdcdcdcdcdcd "--- memory read error at address 0xcdcdcdcd`cdcdcdcd ---"	char *
    					*	<Memory access error>	char
    				_State	0	int
    				_Wrotesome	false	bool
    				std::basic_streambuf<>	class std::basic_streambuf<>	std::basic_streambuf<char,std::char_traits<char> >
    					_Gcount	0	int
    					_Gfirst	0x0	char *
    						*	<Memory access error>	char
    					_Gnext	0x0	char *
    						*	<Memory access error>	char
    					_IGcount	0x7ffe3bf186d8	int *
    						*	4089	int
    					_IGfirst	0x7ffe3bf186e0	char **
    						*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    					_IGnext	0x7ffe3bf186d0	char **
    						*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    					_IPcount	0x7ffe3bf186d8	int *
    						*	4089	int
    					_IPfirst	0x7ffe3bf186e0	char **
    						*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    							*	'[' 	91    	0x5b	char
    					_IPnext	0x7ffe3bf186d0	char **
    						*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    							*	'a' 	97    	0x61	char
    					_Pcount	0	int
    					_Pfirst	0x0	char *
    						*	<Memory access error>	char
    					_Plocale	0x28a92fc1250	std::locale *
    						_Ptr	0x28a88be9b90	std::locale::_Locimp *
    							_Catmask	63	int
    							_Clocptr	<Static const member value not available error>	<Static const member value not available error>
    							_Facetcount	0	unsigned int64
    							_Facetvec	0x0	std::locale::facet **
    								*	<Memory access error>	std::locale::facet *
    									_Refs	<Memory access error>	unsigned long
    									std::_Facet_base	class std::_Facet_base	std::_Facet_base
    							_Name	class std::_Yarn<>	std::_Yarn<char>
    								_Myptr	0x28a88be9c30 "C"	char *
    									*	'C' 	67    	0x43	char
    								_Nul	'\0'	0    	0x00	char
    							_Xparent	false	bool
    							std::locale::facet	class std::locale::facet	std::locale::facet
    								_Refs	28	unsigned long
    								std::_Facet_base	class std::_Facet_base	std::_Facet_base
    									__vfptr	0x7ffe52c8ad70	__fptr() [3]
    										[0]	0x7ffe52be7600	__fptr()
    										[1]	0x7ffe52be9400	__fptr()
    										[2]	0x7ffe52be8260	__fptr()
    						std::_Locbase<>	class std::_Locbase<>	std::_Locbase<int>
    							all	<Static const member value not available error>	<Static const member value not available error>
    							collate	<Static const member value not available error>	<Static const member value not available error>
    							ctype	<Static const member value not available error>	<Static const member value not available error>
    							messages	<Static const member value not available error>	<Static const member value not available error>
    							monetary	<Static const member value not available error>	<Static const member value not available error>
    							none	<Static const member value not available error>	<Static const member value not available error>
    							numeric	<Static const member value not available error>	<Static const member value not available error>
    							time	<Static const member value not available error>	<Static const member value not available error>
    					_Pnext	0x0	char *
    						*	<Memory access error>	char
    					__vfptr	0x7ff6d4d022d8	__fptr() [15]
    						[0]	0x7ff6d4ab9863	__fptr()
    						[10]	0x7ff6d4ab196a	__fptr()
    						[11]	0x7ff6d4ab7829	__fptr()
    						[12]	0x7ff6d4ab61a4	__fptr()
    						[13]	0x7ff6d4ab2de2	__fptr()
    						[14]	0x7ff6d4ab8909	__fptr()
    						[1]	0x7ff6d4ab3b1b	__fptr()
    						[2]	0x7ff6d4ab16cc	__fptr()
    						[3]	0x7ff6d4ab8ec7	__fptr()
    						[4]	0x7ff6d4ab72d9	__fptr()
    						[5]	0x7ff6d4c7b090	__fptr()
    						[6]	0x7ff6d4ab33a5	__fptr()
    						[7]	0x7ff6d4ab5e75	__fptr()
    						[8]	0x7ff6d4c7b0a2	__fptr()
    						[9]	0x7ff6d4c7b0a8	__fptr()
    			std::basic_ios<>	class std::basic_ios<>	std::basic_ios<char,std::char_traits<char> >
    				_Fillch	' ' 	32    	0x20	char
    				_Mystrbuf	0x28a92cc1af8	std::basic_streambuf<char,std::char_traits<char> > *
    					_Gcount	0	int
    					_Gfirst	0x0	char *
    						*	<Memory access error>	char
    					_Gnext	0x0	char *
    						*	<Memory access error>	char
    					_IGcount	0x7ffe3bf186d8	int *
    						*	4089	int
    					_IGfirst	0x7ffe3bf186e0	char **
    						*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    							*	'[' 	91    	0x5b	char
    					_IGnext	0x7ffe3bf186d0	char **
    						*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    							*	'a' 	97    	0x61	char
    					_IPcount	0x7ffe3bf186d8	int *
    						*	4089	int
    					_IPfirst	0x7ffe3bf186e0	char **
    						*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    							*	'[' 	91    	0x5b	char
    					_IPnext	0x7ffe3bf186d0	char **
    						*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    							*	'a' 	97    	0x61	char
    					_Pcount	0	int
    					_Pfirst	0x0	char *
    						*	<Memory access error>	char
    					_Plocale	0x28a92fc1250	std::locale *
    						_Ptr	0x28a88be9b90	std::locale::_Locimp *
    							_Catmask	63	int
    							_Clocptr	<Static const member value not available error>	<Static const member value not available error>
    							_Facetcount	0	unsigned int64
    							_Facetvec	0x0	std::locale::facet **
    								*	<Memory access error>	std::locale::facet *
    									_Refs	<Memory access error>	unsigned long
    									std::_Facet_base	class std::_Facet_base	std::_Facet_base
    							_Name	class std::_Yarn<>	std::_Yarn<char>
    								_Myptr	0x28a88be9c30 "C"	char *
    									*	'C' 	67    	0x43	char
    								_Nul	'\0'	0    	0x00	char
    							_Xparent	false	bool
    							std::locale::facet	class std::locale::facet	std::locale::facet
    								_Refs	28	unsigned long
    								std::_Facet_base	class std::_Facet_base	std::_Facet_base
    									__vfptr	0x7ffe52c8ad70	__fptr() [3]
    						std::_Locbase<>	class std::_Locbase<>	std::_Locbase<int>
    							all	<Static const member value not available error>	<Static const member value not available error>
    							collate	<Static const member value not available error>	<Static const member value not available error>
    							ctype	<Static const member value not available error>	<Static const member value not available error>
    							messages	<Static const member value not available error>	<Static const member value not available error>
    							monetary	<Static const member value not available error>	<Static const member value not available error>
    							none	<Static const member value not available error>	<Static const member value not available error>
    							numeric	<Static const member value not available error>	<Static const member value not available error>
    							time	<Static const member value not available error>	<Static const member value not available error>
    					_Pnext	0x0	char *
    						*	<Memory access error>	char
    					__vfptr	0x7ff6d4d022d8	__fptr() [15]
    						[0]	0x7ff6d4ab9863	__fptr()
    						[10]	0x7ff6d4ab196a	__fptr()
    						[11]	0x7ff6d4ab7829	__fptr()
    						[12]	0x7ff6d4ab61a4	__fptr()
    						[13]	0x7ff6d4ab2de2	__fptr()
    						[14]	0x7ff6d4ab8909	__fptr()
    						[1]	0x7ff6d4ab3b1b	__fptr()
    						[2]	0x7ff6d4ab16cc	__fptr()
    						[3]	0x7ff6d4ab8ec7	__fptr()
    						[4]	0x7ff6d4ab72d9	__fptr()
    						[5]	0x7ff6d4c7b090	__fptr()
    						[6]	0x7ff6d4ab33a5	__fptr()
    						[7]	0x7ff6d4ab5e75	__fptr()
    						[8]	0x7ff6d4c7b0a2	__fptr()
    						[9]	0x7ff6d4c7b0a8	__fptr()
    					__vtcast_std::basic_filebuf<>	class std::basic_filebuf<>	std::basic_filebuf<char,std::char_traits<char> >
    						_Closef	true	bool
    						_Mychar	'' 	-51/205	0xcd	char
    						_Myfile	0x7ffe3bf186d0	_iobuf *
    							_base	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    								*	'[' 	91    	0x5b	char
    							_bufsiz	4096	int
    							_charbuf	0	int
    							_cnt	4089	int
    							_file	3	int
    							_flag	32778	int
    							_ptr	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    								*	'a' 	97    	0x61	char
    							_tmpfname	0x0	char *
    								*	<Memory access error>	char
    						_Pcvt	0x0	std::codecvt<char,char,int> *
    							id	<Static const member value not available error>	<Static const member value not available error>
    							std::codecvt_base	class std::codecvt_base	std::codecvt_base
    								std::locale::facet	class std::locale::facet	std::locale::facet
    						_Set_eback	0xcdcdcdcdcdcdcdcd "--- memory read error at address 0xcdcdcdcd`cdcdcdcd ---"	char *
    							*	<Memory access error>	char
    						_Set_egptr	0xcdcdcdcdcdcdcdcd "--- memory read error at address 0xcdcdcdcd`cdcdcdcd ---"	char *
    							*	<Memory access error>	char
    						_State	0	int
    						_Wrotesome	false	bool
    						std::basic_streambuf<>	class std::basic_streambuf<>	std::basic_streambuf<char,std::char_traits<char> >
    							_Gcount	0	int
    							_Gfirst	0x0	char *
    								*	<Memory access error>	char
    							_Gnext	0x0	char *
    								*	<Memory access error>	char
    							_IGcount	0x7ffe3bf186d8	int *
    								*	4089	int
    							_IGfirst	0x7ffe3bf186e0	char **
    								*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    									*	'[' 	91    	0x5b	char
    							_IGnext	0x7ffe3bf186d0	char **
    								*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    									*	'a' 	97    	0x61	char
    							_IPcount	0x7ffe3bf186d8	int *
    								*	4089	int
    							_IPfirst	0x7ffe3bf186e0	char **
    								*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    									*	'[' 	91    	0x5b	char
    							_IPnext	0x7ffe3bf186d0	char **
    								*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    									*	'a' 	97    	0x61	char
    							_Pcount	0	int
    							_Pfirst	0x0	char *
    								*	<Memory access error>	char
    							_Plocale	0x28a92fc1250	std::locale *
    								_Ptr	0x28a88be9b90	std::locale::_Locimp *
    									_Catmask	63	int
    									_Clocptr	<Static const member value not available error>	<Static const member value not available error>
    									_Facetcount	0	unsigned int64
    									_Facetvec	0x0	std::locale::facet **
    										*	<Memory access error>	std::locale::facet *
    											_Refs	<Memory access error>	unsigned long
    											std::_Facet_base	class std::_Facet_base	std::_Facet_base
    												__vfptr	0x0	__fptr() [3]
    													[0]	<Memory	__fptr()
    													[1]	<Memory	__fptr()
    													[2]	<Memory	__fptr()
    									_Name	class std::_Yarn<>	std::_Yarn<char>
    										_Myptr	0x28a88be9c30 "C"	char *
    											*	'C' 	67    	0x43	char
    										_Nul	'\0'	0    	0x00	char
    									_Xparent	false	bool
    									std::locale::facet	class std::locale::facet	std::locale::facet
    										_Refs	28	unsigned long
    										std::_Facet_base	class std::_Facet_base	std::_Facet_base
    											__vfptr	0x7ffe52c8ad70	__fptr() [3]
    												[0]	0x7ffe52be7600	__fptr()
    												[1]	0x7ffe52be9400	__fptr()
    												[2]	0x7ffe52be8260	__fptr()
    								std::_Locbase<>	class std::_Locbase<>	std::_Locbase<int>
    									all	<Static const member value not available error>	<Static const member value not available error>
    									collate	<Static const member value not available error>	<Static const member value not available error>
    									ctype	<Static const member value not available error>	<Static const member value not available error>
    									messages	<Static const member value not available error>	<Static const member value not available error>
    									monetary	<Static const member value not available error>	<Static const member value not available error>
    									none	<Static const member value not available error>	<Static const member value not available error>
    									numeric	<Static const member value not available error>	<Static const member value not available error>
    									time	<Static const member value not available error>	<Static const member value not available error>
    							_Pnext	0x0	char *
    								*	<Memory access error>	char
    							__vfptr	0x7ff6d4d022d8	__fptr() [15]
    								[0]	0x7ff6d4ab9863	__fptr()
    								[10]	0x7ff6d4ab196a	__fptr()
    								[11]	0x7ff6d4ab7829	__fptr()
    								[12]	0x7ff6d4ab61a4	__fptr()
    								[13]	0x7ff6d4ab2de2	__fptr()
    								[14]	0x7ff6d4ab8909	__fptr()
    								[1]	0x7ff6d4ab3b1b	__fptr()
    								[2]	0x7ff6d4ab16cc	__fptr()
    								[3]	0x7ff6d4ab8ec7	__fptr()
    								[4]	0x7ff6d4ab72d9	__fptr()
    								[5]	0x7ff6d4c7b090	__fptr()
    								[6]	0x7ff6d4ab33a5	__fptr()
    								[7]	0x7ff6d4ab5e75	__fptr()
    								[8]	0x7ff6d4c7b0a2	__fptr()
    								[9]	0x7ff6d4c7b0a8	__fptr()
    				std::ios_base	class std::ios_base	std::ios_base
    					_Arr	0x0	std::ios_base::_Iosarray *
    						_Index	<Memory access error>	int
    						_Lo	<Memory access error>	long
    						_Next	<Memory access error>	std::ios_base::_Iosarray *
    							_Index	<Memory access error>	int
    							_Lo	<Memory access error>	long
    							_Next	<Memory access error>	std::ios_base::_Iosarray *
    								_Index	<Memory access error>	int
    								_Lo	<Memory access error>	long
    								_Next	<Memory access error>	std::ios_base::_Iosarray *
    									_Index	<Memory access error>	int
    									_Lo	<Memory access error>	long
    									_Next	<Memory access error>	std::ios_base::_Iosarray *
    										_Index	<Memory access error>	int
    										_Lo	<Memory access error>	long
    										_Next	<Memory access error>	std::ios_base::_Iosarray *
    											_Index	<Memory access error>	int
    											_Lo	<Memory access error>	long
    											_Next	<Memory access error>	std::ios_base::_Iosarray *
    												_Index	<Memory access error>	int
    												_Lo	<Memory access error>	long
    												_Next	<Memory access error>	std::ios_base::_Iosarray *
    													_Index	<Memory access error>	int
    													_Lo	<Memory access error>	long
    													_Next	<Memory access error>	std::ios_base::_Iosarray *
    														_Index	<Memory access error>	int
    														_Lo	<Memory access error>	long
    														_Next	<Memory access error>	std::ios_base::_Iosarray *
    															_Index	<Memory access error>	int
    															_Lo	<Memory access error>	long
    															_Next	<Memory access error>	std::ios_base::_Iosarray *
    																_Index	<Memory access error>	int
    																_Lo	<Memory access error>	long
    																_Next	<Memory access error>	std::ios_base::_Iosarray *
    																	_Index	<Memory access error>	int
    																	_Lo	<Memory access error>	long
    																_Vp	<Memory access error>	void *
    																	*		void
    															_Vp	<Memory access error>	void *
    																*		void
    														_Vp	<Memory access error>	void *
    															*		void
    													_Vp	<Memory access error>	void *
    														*		void
    												_Vp	<Memory access error>	void *
    													*		void
    											_Vp	<Memory access error>	void *
    												*		void
    										_Vp	<Memory access error>	void *
    											*		void
    									_Vp	<Memory access error>	void *
    										*		void
    								_Vp	<Memory access error>	void *
    									*		void
    							_Vp	<Memory access error>	void *
    								*		void
    						_Vp	<Memory access error>	void *
    							*		void
    					_Calls	0x0	std::ios_base::_Fnarray *
    						_Index	<Memory access error>	int
    						_Next	<Memory access error>	std::ios_base::_Fnarray *
    							_Index	<Memory access error>	int
    							_Next	<Memory access error>	std::ios_base::_Fnarray *
    								_Index	<Memory access error>	int
    								_Next	<Memory access error>	std::ios_base::_Fnarray *
    									_Index	<Memory access error>	int
    									_Next	<Memory access error>	std::ios_base::_Fnarray *
    										_Index	<Memory access error>	int
    										_Next	<Memory access error>	std::ios_base::_Fnarray *
    											_Index	<Memory access error>	int
    											_Next	<Memory access error>	std::ios_base::_Fnarray *
    												_Index	<Memory access error>	int
    												_Next	<Memory access error>	std::ios_base::_Fnarray *
    													_Index	<Memory access error>	int
    													_Next	<Memory access error>	std::ios_base::_Fnarray *
    														_Index	<Memory access error>	int
    														_Next	<Memory access error>	std::ios_base::_Fnarray *
    															_Index	<Memory access error>	int
    															_Next	<Memory access error>	std::ios_base::_Fnarray *
    																_Index	<Memory access error>	int
    																_Next	<Memory access error>	std::ios_base::_Fnarray *
    																	_Index	<Memory access error>	int
    																_Pfn	<Memory access error>	<function> *
    																	*	0	<function>
    															_Pfn	<Memory access error>	<function> *
    																*	0	<function>
    														_Pfn	<Memory access error>	<function> *
    															*	0	<function>
    													_Pfn	<Memory access error>	<function> *
    														*	0	<function>
    												_Pfn	<Memory access error>	<function> *
    													*	0	<function>
    											_Pfn	<Memory access error>	<function> *
    												*	0	<function>
    										_Pfn	<Memory access error>	<function> *
    											*	0	<function>
    									_Pfn	<Memory access error>	<function> *
    										*	0	<function>
    								_Pfn	<Memory access error>	<function> *
    									*	0	<function>
    							_Pfn	<Memory access error>	<function> *
    								*	0	<function>
    						_Pfn	<Memory access error>	<function> *
    							*	0	<function>
    					_Except	0	int
    					_Fmtfl	513	int
    					_Index	<Static const member value not available error>	<Static const member value not available error>
    					_Mystate	0	int
    					_Ploc	0x28a92f69cc0	std::locale *
    						_Ptr	0x28a88be9b90	std::locale::_Locimp *
    							_Catmask	63	int
    							_Clocptr	<Static const member value not available error>	<Static const member value not available error>
    							_Facetcount	0	unsigned int64
    							_Facetvec	0x0	std::locale::facet **
    								*	<Memory access error>	std::locale::facet *
    									_Refs	<Memory access error>	unsigned long
    									std::_Facet_base	class std::_Facet_base	std::_Facet_base
    										__vfptr	0x0	__fptr() [3]
    											[0]	<Memory	__fptr()
    											[1]	<Memory	__fptr()
    											[2]	<Memory	__fptr()
    							_Name	class std::_Yarn<>	std::_Yarn<char>
    								_Myptr	0x28a88be9c30 "C"	char *
    									*	'C' 	67    	0x43	char
    								_Nul	'\0'	0    	0x00	char
    							_Xparent	false	bool
    							std::locale::facet	class std::locale::facet	std::locale::facet
    								_Refs	28	unsigned long
    								std::_Facet_base	class std::_Facet_base	std::_Facet_base
    									__vfptr	0x7ffe52c8ad70	__fptr() [3]
    										[0]	0x7ffe52be7600	__fptr()
    										[1]	0x7ffe52be9400	__fptr()
    										[2]	0x7ffe52be8260	__fptr()
    						std::_Locbase<>	class std::_Locbase<>	std::_Locbase<int>
    							all	<Static const member value not available error>	<Static const member value not available error>
    							collate	<Static const member value not available error>	<Static const member value not available error>
    							ctype	<Static const member value not available error>	<Static const member value not available error>
    							messages	<Static const member value not available error>	<Static const member value not available error>
    							monetary	<Static const member value not available error>	<Static const member value not available error>
    							none	<Static const member value not available error>	<Static const member value not available error>
    							numeric	<Static const member value not available error>	<Static const member value not available error>
    							time	<Static const member value not available error>	<Static const member value not available error>
    					_Prec	6	int64
    					_Stdstr	0	unsigned int64
    					_Sync	<Static const member value not available error>	<Static const member value not available error>
    					_Wide	0	int64
    					__vfptr	0x7ff6d4d02378	__fptr() [1]
    						[0]	0x7ff6d4ab2c11	__fptr()
    					std::_Iosb<>	class std::_Iosb<>	std::_Iosb<int>
    						_Hardfail	<Static const member value not available error>	<Static const member value not available error>
    						_Nocreate	<Static const member value not available error>	<Static const member value not available error>
    						_Noreplace	<Static const member value not available error>	<Static const member value not available error>
    						_Stdio	<Static const member value not available error>	<Static const member value not available error>
    						adjustfield	<Static const member value not available error>	<Static const member value not available error>
    						app	<Static const member value not available error>	<Static const member value not available error>
    						ate	<Static const member value not available error>	<Static const member value not available error>
    						badbit	<Static const member value not available error>	<Static const member value not available error>
    						basefield	<Static const member value not available error>	<Static const member value not available error>
    						beg	<Static const member value not available error>	<Static const member value not available error>
    						binary	<Static const member value not available error>	<Static const member value not available error>
    						boolalpha	<Static const member value not available error>	<Static const member value not available error>
    						cur	<Static const member value not available error>	<Static const member value not available error>
    						dec	<Static const member value not available error>	<Static const member value not available error>
    						end	<Static const member value not available error>	<Static const member value not available error>
    						eofbit	<Static const member value not available error>	<Static const member value not available error>
    						failbit	<Static const member value not available error>	<Static const member value not available error>
    						fixed	<Static const member value not available error>	<Static const member value not available error>
    						floatfield	<Static const member value not available error>	<Static const member value not available error>
    						goodbit	<Static const member value not available error>	<Static const member value not available error>
    						hex	<Static const member value not available error>	<Static const member value not available error>
    						hexfloat	<Static const member value not available error>	<Static const member value not available error>
    						in	<Static const member value not available error>	<Static const member value not available error>
    						internal	<Static const member value not available error>	<Static const member value not available error>
    						left	<Static const member value not available error>	<Static const member value not available error>
    						oct	<Static const member value not available error>	<Static const member value not available error>
    						out	<Static const member value not available error>	<Static const member value not available error>
    						right	<Static const member value not available error>	<Static const member value not available error>
    						scientific	<Static const member value not available error>	<Static const member value not available error>
    						showbase	<Static const member value not available error>	<Static const member value not available error>
    						showpoint	<Static const member value not available error>	<Static const member value not available error>
    						showpos	<Static const member value not available error>	<Static const member value not available error>
    						skipws	<Static const member value not available error>	<Static const member value not available error>
    						trunc	<Static const member value not available error>	<Static const member value not available error>
    						unitbuf	<Static const member value not available error>	<Static const member value not available error>
    						uppercase	<Static const member value not available error>	<Static const member value not available error>
    			std::basic_ostream<>	class std::basic_ostream<>	std::basic_ostream<char,std::char_traits<char> >
    				std::basic_ios<>	class std::basic_ios<>	std::basic_ios<char,std::char_traits<char> >
    					_Fillch	' ' 	32    	0x20	char
    					_Mystrbuf	0x28a92cc1af8	std::basic_streambuf<char,std::char_traits<char> > *
    						_Gcount	0	int
    						_Gfirst	0x0	char *
    							*	<Memory access error>	char
    						_Gnext	0x0	char *
    							*	<Memory access error>	char
    						_IGcount	0x7ffe3bf186d8	int *
    							*	4089	int
    						_IGfirst	0x7ffe3bf186e0	char **
    							*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    								*	'[' 	91    	0x5b	char
    						_IGnext	0x7ffe3bf186d0	char **
    							*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    								*	'a' 	97    	0x61	char
    						_IPcount	0x7ffe3bf186d8	int *
    							*	4089	int
    						_IPfirst	0x7ffe3bf186e0	char **
    							*	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    								*	'[' 	91    	0x5b	char
    						_IPnext	0x7ffe3bf186d0	char **
    							*	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    								*	'a' 	97    	0x61	char
    						_Pcount	0	int
    						_Pfirst	0x0	char *
    							*	<Memory access error>	char
    						_Plocale	0x28a92fc1250	std::locale *
    							_Ptr	0x28a88be9b90	std::locale::_Locimp *
    								_Catmask	63	int
    								_Clocptr	<Static const member value not available error>	<Static const member value not available error>
    								_Facetcount	0	unsigned int64
    								_Facetvec	0x0	std::locale::facet **
    									*	<Memory access error>	std::locale::facet *
    										_Refs	<Memory access error>	unsigned long
    										std::_Facet_base	class std::_Facet_base	std::_Facet_base
    											__vfptr	0x0	__fptr() [3]
    												[0]	<Memory	__fptr()
    												[1]	<Memory	__fptr()
    												[2]	<Memory	__fptr()
    								_Name	class std::_Yarn<>	std::_Yarn<char>
    									_Myptr	0x28a88be9c30 "C"	char *
    										*	'C' 	67    	0x43	char
    									_Nul	'\0'	0    	0x00	char
    								_Xparent	false	bool
    								std::locale::facet	class std::locale::facet	std::locale::facet
    									_Refs	28	unsigned long
    									std::_Facet_base	class std::_Facet_base	std::_Facet_base
    										__vfptr	0x7ffe52c8ad70	__fptr() [3]
    											[0]	0x7ffe52be7600	__fptr()
    											[1]	0x7ffe52be9400	__fptr()
    											[2]	0x7ffe52be8260	__fptr()
    							std::_Locbase<>	class std::_Locbase<>	std::_Locbase<int>
    								all	<Static const member value not available error>	<Static const member value not available error>
    								collate	<Static const member value not available error>	<Static const member value not available error>
    								ctype	<Static const member value not available error>	<Static const member value not available error>
    								messages	<Static const member value not available error>	<Static const member value not available error>
    								monetary	<Static const member value not available error>	<Static const member value not available error>
    								none	<Static const member value not available error>	<Static const member value not available error>
    								numeric	<Static const member value not available error>	<Static const member value not available error>
    								time	<Static const member value not available error>	<Static const member value not available error>
    						_Pnext	0x0	char *
    							*	<Memory access error>	char
    						__vfptr	0x7ff6d4d022d8	__fptr() [15]
    							[0]	0x7ff6d4ab9863	__fptr()
    							[10]	0x7ff6d4ab196a	__fptr()
    							[11]	0x7ff6d4ab7829	__fptr()
    							[12]	0x7ff6d4ab61a4	__fptr()
    							[13]	0x7ff6d4ab2de2	__fptr()
    							[14]	0x7ff6d4ab8909	__fptr()
    							[1]	0x7ff6d4ab3b1b	__fptr()
    							[2]	0x7ff6d4ab16cc	__fptr()
    							[3]	0x7ff6d4ab8ec7	__fptr()
    							[4]	0x7ff6d4ab72d9	__fptr()
    							[5]	0x7ff6d4c7b090	__fptr()
    							[6]	0x7ff6d4ab33a5	__fptr()
    							[7]	0x7ff6d4ab5e75	__fptr()
    							[8]	0x7ff6d4c7b0a2	__fptr()
    							[9]	0x7ff6d4c7b0a8	__fptr()
    						__vtcast_std::basic_filebuf<>	class std::basic_filebuf<>	std::basic_filebuf<char,std::char_traits<char> >
    							_Closef	true	bool
    							_Mychar	'' 	-51/205	0xcd	char
    							_Myfile	0x7ffe3bf186d0	_iobuf *
    								_base	"[FSCX]\na2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.3696..."	char *
    									*	'[' 	91    	0x5b	char
    								_bufsiz	4096	int
    								_charbuf	0	int
    								_cnt	4089	int
    								_file	3	int
    								_flag	32778	int
    								_ptr	"a2.000000,2ma1.090000\n\n -2.535150 -2.534850 -2.530150 -2.529850 -2.525150 -2.524850 -2.520150 -2.519850 -2.515150 -2.514850 -2.510150 -2.509850 -2.505150 -2.504850 -2.500150 -2.499850 -2.495150 -2.494850 -2.460250 -2.459750 -2.455250 -2.454750 -2.450250 -2.449750 -2.445250 -2.444750 -2.440250 -2.439750 -2.435250 -2.434750 -2.430250 -2.429750 -2.425250 -2.424750 -2.420250 -2.419750 -2.415250 -2.414750 -2.390400 -2.389600 -2.385400 -2.384600 -2.380400 -2.379600 -2.375400 -2.374600 -2.370400 -2.369600 -2.36..."	char *
    									*	'a' 	97    	0x61	char
    								_tmpfname	0x0	char *
    									*	<Memory access error>	char
    							_Pcvt	0x0	std::codecvt<char,char,int> *
    								id	<Static const member value not available error>	<Static const member value not available error>
    								std::codecvt_base	class std::codecvt_base	std::codecvt_base
    									std::locale::facet	class std::locale::facet	std::locale::facet
    										_Refs	<Memory access error>	unsigned long
    										std::_Facet_base	class std::_Facet_base	std::_Facet_base
    											__vfptr	0x0	__fptr() [3]
    												[0]	<Memory	__fptr()
    												[1]	<Memory	__fptr()
    												[2]	<Memory	__fptr()
    							_Set_eback	0xcdcdcdcdcdcdcdcd "--- memory read error at address 0xcdcdcdcd`cdcdcdcd ---"	char *
    								*	<Memory access error>	char
    							_Set_egptr	0xcdcdcdcdcdcdcdcd "--- memory read error at address 0xcdcdcdcd`cdcdcdcd ---"	char *
    								*	<Memory access error>	char
    							_State	0	int
    							_Wrotesome	false	bool
    							std::basic_streambuf<>	class std::basic_streambuf<>	std::basic_streambuf<char,std::char_traits<char> >
    					std::ios_base	class std::ios_base	std::ios_base
    						_Arr	0x0	std::ios_base::_Iosarray *
    							_Index	<Memory access error>	int
    							_Lo	<Memory access error>	long
    							_Next	<Memory access error>	std::ios_base::_Iosarray *
    								_Index	<Memory access error>	int
    								_Lo	<Memory access error>	long
    								_Next	<Memory access error>	std::ios_base::_Iosarray *
    									_Index	<Memory access error>	int
    									_Lo	<Memory access error>	long
    									_Next	<Memory access error>	std::ios_base::_Iosarray *
    										_Index	<Memory access error>	int
    										_Lo	<Memory access error>	long
    										_Next	<Memory access error>	std::ios_base::_Iosarray *
    											_Index	<Memory access error>	int
    											_Lo	<Memory access error>	long
    											_Next	<Memory access error>	std::ios_base::_Iosarray *
    												_Index	<Memory access error>	int
    												_Lo	<Memory access error>	long
    												_Next	<Memory access error>	std::ios_base::_Iosarray *
    													_Index	<Memory access error>	int
    													_Lo	<Memory access error>	long
    													_Next	<Memory access error>	std::ios_base::_Iosarray *
    														_Index	<Memory access error>	int
    														_Lo	<Memory access error>	long
    														_Next	<Memory access error>	std::ios_base::_Iosarray *
    															_Index	<Memory access error>	int
    															_Lo	<Memory access error>	long
    															_Next	<Memory access error>	std::ios_base::_Iosarray *
    																_Index	<Memory access error>	int
    																_Lo	<Memory access error>	long
    																_Next	<Memory access error>	std::ios_base::_Iosarray *
    																	_Index	<Memory access error>	int
    																	_Lo	<Memory access error>	long
    																_Vp	<Memory access error>	void *
    																	*		void
    															_Vp	<Memory access error>	void *
    																*		void
    														_Vp	<Memory access error>	void *
    															*		void
    													_Vp	<Memory access error>	void *
    														*		void
    												_Vp	<Memory access error>	void *
    													*		void
    											_Vp	<Memory access error>	void *
    												*		void
    										_Vp	<Memory access error>	void *
    											*		void
    									_Vp	<Memory access error>	void *
    										*		void
    								_Vp	<Memory access error>	void *
    									*		void
    							_Vp	<Memory access error>	void *
    								*		void
    						_Calls	0x0	std::ios_base::_Fnarray *
    						_Except	0	int
    						_Fmtfl	513	int
    						_Index	<Static const member value not available error>	<Static const member value not available error>
    						_Mystate	0	int
    						_Ploc	0x28a92f69cc0	std::locale *
    							_Ptr	0x28a88be9b90	std::locale::_Locimp *
    								_Catmask	63	int
    								_Clocptr	<Static const member value not available error>	<Static const member value not available error>
    								_Facetcount	0	unsigned int64
    								_Facetvec	0x0	std::locale::facet **
    									*	<Memory access error>	std::locale::facet *
    										_Refs	<Memory access error>	unsigned long
    										std::_Facet_base	class std::_Facet_base	std::_Facet_base
    											__vfptr	0x0	__fptr() [3]
    												[0]	<Memory	__fptr()
    												[1]	<Memory	__fptr()
    												[2]	<Memory	__fptr()
    								_Name	class std::_Yarn<>	std::_Yarn<char>
    									_Myptr	0x28a88be9c30 "C"	char *
    										*	'C' 	67    	0x43	char
    									_Nul	'\0'	0    	0x00	char
    								_Xparent	false	bool
    								std::locale::facet	class std::locale::facet	std::locale::facet
    									_Refs	28	unsigned long
    									std::_Facet_base	class std::_Facet_base	std::_Facet_base
    										__vfptr	0x7ffe52c8ad70	__fptr() [3]
    											[0]	0x7ffe52be7600	__fptr()
    											[1]	0x7ffe52be9400	__fptr()
    											[2]	0x7ffe52be8260	__fptr()
    							std::_Locbase<>	class std::_Locbase<>	std::_Locbase<int>
    								all	<Static const member value not available error>	<Static const member value not available error>
    								collate	<Static const member value not available error>	<Static const member value not available error>
    								ctype	<Static const member value not available error>	<Static const member value not available error>
    								messages	<Static const member value not available error>	<Static const member value not available error>
    								monetary	<Static const member value not available error>	<Static const member value not available error>
    								none	<Static const member value not available error>	<Static const member value not available error>
    								numeric	<Static const member value not available error>	<Static const member value not available error>
    								time	<Static const member value not available error>	<Static const member value not available error>
    						_Prec	6	int64
    						_Stdstr	0	unsigned int64
    						_Sync	<Static const member value not available error>	<Static const member value not available error>
    						_Wide	0	int64
    						__vfptr	0x7ff6d4d02378	__fptr() [1]
    							[0]	0x7ff6d4ab2c11	__fptr()
    						std::_Iosb<>	class std::_Iosb<>	std::_Iosb<int>
    							_Hardfail	<Static const member value not available error>	<Static const member value not available error>
    							_Nocreate	<Static const member value not available error>	<Static const member value not available error>
    							_Noreplace	<Static const member value not available error>	<Static const member value not available error>
    							_Stdio	<Static const member value not available error>	<Static const member value not available error>
    							adjustfield	<Static const member value not available error>	<Static const member value not available error>
    							app	<Static const member value not available error>	<Static const member value not available error>
    							ate	<Static const member value not available error>	<Static const member value not available error>
    							badbit	<Static const member value not available error>	<Static const member value not available error>
    							basefield	<Static const member value not available error>	<Static const member value not available error>
    							beg	<Static const member value not available error>	<Static const member value not available error>
    							binary	<Static const member value not available error>	<Static const member value not available error>
    							boolalpha	<Static const member value not available error>	<Static const member value not available error>
    							cur	<Static const member value not available error>	<Static const member value not available error>
    							dec	<Static const member value not available error>	<Static const member value not available error>
    							end	<Static const member value not available error>	<Static const member value not available error>
    							eofbit	<Static const member value not available error>	<Static const member value not available error>
    							failbit	<Static const member value not available error>	<Static const member value not available error>
    							fixed	<Static const member value not available error>	<Static const member value not available error>
    							floatfield	<Static const member value not available error>	<Static const member value not available error>
    							goodbit	<Static const member value not available error>	<Static const member value not available error>
    							hex	<Static const member value not available error>	<Static const member value not available error>
    							hexfloat	<Static const member value not available error>	<Static const member value not available error>
    							in	<Static const member value not available error>	<Static const member value not available error>
    							internal	<Static const member value not available error>	<Static const member value not available error>
    							left	<Static const member value not available error>	<Static const member value not available error>
    							oct	<Static const member value not available error>	<Static const member value not available error>
    							out	<Static const member value not available error>	<Static const member value not available error>
    							right	<Static const member value not available error>	<Static const member value not available error>
    							scientific	<Static const member value not available error>	<Static const member value not available error>
    							showbase	<Static const member value not available error>	<Static const member value not available error>
    							showpoint	<Static const member value not available error>	<Static const member value not available error>
    							showpos	<Static const member value not available error>	<Static const member value not available error>
    							skipws	<Static const member value not available error>	<Static const member value not available error>
    							trunc	<Static const member value not available error>	<Static const member value not available error>
    							unitbuf	<Static const member value not available error>	<Static const member value not available error>
    							uppercase	<Static const member value not available error>	<Static const member value not available error>

  19. #19
    Rédacteur/Modérateur


    Homme Profil pro
    Network game programmer
    Inscrit en
    Juin 2010
    Messages
    7 113
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Canada

    Informations professionnelles :
    Activité : Network game programmer

    Informations forums :
    Inscription : Juin 2010
    Messages : 7 113
    Points : 32 958
    Points
    32 958
    Billets dans le blog
    4
    Par défaut
    Le truc d'un crash lié à un problème de threading et concurrence c'est qu'en te concentrant sur là où tu le vois tu le résoudras jamais...
    Donc c'est à toi de (re)lire le code de l'ensemble de l'appli qui utilises mal ces fichiers pour corriger ça.
    Utiliser des breakpoints, des data breakpoints, des traces, ... mettre en place les mutex si nécessaire, modifier l'archi, ... bref faire le boulot pour lequel tu es payé, trouver l'erreur et la corriger.
    Pensez à consulter la FAQ ou les cours et tutoriels de la section C++.
    Un peu de programmation réseau ?
    Aucune aide via MP ne sera dispensée. Merci d'utiliser les forums prévus à cet effet.

  20. #20
    Expert éminent sénior
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 059
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 059
    Points : 12 095
    Points
    12 095
    Par défaut
    Utilisez le débogueur pour évaluer chaque élément du code source.
    N'hésitez pas à vérifier avec le code assembleur que les sources et le binaire sont bien "aligné".
    J'ai l'impression que vous avez des réticences à utiliser le débogueur.

    Il faut commencer par savoir ce qui merde avant de chercher le son pourquoi puis comment le corriger.

    Vous devez déterminer le champ, la variable, etc... qui ne correspond pas, puis vous chercherez pourquoi.

    Pour les histoires "d'économie" de RAM, vous allez pas l'user, et on est maintenant avec des machine 64bits et avec des OS qui gèrent tous la mémoire virtuelle.
    On n'est plus sur des systèmes de 64Ko sans MMU, nom d'un chien.

    P.S.: j'ai vu des "catch(...)" à la con, vous me virez ces conneries qui vous empêche de correctement déboguer et mettre au point votre programme.
    On ne catch que ce que l'on traite, c'est tout.

Discussions similaires

  1. Réponses: 3
    Dernier message: 18/08/2005, 12h57
  2. [PERL] Problème lecture/écriture dans un fichier
    Par LE NEINDRE dans le forum Langage
    Réponses: 4
    Dernier message: 17/08/2005, 14h15
  3. Problème d'écriture dans un fichier xml
    Par vanoou dans le forum C++Builder
    Réponses: 1
    Dernier message: 13/07/2005, 03h28
  4. Passer à la ligne lors de l'écriture dans un fichier
    Par hams dans le forum Assembleur
    Réponses: 4
    Dernier message: 17/04/2005, 20h25
  5. [JUnit] Junit écriture dans un fichier
    Par mikael35 dans le forum Tests et Performance
    Réponses: 1
    Dernier message: 10/08/2004, 14h11

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