memory-management tag

12 questions


1 answers
116 views
0
Points to Note for Memory Management in Apps That Process Large Data on iOS

Thank you for your help.I'm sorry for the vague question, but I'm at a loss for a reply after receiving a consultation from a team member regarding the following issues.If you have more than 100MB of ...

2 years ago

1 answers
144 views
0
US>What is the unit of memory swap-out swap-in for Linux?

How does Linux swap out and swap in memory?Is it per page (approximately 4kb)?Or is it a little larger, internal structural unit around memory management?This is because I think heap fragmentation occ...


1 answers
124 views
0
Understanding the Release Action When Migrating from Objective-C to Swift

I'm thinking of moving the app from objective-C to swift.The following is dealloc for UIWindow*window; in AppDelegate.m.When I was writing in objective-C, I wrote the release process in dealloc as fol...

2 years ago

1 answers
86 views
0
Understanding Stack Overflow

I think the stack will pile up from the larger memory address to the smaller memory address, but if it overflows, will the memory on the other side of the stack be rewritten?Or will the stack be rewri...

2 years ago

1 answers
147 views
0
Memory Error in jupyter notebook

I take in a lot of image data and analyze it on jupyter notebook, but I delete the variables with the del command and gc.collect() in some parts of the code, but I run out of memory in the middle and ...


1 answers
118 views
0
Memory Allocation in uClinux

I am currently developing software on uClinux.Running software under development for a long time Allocation of length 69632 from process 7238(cut) failed A kernel message (dmesg) such as this will eve...

2 years ago

1 answers
136 views
0
Which one should I use, malloc or new?

In C++, there are many ways to dynamically allocate, right?Then when should I use malloc and when should I use new?malloc If you finished freeIf new is done, deleteI know I shouldn't mix the two.


1 answers
169 views
0
Is there a way to determine the size of the object in Python?

In C/C++, I found out by using sizeof()I wonder if Python has a similar function. I am writing an XML file that determines the size of the value by the size of the fieldYou should always check the fie...


1 answers
153 views
0
Can I delete the NULL pointer?

NULLThe pointer doesn't point at anything, so there's nothing to do with deleteIs it safe to delete?Should I check whether it is NULL or not and delete?


1 answers
81 views
0
Does "new int[0]" allocate memory?

On my computer,cout << new int[0] << endl;When I ran , I printed 0x876c0b8.I think I'm allocating memoryAssigning [0] means assigning empty. Personally, I thought there would be an error, ...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.