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

Crashes during dbloginfree() #2

Closed ramsince88 closed 10 years ago

ramsince88 commented 10 years ago

Hi Martin,

Last time at blog you told to add nslog above line 120.

In log I am getting name of data base which I have passed at the time of connection.

Now please tell me How I fix this crashing? You can see code file from this link.... https://gist.github.com/ramsince88/8535996 I am showing screen shot of crashing... screen shot 2014-01-21 at 11 33 13 am

gagaxj commented 10 years ago

I also face the same problem. No clue yet.

martinrybak commented 10 years ago

Are you both using CocoaPods? Try it with my latest fix and see if you still have the same problem:

pod 'SQLClient', :head

ramsince88 commented 10 years ago

I have no idea about CocoaPods.

martinrybak commented 10 years ago

OK, so however you are pulling the source be sure to update it with my latest commit.

ramsince88 commented 10 years ago

I am adding code using this Manual

Drag and drop the contents of the SQLClient/SQLClient/SQLClient folder into your Xcode project. Select Copy items into destination group's folder (if needed). Go to Project > Build Phases > Link Binary With Libraries. Click + and add libiconv.dylib.

martinrybak commented 10 years ago

OK please update your code again by downloading from Github

ramsince88 commented 10 years ago

I think you have check sql client.h file because you have not create any object for password like user name, databse.

martinrybak commented 10 years ago

I am not exposing password on purpose. However, it is a private global variable in the .m file. Try the latest code and let me know.

ramsince88 commented 10 years ago

Hi, I have tested my app so many time and it is working fine. Once my tester verified that he not got any crashes.

martinrybak commented 10 years ago

OK great, so you tried the new code and it works fine?

ramsince88 commented 10 years ago

Yes

martinrybak commented 10 years ago

Great, I will close this issue. I strongly suggest that you check out CocoaPods, it will make your life so much easier as an iOS developer!

ramsince88 commented 10 years ago

Ok, Can you guide me about that? At least a brief introduction and way or link to use that.

martinrybak commented 10 years ago

There's plenty information on the internet. Try this video: http://www.youtube.com/watch?v=P8K-MmuG73E

martinrybak commented 10 years ago

This fix has been tagged as 0.1.2 and a new podspec has been published in CocoaPods as well.