[Mysql-cocoa-users] Null Pointer with initToHost
Brought to you by:
sergecohen
From: Chris B. <cbl...@so...> - 2006-12-31 12:30:45
|
Hi all, I have the Universal MCPkit_bundled.framework from CocoaMySQL but it is not behaving as expected. I have the following code:- NSString * serverAddress = @"localhost"; NSString * serverLogin = @"root"; NSString * serverPassword = @""; int serverPort = 3306; MCPConnection * test; test = [[MCPConnection alloc] initToHost:serverAddress withLogin:serverLogin password:serverPassword usingPort:serverPort]; If I run the above code and breakpoint some instruction afterwards I find that instead of initializing test gdb reads it as 0x0. Why is the system giving me a null pointer and how can I fix it? Thanks Chris |