"QEventLoop::exec: instance 0xbfd551e4 has already called exec()" Problem



  • I have three class , json package parser, serialport controller and tcp sender.While I was sending serial package suddenly json package comes and parsed but in serial sender side gives this error:

    "QEventLoop::exec: instance 0xbfd551e4 has already called exec()"

    and code crashes.How can I solve this problem?
    Output is like that:

    @

    "7E 7E 12 01 02 10 10 50 AA AA "
    "http://1.11.31.10:28017/iybs_status/timetable/?filte_stationid=999"
    RFID Init Stater

    "02 00 08 00 52 00 B9 05 " --> Serial Packet
    // ---json parsing ---
    Reply = "{
    "offset" : 0,
    "rows": [
    {/JSON/ } }
    ],

    "total_rows" : 1 ,
    "query" : {} ,
    "millis" : 0
    }
    "
    JSON Parsed
    // --- JSON Finished ---
    Event loop calisiomus--> RFIDCSFourLineStater

    "7E 7E 12 01 02 10 10 50 AA AA " --> An other serial packet
    QEventLoop::exec: instance 0xbfd551e4 has already called exec()

    "7E 7E 12 01 02 04 00 68 AA AA "
    QEventLoop::exec: instance 0xbfd551e4 has already called exec()

    @


  • Lifetime Qt Champion

    Hi,

    Without seeing any part of your code, it's crystal ball debugging. Please show us the related classes


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.