Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
87 views

What wrong with deallocating func?

I am currently learning lists, and I am trying to write a function that deallocates the memory. I tried, but even though it compiles, it returns a non-zero value. I don't understand why my program ...
JOHN BOURAS's user avatar
0 votes
1 answer
177 views

Swift: deallocate modally presented view controller

I have a modally presented SearchviewController that contains a UISearchController. When swiping down it gets deallocated, but only if the searchControllers searchBar is not in editing mode. Only if I ...
alju2404's user avatar
0 votes
1 answer
1k views

when __NSDictionaryM dealloc crash

For a crash in my application, NSDictionary is an attribute of the model, and when the model executes the cxx_destruct function, crash occurs inside the NSDictionary.There's a place in the crash stack ...
SFly's user avatar
  • 1
3 votes
2 answers
4k views

When is `deinit` exactly called? (in Swift)

When is deinit exactly called? Is it like C++ guaranteed to be called when last reference gets out of scope (by return, throw or exit)? Or is Swift using Garbage-Collector?
Top-Master's user avatar
  • 8,886
0 votes
2 answers
314 views

Manually how to deallocate an object (NSString / NSMutableString ,..) under ARC in Objective C

Initialised an Object (NSString / NSMutableArray) and set value for that. I need to deallocate the object, then have to assign a value to that object to get an error of that's already been ...
Rajendran's user avatar
  • 141
0 votes
1 answer
106 views

MultiThreaded delaying class deallocation

below i am defining a solution and using interval as a timer in background thread as follow : @weakify(self) //IMPORTANT:- Throttle is working exactly the same way debounce works in RX SO DO NOT USE ...
Osama Fawzi's user avatar
0 votes
2 answers
100 views

Speed up segues and Unwind segues

I am trying to speed up segues and unwind segues between view controllers. If I am doing anything fundamentally wrong please let me know or if I need to upload more code for context. Here is a ...
mick1996's user avatar
  • 606
1 vote
5 answers
864 views

EXC_BAD_ACCESS KERN_INVALID_ADDRESS for WKWebView dealloc

Why would the below stack trace throw a EXC_BAD_ACCESS KERN_INVALID_ADDRESS because of the WKWebView? I can't tell where this is happening either. I dont know where this is happening but here is my ...
Mike Flynn's user avatar
  • 23.9k
0 votes
1 answer
1k views

what does deallocation function in xv6's allocation function

in case 1 and 2, what does the deallocation function do in an allocation function? case 1: if(mem == 0) // does this condition mean physical memory has not space? case 2: if(mappages(pgdir, (...
jun130's user avatar
  • 27
-1 votes
1 answer
970 views

Rust: memory deallocation for String [duplicate]

Do I need to deallocate memory manually in this case: let mut s = String::new(); ...somecode here... s = String::new(); and is it the best way to erase content of the string?
rustafarian's user avatar
0 votes
1 answer
297 views

Dealloc NSString causes crash

I am working on Objective-C application. There I have this snippet: QString result; NSString *tmp = nil; tmp = [activeApp bundleIdentifier]; result = QString::fromNSString(tmp); NSLog(@"...
RuLoViC's user avatar
  • 855
0 votes
0 answers
74 views

Memory is not being relased when I go back and forth between view controllers

I have an app with a main view controller that has a uitableview that has a user listed in each cell. Each cell has a profile pic. Tapping the profile pic goes to that users profile page using ...
Ben Akin's user avatar
  • 167
0 votes
1 answer
183 views

SJVideoPlayer Not Playing video Display black screen

I'm simply use following code but it display black screen. SJVideoPlayer *videoPlayer = [SJVideoPlayer player]; videoPlayer.view.frame = CGRectMake(0, 20, 200, 200 * 9/16.0); [self.view addSubview:...
Bhaumik Surani's user avatar
0 votes
0 answers
61 views

When I Used [UITabBarController setSelectedIndex:] and - popToRootViewControllerAnimated:, the viewController not dealloc

When I Used [UITabBarController setSelectedIndex:] and - popToRootViewControllerAnimated:, for example: - (void)backViewControllerAnimation:(BOOL)animation { if ([self.navigationController ...
Jpache's user avatar
  • 91
0 votes
1 answer
86 views

activity rotate deallocation

I have created a hello world simple activity and I started.I look at android profiler , When I rotate screen , in the heap (android profiler monitor) totally 2 MainActivity are shown . why first ...
ahmetvefa53's user avatar

15 30 50 per page
1
2 3 4 5
34