Page 1 of 1

mergZXing and LC 5.5.3

Posted: Wed Jan 16, 2013 9:54 pm
by JacobS
Hi all,

Has anyone successfully used the mergZXing external to scan barcodes after updating to LC 5.5.3? It worked fine in LC 5.5.1 and 5.5.2, but after updating to 5.5.3, I can't get it to work. I haven't changed any of my code from one version of LC to the next.

My code is:

Code: Select all

on mouseUp
   mobileBusyIndicatorStart "square","Starting Scan..."
   put mergZXingGetBarcode() into tBarcode
   if tBarcode contains "user cancelled" then
   else
      set the text of field "newName" to tBarcode
   end if
   mobileBusyIndicatorStop
end mouseUp
What happens is that it gets to the "put mergZXingGetBarcode() into tBarcode" line and then the app hangs. The mobileBusyIndicator stays on the screen which means that the screen is locked. I'm having a lot of trouble trying to figure out what is going on.

Is there an update to the code that I missed? I didn't see anything on the mergExternal website or on the forums about this code changing.

Thanks in advance for your help
Jacob

Re: mergZXing and LC 5.5.3

Posted: Thu Jan 17, 2013 7:24 am
by monte
What version of mergZXing are you using? If it's an old one then the externals sdk and the livecode engine was changed significantly in LC 5.5.2 causing all externals developed prior to that to need a re-write. The current version is 1.1.2 and supports all versions of LC 5+

Cheers

Monte

Re: mergZXing and LC 5.5.3

Posted: Thu Jan 17, 2013 8:19 am
by shaosean
The externals SDK just for mobile or for desktop as well?

Re: mergZXing and LC 5.5.3

Posted: Thu Jan 17, 2013 9:09 am
by monte
Just for desktop.

Re: mergZXing and LC 5.5.3

Posted: Thu Jan 17, 2013 9:11 am
by monte
Lol... I mean just for iOS.

Re: mergZXing and LC 5.5.3

Posted: Thu Jan 17, 2013 2:30 pm
by JacobS
Thanks Monte! I was using an old version. I didn't see the update, but I'll download it, try it, and post back on whether or not it worked.

Jacob

Re: mergZXing and LC 5.5.3

Posted: Tue Jan 22, 2013 2:46 am
by JacobS
It worked. Thanks for the help.

Jacob

Re: mergZXing and LC 5.5.3

Posted: Wed Jan 23, 2013 6:58 am
by monte
No problem... I thought it would ;-)