Ошибка Access violation at 0x000000006FCE3704 write to 0x0000000000000013 в терминале mt5

Авторизуйтесь или зарегистрируйтесь, чтобы добавить комментарий
andru12
14
andru12  

Пытаюсь подключить функцию из библиотеки со следующим с++ прототипом

_DLLAPI std::string __stdcall value_calculate( int d1, int m1, int y1, int d2, int m2, int y2 );

написал в mql5 следующее 

//+------------------------------------------------------------------+
//|                                                           12.mq5 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"

#include <Strings\String.mqh>

#import "libvalue_calculate.dll"
string value_calculate( int d1, int m1, int y1, int d2, int m2, int y2 );
#import 
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   Print(value_calculate(19,1,1000,19,1,2003));
   
  }
//+------------------------------------------------------------------+

При запуске получаю ошибку 

Access violation at 0x000000006FCE3704 write to 0x0000000000000013

и всё. Больше никакой вспомогательной информации. Что делать? Как узнать что произошло?

TraderFin1
6
TraderFin1  
Разобрались с проблемой? Что было?
Vitaly Muzichenko
13939
Vitaly Muzichenko  

А у меня что это?

Win7 х64, билд 2007 

HR      2       16:27:25.493    indicator (AUDCAD,M30)  Access violation at 0x000007FEFDE9EB49 read to 0xFFFFFFFFFFFFFFFF in 'wininet.dll'
KO      2       16:27:25.533    indicator (AUDCAD,M30)                000007FEFDE9E930 48895C2418        mov        [rsp+0x18], rbx
JL      2       16:27:25.533    indicator (AUDCAD,M30)                000007FEFDE9E935 48894C2408        mov        [rsp+0x8], rcx
OE      2       16:27:25.533    indicator (AUDCAD,M30)                000007FEFDE9E93A 55                push       rbp
MD      2       16:27:25.533    indicator (AUDCAD,M30)                000007FEFDE9E93B 56                push       rsi
KG      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E93C 57                push       rdi
DI      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E93D 4154              push       r12
DK      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E93F 4155              push       r13
NR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E941 4156              push       r14
NP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E943 4157              push       r15
IL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E945 488D6C24B0        lea        rbp, [rsp-0x50]
KS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E94A 4881EC50010000    sub        rsp, 0x150
NR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E951 4D8BF9            mov        r15, r9
DS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E954 4D8BF0            mov        r14, r8
LG      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E957 488BFA            mov        rdi, rdx
KI      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E95A F6051B78200002    test       byte [rip+0x20781b], 0x2
GJ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E961 0F8527270D00      jnz        dword 0x7fefdf7108e
ND      2       16:27:25.534    indicator (AUDCAD,M30)  
FM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E967 33C9              xor        ecx, ecx
PR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E969 33D2              xor        edx, edx
EN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E96B 448D4158          lea        r8d, [rcx+0x58]
DP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E96F 894C2468          mov        [rsp+0x68], ecx
CN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E973 48894C2450        mov        [rsp+0x50], rcx
JN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E978 48894D80          mov        [rbp-0x80], rcx
ON      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E97C 48894DB8          mov        [rbp-0x48], rcx
MO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E980 48894C2470        mov        [rsp+0x70], rcx
CF      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E985 48894DD0          mov        [rbp-0x30], rcx
HF      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E989 48894DA8          mov        [rbp-0x58], rcx
DI      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E98D 448BE9            mov        r13d, ecx
JJ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E990 48894C2460        mov        [rsp+0x60], rcx
ID      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E995 66898D98000000    mov        [rbp+0x98], cx
DD      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E99C 894C2458          mov        [rsp+0x58], ecx
FE      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9A0 48894D90          mov        [rbp-0x70], rcx
MG      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9A4 894C245C          mov        [rsp+0x5c], ecx
QJ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9A8 48894D88          mov        [rbp-0x78], rcx
FE      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9AC 48894D98          mov        [rbp-0x68], rcx
CK      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9B0 488D4DF0          lea        rcx, [rbp-0x10]
OD      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9B4 E8A72BFEFF        call       0x7fefde81560  ; func_0x000007FEFDE80000 (wininet.dll)
LF      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9B9 FF15C1092300      call       qword near [rip+0x2309c1]
LR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9BF 8B0DE3682000      mov        ecx, [rip+0x2068e3]
OP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9C5 8BF0              mov        esi, eax
EF      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9C7 FF15030B2300      call       qword near [rip+0x230b03]
DH      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9CD 488BD8            mov        rbx, rax
RE      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9D0 4885C0            test       rax, rax
DE      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9D3 0F842AC10100      jz         dword 0x7fefdebab03
JG      2       16:27:25.534    indicator (AUDCAD,M30)  
PL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9D9 8BCE              mov        ecx, esi
KL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9DB FF15670A2300      call       qword near [rip+0x230a67]
EM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9E1 33F6              xor        esi, esi
CN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9E3 4885DB            test       rbx, rbx
PP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9E6 0F842F270D00      jz         dword 0x7fefdf7111b
RS      2       16:27:25.534    indicator (AUDCAD,M30)  
JN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9EC 488B4B30          mov        rcx, [rbx+0x30]
QO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9F0 488B4328          mov        rax, [rbx+0x28]
JP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9F4 48897328          mov        [rbx+0x28], rsi
PP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9F8 48894DB0          mov        [rbp-0x50], rcx
OL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9E9FC 488B4B38          mov        rcx, [rbx+0x38]
FS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA00 48897330          mov        [rbx+0x30], rsi
PS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA04 48894DA0          mov        [rbp-0x60], rcx
GS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA08 8B4B40            mov        ecx, [rbx+0x40]
FM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA0B 48897338          mov        [rbx+0x38], rsi
NM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA0F 894C2478          mov        [rsp+0x78], ecx
JM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA13 488B4B50          mov        rcx, [rbx+0x50]
ML      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA17 897340            mov        [rbx+0x40], esi
ES      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA1A 48894DC8          mov        [rbp-0x38], rcx
JS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA1E 48897350          mov        [rbx+0x50], rsi
MS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA22 488945E0          mov        [rbp-0x20], rax
HR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA26 BAFFFFFFFF        mov        edx, 0xffffffff
QR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA2B 4885FF            test       rdi, rdi
DR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA2E 0F84AA000000      jz         dword 0x7fefde9eade
PR      2       16:27:25.534    indicator (AUDCAD,M30)  
QO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA34 4883C8FF          or         rax, 0xff
JO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA38 0F1F0400          nop        [rax+rax]
FS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA3C 48FFC0            inc        rax
OR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA3F 6644392C47        cmp        [rdi+rax*2], r13W
LR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA44 75F6              jnz        0x7fefde9ea3c
JS      2       16:27:25.534    indicator (AUDCAD,M30)  
CQ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA46 4C8BE6            mov        r12, rsi
RN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA49 483BC2            cmp        rax, rdx
LQ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA4C 0F8778270D00      ja         dword 0x7fefdf711ca
GO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA52 8D4801            lea        ecx, [rax+0x1]
HL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA55 3BC8              cmp        ecx, eax
LO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA57 0F826D270D00      jb         dword 0x7fefdf711ca
FQ      2       16:27:25.534    indicator (AUDCAD,M30)  
QE      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA5D 8BD9              mov        ebx, ecx
MF      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA5F 4803DB            add        rbx, rbx
DP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA62 483BDA            cmp        rbx, rdx
DR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA65 0F875F270D00      ja         dword 0x7fefdf711ca
QO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA6B 488B0D7E6A2000    mov        rcx, [rip+0x206a7e]
RS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA72 448BC3            mov        r8d, ebx
KS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA75 33D2              xor        edx, edx
FS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA77 895DB8            mov        [rbp-0x48], ebx
EM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA7A FF15E0082300      call       qword near [rip+0x2308e0]
NR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA80 4C8BE0            mov        r12, rax
EM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA83 48894580          mov        [rbp-0x80], rax
NS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA87 488945C0          mov        [rbp-0x40], rax
NN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA8B 4885C0            test       rax, rax
DL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA8E 0F8436270D00      jz         dword 0x7fefdf711ca
LS      2       16:27:25.534    indicator (AUDCAD,M30)  
HM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA94 448BCB            mov        r9d, ebx
GO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA97 488D442458        lea        rax, [rsp+0x58]
RM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA9C 4C8BC7            mov        r8, rdi
KL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EA9F 4889442438        mov        [rsp+0x38], rax
JS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAA4 41D1E9            shr        r9d, 1
JR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAA7 4889742430        mov        [rsp+0x30], rsi
RR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAAC BA00040000        mov        edx, 0x400
JP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAB1 33C9              xor        ecx, ecx
CS      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAB3 41FFC9            dec        r9d
FH      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAB6 895C2428          mov        [rsp+0x28], ebx
FD      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EABA 4C89642420        mov        [rsp+0x20], r12
ED      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EABF FF15B3082300      call       qword near [rip+0x2308b3]
JF      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAC5 8945BC            mov        [rbp-0x44], eax
NI      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAC8 8BC0              mov        eax, eax
FI      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EACA 46882C20          mov        [rax+r12], r13b
MK      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EACE 44396C2458        cmp        [rsp+0x58], r13d
GJ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAD3 0F856A260D00      jnz        dword 0x7fefdf71143
NF      2       16:27:25.534    indicator (AUDCAD,M30)  
QN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAD9 BAFFFFFFFF        mov        edx, 0xffffffff
HN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EADE 4D85F6            test       r14, r14
OQ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAE1 7434              jz         0x7fefde9eb17
NR      2       16:27:25.534    indicator (AUDCAD,M30)  
ER      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAE3 488D44245C        lea        rax, [rsp+0x5c]
OO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAE8 4533C9            xor        r9d, r9d
LO      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAEB 41B8E9FD0000      mov        r8d, 0xfde9
ML      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAF1 4889442428        mov        [rsp+0x28], rax
KL      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAF6 488D4590          lea        rax, [rbp-0x70]
HM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAFA 498BCE            mov        rcx, r14
RM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EAFD 4889442420        mov        [rsp+0x20], rax
OQ      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EB02 E84D31FFFF        call       0x7fefde91c54  ; InternetWriteFileExA (wininet.dll)
QM      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EB07 8BF0              mov        esi, eax
GR      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EB09 89442468          mov        [rsp+0x68], eax
CP      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EB0D 85C0              test       eax, eax
IN      2       16:27:25.534    indicator (AUDCAD,M30)                000007FEFDE9EB0F 0F85D7A00A00      jnz        dword 0x7fefdf48bec
QQ      2       16:27:25.535    indicator (AUDCAD,M30)  
MG      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB15 33F6              xor        esi, esi
EK      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB17 4D85FF            test       r15, r15
LM      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB1A 0F85B7260D00      jnz        dword 0x7fefdf711d7
CL      2       16:27:25.535    indicator (AUDCAD,M30)  
EH      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB20 41BEFFFFFFFF      mov        r14d, 0xffffffff
GG      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB26 488B85B0000000    mov        rax, [rbp+0xb0]
HH      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB2D 4885C0            test       rax, rax
IG      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB30 0F85D4270D00      jnz        dword 0x7fefdf7130a
KI      2       16:27:25.535    indicator (AUDCAD,M30)  
OL      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB36 4C8BBDB8000000    mov        r15, [rbp+0xb8]
JM      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB3D 4D85FF            test       r15, r15
OM      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB40 0F8403010000      jz         dword 0x7fefde9ec49
OR      2       16:27:25.535    indicator (AUDCAD,M30)  
RQ      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB46 0FB7FE            movzx      edi, si
JP      2       16:27:25.535    indicator (AUDCAD,M30)     crash -->  000007FEFDE9EB49 4D392F            cmp        [r15], r13
HO      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB4C 740C              jz         0x7fefde9eb5a
KQ      2       16:27:25.535    indicator (AUDCAD,M30)  
HH      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB4E 66FFC7            inc        di
DO      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB51 0FB7C7            movzx      eax, di
LL      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB54 4D392CC7          cmp        [r15+rax*8], r13
GN      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB58 75F4              jnz        0x7fefde9eb4e
KO      2       16:27:25.535    indicator (AUDCAD,M30)  
CH      2       16:27:25.535    indicator (AUDCAD,M30)                000007FEFDE9EB5A 488B0D8F692000    mov        rcx, [rip+0x20698f]
EI      2       16:27:25.535    indicator (AUDCAD,M30)  
OR      2       16:27:25.535    indicator (AUDCAD,M30)  00: 0x000007FEFDE9EB49
ID      2       16:27:25.535    indicator (AUDCAD,M30)  01: 0x00000000075E9F65
HS      2       16:27:25.535    indicator (AUDCAD,M30)  02: 0x0000000000CC0038
QJ      2       16:27:25.535    indicator (AUDCAD,M30)  03: 0x0000000007600000
KQ      2       16:27:25.535    indicator (AUDCAD,M30)  04: 0x0000000049335E8E
IH      2       16:27:25.535    indicator (AUDCAD,M30)  05: 0x0000000049336F7E
QJ      2       16:27:25.535    indicator (AUDCAD,M30)  
Aleksandr Samarkin
367
Aleksandr Samarkin  
Vitaly Muzichenko:

А у меня что это?

Win7 х64, билд 2007 

Так и что это было? Как победил?

Vitaly Muzichenko
13939
Vitaly Muzichenko  
Aleksandr Samarkin:

Так и что это было? Как победил?

Никак. В билде 2170 само пропало и работает нормально

Авторизуйтесь или зарегистрируйтесь, чтобы добавить комментарий