martinrybak / SQLClient

Native Microsoft SQL Server client for iOS
http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/
MIT License
124 stars 51 forks source link

Crash on dbloginfree(login) #38

Closed Debonairbender closed 7 years ago

Debonairbender commented 7 years ago

I am having a strange error while attempting to debug a program that I wrote. I am running devices with two different iOS versions. Some are running iOS 7.1.2 and some are running 9.3.5. The devices running 7.1.2 have no issue whatsoever and function exactly as desired. The devices running 9.3.5, however, run in to the problem some others have had with the "dbloginfree" line. I've updated the SQL Client with the most recent updates using CocoaPods still with no success. The 9.3.5 devices will function as intended about 20% of the time, failing with the error below the other 80%. Any tips? Thanks in advance! img_20170116_174716 1

martinrybak commented 7 years ago

Please try the types branch. It has a bunch of fixes.

Debonairbender commented 7 years ago

Ah didn't notice that branch, thank you. Will I be able to just replace the SQLClient.h and SQLClient.m in the types branch over my current ones or is there more I have to do?

martinrybak commented 7 years ago

That should be it. Keep in mind that the API changed slightly so you may have to update your consuming code.

Debonairbender commented 7 years ago

I am able to compile now after copying over the new SQLClient.m and SQLClient.h as well as linking the new libsysbdb.a, however I am now getting this error.
img_20170117_115339 1

I'm sure this is where I would need to change my code to match the new API, but I am unsure where to start. Thank you very much for your help, I am pretty new to iOS development and am grateful for your time in assisting me.

UPDATE Found the problem, realized I no longer need the line "client.delegate = self;"

Simply commenting out that line seems to have solved the problem. Thank you again