Commit 7c55a924 by Carwyn

1. Dll 加载失败,调用崩溃问题修正

parent 05c27906
......@@ -49,8 +49,12 @@ int FMPPrinterPrivate::Uninit()
bool FMPPrinterPrivate::_DoPrint(QString data)
{
QLOG_INFO() <<"receive data is"<<data;
if(FM_LoadAddress() && FM_inItConfig())
QLOG_INFO() <<QString(GB2312ToUnicode("初始化打印机配置成功"));
if(FM_LoadAddress && FM_LoadAddress() && FM_inItConfig()) {
QLOG_INFO() <<QString(GB2312ToUnicode("初始化打印机配置成功"));
}
else {
return false;
}
QLOG_INFO() <<"receive data is"<<data;
char m_data[2048]={0};
switch (m_print.m_PrintType)
......
......@@ -11,7 +11,7 @@ inItConfig FM_inItConfig ;
PrintData FM_PrintData ;
Print2dData FM_Print2dData;
unloaddll FM_unloaddll ;
LoadAddress FM_LoadAddress ;
LoadAddress FM_LoadAddress = 0 ;
void InitLogger();
QString getdata();
bool InitDll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment