sketch OK on UNO but not mkr1000

Hi all

I ran into a problem that a sketch for MMA7745 (with official library) is running fine on an arduino UNO
but not on mkr1000

After I upload the sketch, mkr1000 would lost the connection
then i reconnect it to a serial - but it wont show any data

I want to know how should I go on to check the problem ?
How can I know which line of code cause the problem?

thank you for any advices in advance

Best
Kit

OK my bad its just a badly formed lib

And quite old as they go too.

Which particular sketch ?

Also have you updated the MKR ?

kitman:
I ran into a problem that a sketch for MMA7745 (with official library) is running fine on an arduino UNO
but not on mkr1000

What do you consider to be an "official library"?