cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop an UtraliteJ synchronization?

Former Member
0 Kudos
2,992

Hi,

I'm looking for a way to stop the UtraliteJ synchronization in the Android API. I've seen in another question that the best way to do it, it is return true from a SyncObserver. However, it isn't solve my use case. I need to interrupt synchronously the synchronism process when I close my application. I've tried to call the DatabaseManager.release(), but it crashes the ultralite JNI:

> 05-05 17:15:37.797: I/DEBUG(4151): backtrace:
> 05-05 17:15:37.797: I/DEBUG(4151):     #00  pc 00018086  /system/lib/libc.so
> 05-05 17:15:37.797: I/DEBUG(4151):     #01  pc 0000dbd4  /system/lib/libc.so (abort+4)
> 05-05 17:15:37.797: I/DEBUG(4151):     #02  pc 00076281  /data/data/mypackage/lib/libultralitej12.so (ULHardStop()+72)
> 05-05 17:15:37.797: I/DEBUG(4151):     #03  pc 0007705f  /data/data/mypackage/lib/libultralitej12.so
> 05-05 17:15:37.797: I/DEBUG(4151):     #04  pc 000774e3  /data/data/mypackage/lib/libultralitej12.so (ulpp\\_disconnect\\_by\\_num(\\_sqlca\\*, unsigned char)+58)
> 05-05 17:15:37.797: I/DEBUG(4151):     #05  pc 000a5d73  /data/data/mypackage/lib/libultralitej12.so (dbpp_disconnect+50)
> 05-05 17:15:37.797: I/DEBUG(4151):     #06  pc 000b2373  /data/data/mypackage/lib/libultralitej12.so (ULConnectionImpl::Close(ULError\\*)+18)
> 05-05 17:15:37.797: I/DEBUG(4151):     #07  pc 0004844d  /data/data/mypackage/lib/libultralitej12.so (Java\\_com\\_ianywhere\\_ultralitejni12\\_implementation\\_JniConnection\\_release+100)

Is there any different way to interrupt synchronously the synchronism process ?

Accepted Solutions (0)

Answers (0)