当前位置: 技术问答>linux和unix
linux程序里内存访问错误
来源: 互联网 发布时间:2017-02-03
本文导语: Program terminated with signal 11, Segmentation fault. #0 0x08048e31 in rfid::reader(std::basic_string&) () 120 int rfid::reader(string &str) 121 { 122 unsigned char epc[13]; 123 int ret,i; 124 ...
Program terminated with signal 11, Segmentation fault.
#0 0x08048e31 in rfid::reader(std::basic_string&) ()
120 int rfid::reader(string &str)
121 {
122 unsigned char epc[13];
123 int ret,i;
124 char card_num[7];
125 char ID[19];
126
127 ret=(*SingleTagIdentify)(m_hcomm,4,epc);
128 if (ret)
129 return 0;
130
131 for(i=0;i
#0 0x08048e31 in rfid::reader(std::basic_string&) ()
120 int rfid::reader(string &str)
121 {
122 unsigned char epc[13];
123 int ret,i;
124 char card_num[7];
125 char ID[19];
126
127 ret=(*SingleTagIdentify)(m_hcomm,4,epc);
128 if (ret)
129 return 0;
130
131 for(i=0;i