Hi
I want to write something in objective-c.I I wrote at the moment short something:
The program is being compiled but in the process of action it is throwing the exception out: EXC_BAD_ACCESS, after certain (long) time can even hang the computer.Why? What am I doing badly? I've tried also like this:
but still the same : EXC_BAD_ACCESS
I want to write something in objective-c.I I wrote at the moment short something:
Code:
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
int main (int argc, const char * argv[]) {
// NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString * adres = @"http://www.google.pl";
DOMDocument * dok1 = [[[DOMDocument alloc] URL] initWithString:adres];
// insert code here...
NSLog(@"Hello, World!");
[dok1 release];
//[pool drain];
return 0;
}
The program is being compiled but in the process of action it is throwing the exception out: EXC_BAD_ACCESS, after certain (long) time can even hang the computer.Why? What am I doing badly? I've tried also like this:
Code:
DOMDocument * dok1 = [[[DOMDocument alloc] URL] initWithString:&adres];
but still the same : EXC_BAD_ACCESS