mergZXing and LC 5.5.3

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JacobS
Posts: 58
Joined: Mon Aug 20, 2012 8:41 pm

mergZXing and LC 5.5.3

Post by JacobS » Wed Jan 16, 2013 9:54 pm

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

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: mergZXing and LC 5.5.3

Post by monte » Thu Jan 17, 2013 7:24 am

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: mergZXing and LC 5.5.3

Post by shaosean » Thu Jan 17, 2013 8:19 am

The externals SDK just for mobile or for desktop as well?

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: mergZXing and LC 5.5.3

Post by monte » Thu Jan 17, 2013 9:09 am

Just for desktop.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: mergZXing and LC 5.5.3

Post by monte » Thu Jan 17, 2013 9:11 am

Lol... I mean just for iOS.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

JacobS
Posts: 58
Joined: Mon Aug 20, 2012 8:41 pm

Re: mergZXing and LC 5.5.3

Post by JacobS » Thu Jan 17, 2013 2:30 pm

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

JacobS
Posts: 58
Joined: Mon Aug 20, 2012 8:41 pm

Re: mergZXing and LC 5.5.3

Post by JacobS » Tue Jan 22, 2013 2:46 am

It worked. Thanks for the help.

Jacob

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: mergZXing and LC 5.5.3

Post by monte » Wed Jan 23, 2013 6:58 am

No problem... I thought it would ;-)
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply