zoukankan      html  css  js  c++  java
  • QLibrary执行load失败

    QLibrary clyy("ledsender.so");

    if(!clyy.load());在执行该行代码时会导致程序崩溃。

    ---------------------------------------------------------------------------------

    原因:

    QLibrary clyy("ledsender.so");

    if(!clyy.load());

    上面两行代码是在类中的构造函数中,调用的。

    ledsender.so这个文件有23MB左右。向系统申请一大片内存导致的问题。

    --------------------------------------------------------------------------------

    方法:

    QLibrary clyy("ledsender.so");

    if(!clyy.load());

    放到main函数中。

  • 相关阅读:
    Google 嘘! 嘘!
    zabbix fast
    zabbix
    kernel update
    列表推导
    Ddos 反射性防护 simple
    file cycle
    Scala
    Hadoop
    数据库
  • 原文地址:https://www.cnblogs.com/zhangxuan/p/5069033.html
Copyright © 2011-2022 走看看