Variable watch!

Dirk Broer dbroer at matricsrfid.com
Mon Mar 3 15:29:01 GMT 2003


Just a note.

At least under some circumstances, ifstream will actually call mmap()
underneath.  If you are opening a large file you could in theory use a lot
or resources.  At least with 2.96 version of g++.  For our use, making one
pass at a data file, we found it significantly faster to use fopen()
instead.

Dirk Broer

#include <standard_disclaimer>
#include <funny_quote>

XYZZY: Branch and Play Adventure
 -- New Opcode

-----Original Message-----
From: Mailing list agent [mailto:mdom at barney.cs.uni-potsdam.de]On Behalf Of
alessandro
Sent: Monday, March 03, 2003 10:04 AM
To: kdevelop at kdevelop.org
Subject: Variable watch!

Hi, I am trying to compile this simple program but I have problem with
the internal debugger:

#include <iostream>
#include <fstream>
//#include <cstdio>
//#include <math.h>
//#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//#include <new>
using namespace std;

int main(int argc, char *argv[])
{
 char line[255];
 char ch[255];
 float RDC[255];
 int i, j, k, n;
 float A1, A2, phi1, phi2, Av;

i=2;

 if(argc!=2){
        cout<<'\n';
        cout<< "rdcfit \"file_name.inp\"\n";
        cout<<'\n';
        return 1;
        }
        //load experimental RDC
    ifstream in;
      // in.open(argv[1], ios::in | ios::binary);
//in.close();
return 0;
  }

The program seems to compile just fine, but the variable watch does not
show the variables values. More over if I click on the variable window,
the debugger get stop working, the memory and CPU usage build up and the
system slow down.
If I comment out the imput stream command (ifstream in;) everything
works fine!!! Any suggestion,

best regards,

Alessandro




-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org
with the following body:
unsubscribe "your-email-address"


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list