• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A malloc error in C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A malloc error in C++


  • Subject: Re: A malloc error in C++
  • From: Giacomo Monari <email@hidden>
  • Date: Wed, 29 Aug 2007 17:43:21 +0200

Paul Walmsley ha scritto:
Giacomo Monari wrote:
Btw it is really weird... As everybody noted that main is structured in blocks so I tried to gradually comment those blocks to see where the error lays...
Well the answer is in this part:
{
   GMNLFS::DataAnalysis<vector<double>::iterator,double> llsAnalysis(lls.begin(),lls.end());
is the lls vector empty?  If so can those other functions cope with an empty DataAnalysis interval?


No it isn't...
And now it seems 2 parts are incriminated:

    {
    GMNLFS::DataAnalysis<vector<double>::iterator,double> llsAnalysis(lls.begin(),lls.end());
    cout << "Max lls = " << llsAnalysis.GetMax() << endl;
    cout << "Min lls = " << llsAnalysis.GetMin() << endl;
    cout << "Average lls = " << llsAnalysis.GetAverage() << endl;
    cout << "Variance of lls = " << llsAnalysis.GetVariance() << endl;
    cout << "Standard Deviation of lls = " << llsAnalysis.GetStdDeviation() << endl;
    cout << "Skewness of lls = " << llsAnalysis.GetSkewness() << endl;
    cout << "Kurtosis of lls = " << llsAnalysis.GetKurtosis() << endl;
    cout << " ------------------------------------- " << endl;
    //llsAnalysis.~DataAnalysis();
    }
   
   
   
    {
    GMNLFS::DataAnalysis<vector<double>::iterator,double> loglbAnalysis(loglb.begin(),loglb.end());
    cout << "Max loglb = " << loglbAnalysis.GetMax() << endl;
    cout << "Min loglb = " << loglbAnalysis.GetMin() << endl;
    cout << "Average loglb = " << loglbAnalysis.GetAverage() << endl;
    cout << "Variance of loglb = " << loglbAnalysis.GetVariance() << endl;
    cout << "Standard Deviation of loglb = " << loglbAnalysis.GetStdDeviation() << endl;
    cout << "Skewness of loglb = " << loglbAnalysis.GetSkewness() << endl;
    cout << "Kurtosis of loglb = " << loglbAnalysis.GetKurtosis() << endl;
    cout << " ------------------------------------- " << endl;
    //loglbAnalysis.~DataAnalysis();
    }


Giacomo



----
Email.it, the professional e-mail, gratis per te:clicca qui

Sponsor:
Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi, clicca qui

Clicca qui


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: A malloc error in C++ (From: Giacomo Monari <email@hidden>)
 >Re: A malloc error in C++ (From: Giacomo Monari <email@hidden>)
 >Re: A malloc error in C++ (From: Paul Walmsley <email@hidden>)

  • Prev by Date: Re: A malloc error in C++
  • Next by Date: Re: A malloc error in C++
  • Previous by thread: Re: A malloc error in C++
  • Next by thread: Re: A malloc error in C++
  • Index(es):
    • Date
    • Thread