错误、漏洞、问题 - 页 3164

 
mktr8591 #:

亲爱的开发者们!为什么在第二次和第三次调用中,(T* const Ptr)被重载而不是(T* & Ptr)?

这是一个错误还是另一个错误?


这是它的设计方式,铸造操作的结果不能通过引用来传递。

 

我很不幸地下载了一个免费产品。
我已经厌倦了收到更新通知。而且没有办法取消订阅。


但有趣的是,当你点击链接时,你会看到这个。


我理解,该产品只是免费的,现在是付费的。但这与我没有关系。
有什么办法可以阻止这种暴行吗。

 

下午好!

这有点奇怪...

编码

//+------------------------------------------------------------------+
//|                                               SpotPipeServer.mq5 |
//|                                     Copyright 2022, prostotrader |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2022, prostotrader"
#property link      "https://www.mql5.com"
#property version   "1.00"
//---
#include "cnamedpipes.mqh"
//---
CNamedPipe Pipe;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
{
  Print("Start server...");
 /* if(PositionSelect(Symbol()) == true)
  {
    Pipe.out_data.spot_pos_type = PositionGetInteger(POSITION_TYPE);
    Pipe.out_data.spot_pos_vol = long(PositionGetDouble(POSITION_VOLUME));
  }
  else
  {
    Pipe.out_data.spot_pos_type = 0;
    Pipe.out_data.spot_pos_vol = 0;
  }*/
  bool is_server = Pipe.Create(Symbol());
  if(is_server == false)
  {
    Print("Pipe not created!");
    return(INIT_FAILED);
  }   
  Pipe.is_connect = Pipe.Connect();
  if(Pipe.is_connect == false)
  {
    Print("Client not connected!");
    return(INIT_FAILED);
  }
  else
  {
    Print("Client connected.");
    if(Pipe.ReadData() == false)
    {
      Print("Initial command not resived!");
      return(INIT_FAILED);
    }
    else
    {
      switch(Pipe.in_data.pipe_com)
      {
        case C_ACCAUNT:
          Pipe.out_data.pipe_com = C_DONE;
          Pipe.out_data.ballance = AccountInfoDouble(ACCOUNT_BALANCE);
          Pipe.out_data.free_margine = AccountInfoDouble(ACCOUNT_MARGIN_FREE);
          if(PositionSelect(Symbol()) == true)
          {
            Pipe.out_data.spot_pos_type = PositionGetInteger(POSITION_TYPE);
            Pipe.out_data.spot_pos_vol = long(PositionGetDouble(POSITION_VOLUME));
          }
          else
          {
            Pipe.out_data.spot_pos_type = 0;
            Pipe.out_data.spot_pos_vol = 0;
          }
          if(Pipe.WriteData(Pipe.out_data) == false)
          {
            Print("Start data not send!");
          }
          else Print("Initialization server done.");
        break; 
      }
    }
  } 
  return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
  if(Pipe.is_connect = true)
  {
    Pipe.Disconnect();
    Pipe.Flush();
  }    
}
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+

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

如果有一个注释(第18-28行),程序就会崩溃。

2022.03.03 19:17:38.135 SpotPipeServer (GAZP,M1)        Start server...
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        Access violation at 0x000007FEFCCA6A99 read to 0xFFFFFFFFFFFFFFFF
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)           crash -->  000007 FEFCCA6A99 488 B4808          mov        rcx, [rax+0x8]
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)                      000007 FEFCCA6A9D 48898 C24A8000000  mov        [rsp+0xa8], rcx
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)                      000007 FEFCCA6AA5 44397010          cmp        [rax+0x10], r14d
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)                      000007 FEFCCA6AA9 0 F85D8F30000      jnz        dword 0x7fefccb5e87
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)                      000007 FEFCCA6AAF 4885 C9            test       rcx, rcx
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)                      000007 FEFCCA6AB2 0 F84DFF30000      jz         dword 0x7fefccb5e97
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)                      000007 FEFCCA6AB8 0 FBAE31F          bt         ebx, 0x1f
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        00: 0x000007FEFCCA6A99
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        01: 0x0000000000590B40
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        02: 0x0000000014ACE4C0
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        03: 0x0000000140DBD000
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        04: 0x0000000000590183
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        05: 0x0000000014ACE4C0
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        06: 0x000000000059021F
2022.03.03 19:17:38.301 SpotPipeServer (GAZP,M1)        

如果我不加注释,它就会崩溃。

kernel32.dll被用来创建Pipe

2022.03.03 19:15:04.363 终端 Windows 7 Service Pack 1 build 7601, 12 x Intel Core i7-6850K @ 3.60GHz, 25 / 31 Gb内存, 85 / 238 Gb磁盘, admin, GMT+3


为什么?

由以下人员添加

3211号建筑

 

下午好,亲爱的开发者。你能告诉我问题可能是什么吗?PUSH-通知停止工作,而且是在不同的经纪公司。(确切地说,是经纪人而不是经纪公司)。

发出错误通知 发送请求失败(连接失败)。

我试图重新安装我的经纪公司固件,我不想使用新的固件。我试图在我的智能手机上重新安装它,但没有成功。

智能手机meizu note 9

WIN10操作系统

一个星期前就停止了工作。你能建议我往哪个方向挖吗?

 
Evgenii Akselrod #:

下午好,亲爱的开发者。你能告诉我问题可能是什么吗?PUSH-通知停止工作,而且是在不同的经纪公司。(确切地说,是经纪人而不是经纪公司)。

发出错误通知 发送请求失败(连接失败)。

我试图重新安装我的经纪公司固件,我不想使用新的固件。我试图在我的智能手机上重新安装它,但没有成功。

智能手机meizu note 9

WIN10操作系统

一个星期前就停止了工作。有什么建议吗?

看完你的帖子后,我以为谷歌禁止了(这是他们的事情),我检查了我的手机--它在工作。

而且,PUSH并不依赖于经纪人/DTS。

Zy.在安卓11上试过

 

在论坛和任何产品的讨论标签中,翻译器已经停止工作。当你点击

而不是翻译,你会得到。


 
Andrey Dik #:

看完你的帖子后,我以为谷歌禁止了它(这是他们的事情),我自己检查了一下--它的工作很正常。

而且,PUSH并不依赖于经纪人/DTS。

我在安卓11上试了一下。

安德烈,我们能不能到个人那里去,对我的问题进行更详细的分析:)

 
Evgenii Akselrod #:

安德烈,我们能不能到私下的信息中去对我的问题进行更详细的分析?)

我们当然可以,但如果你在这里提供更多关于问题的信息,也许开发者会更愿意回应。

 
Andrey Dik #:

当然,你可以,但如果你提供更多关于问题的信息,也许开发者会更愿意回应。

由于某些原因,我不能给你写信,在人.....,也许是因为我不是朋友?

 
Stanislau Siatsko #:

在论坛和任何产品的讨论标签中,翻译器已经停止工作。当你点击

而不是翻译,你会得到。


是的,我确认。它已经有几天没有工作了。