littletimmy 0 Newbie Poster

I have a problem which is outlined below. I get an unhelpful memory dump. I have 2 questions. Why doesn't the memory dump contain the line number as it should. And why am I geting memory dumps without ever using new or malloc or any such functions. This is being run via visual studio.net.
If anyone can spot the problem I would be very thankful,
Thanks
Liam

#define CRTDBG_MAP_ALLOC
#include <windows.h>
#include <sstream>
#include <string.h>
#include "functions.h"
#include <stdlib.h>
#include <crtdbg.h>

int nbGenerations, ind;
int topSize,schemSize;
bool top10Cplt, difRes;
string Rtop10Cplt, RdifRes;
float lastBestScore;
bool elitism;

string lkupFile = "tom"; // Lookup file's name
int main(int argc, char* argv[]) {

char tmp;
string iFile, oFile, resFile; // Configuration
ofstream res, res2;
ifstream iftCfg,ift;
_CrtDumpMemoryLeaks();

.... etc etc
}

Gives the following unhelpful memory dump.
Detected memory leaks!
Dumping objects ->
{96} normal block at 0x002F54B0, 4 bytes long.
Data: <` T > 60 FC 54 00
{92} normal block at 0x002F53A8, 52 bytes long.
Data: <p T P T X T x T > 70 FA 54 00 50 F6 54 00 58 F3 54 00 78 F8 54 00 etc etc

Can anyone see what would cause the problems that it is detecting?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.