Skip to content

Invalid Pointer access when new Curreny Pair is initialized #3

@hoermann-p

Description

@hoermann-p

I setup a quick Test-EA in order to get used to the library.
However I got an invalid pointer access message when I drag/drop a different currency pair onto the chart where the Test-EA is running.

Bildschirmfoto 2020-12-12 um 20 56 43

Is there anything I am missing?
I placed the config and .mq4 file into the right directories.

Following is the code:

//+------------------------------------------------------------------+
//| ProjectName |
//| Copyright 2018, CompanyName |
//| http://www.companyname.net |
//+------------------------------------------------------------------+
#define _version "1.03"
#property copyright "Copyright © ";
#property link "";
#property version _version;
#property strict

#import "stdlib.ex4"
string ErrorDescription(int);
#import

#include "........\Libraries\log4mql.mqh"; // Include loging module

//+------------------------------------------------------------------+
//+------------------------------------------------------------------+

CLog4mql* logger = CLog4mql::getInstance();

int OnInit()
{
// Validate Inputs
// logger.setConfLogFile( StringConcatenate(Default_Folder,"/", Default_FileName ) );
logger.info(FILE, LINE, "Start Init with Input check...");
return 0;
}

void OnDeinit(const int reason){
logger.release();
}

void OnTick()
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions