Questions tagged [weak]

128 questions
0
votes
1 answer

GCC weak attribute on variable declaration

In GCC, If a variable is declared with weak attribute, and, in (static) linking time, no definition is found, the variable will have address zero, i.e., if a pointer is initialized with the address of the variable, the pointer will be NULL, as the…
dingcurie
  • 121
  • 6
0
votes
1 answer

What's different between ? and ! in weak, strong reference in Swift

I'm beginner in Swift. I have some questions need to resolve but I can't do it by myself. Here is some problem for me: class Author { weak var book: Book? deinit { print("Dealloc Author") } } class Book { var author:…
Hung Nguyen
  • 43
  • 1
  • 6
0
votes
0 answers

How to Remove weak cipher from esxi ssl server with opnessl command

I have got SSL cipher issue with my ESXi Server , can anybody provide me the openssl command for the remediation in weak cipher.
harry
  • 1
  • 1
0
votes
1 answer

I can’t understand a crash.

I got a crash from crashlytics. Probably it connected with weakSelf. Crashed: com.apple.main-thread EXC_BREAKPOINT 0x000000000defe 0 libobjc.A.dylib 0x224aea44 _objc_trap() 1 libobjc.A.dylib 0x224aeaa9 _objc_inform…
Voloda2
  • 12,359
  • 18
  • 80
  • 130
0
votes
1 answer

what's the reason that there is no warning when I assign the NSBlockOperation object to a weak value

__weak NSBlockOperation *secondBlockOperation = [NSBlockOperation blockOperationWithBlock:^{ NSLog(@"%@",secondBlockOperation); NSLog(@"this is the second block"); }]; __block __weak NSBlockOperation *secondBlockOperation =…
0
votes
1 answer

Mapping between weak and strong entity

Consider the er diagram. Q1: The dependants table will have a serial number column as a surrogate key for the sake of uniqueness of rows in this table. But we are not including this surrogate key column as an attribute in er diagram since its not…
Aisha Javed
  • 169
  • 13
0
votes
1 answer

Does Firebase use `WeakReference` for their listeners on Android?

I want to know if Firebase uses the WeakReference class for references to listener instances. Imagine the following scenario: A silly developer attaches a ValueEventListenerin onCreate() of his SillyActivity and forgets to remove it. Does the…
cybergen
  • 3,108
  • 1
  • 22
  • 30
0
votes
0 answers

circular reference using weak variables causing the unwrapping of nils

let me start off by saying I searched to find a topic that would help me but I could not anything that helped. Here is my situation... I created a class sign where I created the variable thing1. I then created an array called arrayX that uses sign.…
0
votes
1 answer

SQL Server 2005 using setup.ini weak sapwd

I'm trying to install SQL Server 2005 via command line with an ini file. The application I'm running with SQL Server 2005 requires a set SAPWD, however, this password does not meet our password policy. I know there's a way to create the user with…
RedGazelle
  • 47
  • 1
  • 8
0
votes
1 answer

Do IOS UI elements need to be weak?

When not using interface builder I always keep strong references to UI elements: @interface myViewController : UIViewController @property (nonatomic, strong) UILabel *folderLabel; And then add them like this: [self.view addSubview…
Md1079
  • 1,360
  • 1
  • 10
  • 28
0
votes
1 answer

Disabling weak Ciphers for Tomcat 5.5.27?

Please let me know how can I disable weak Ciphers for Tomcat 5.5.27
sourabh
0
votes
0 answers

Memory Leak and its solutions using weak declaration in Swift

I'm making a match-3 game using SpriteKit. Explanation: http://www.raywenderlich.com/75273/make-game-like-candy-crush-with-swift-tutorial-part-2. Please refer to swm93's comment on page 4 This is a tutorial but it seems to have a memory leak in the…
codeinjuice
  • 664
  • 1
  • 5
  • 14
0
votes
0 answers

what is the difference between __weak UIImage *image and UIImage *__weak image in ios

What is the difference between __weak UIImage *image and UIImage *__weak image in iOS ? And is the __weak necessary with ARC ? I have seen this code pattern in may examples wherein the UIImage is created programmatically in iOS but, is this pattern…
Nav
  • 10,304
  • 20
  • 56
  • 83
0
votes
1 answer

Assigning retaining object to weak property; object will be released after assignment

I wrote on Xcode6 the example of Objective-C delegation pattern on Wikipedia. Every time you set the delegate there is a Warning "Assigning retaining object to weak property; object will be released after assignment". After running the example,…
joan
  • 2,407
  • 4
  • 29
  • 35
0
votes
1 answer

(Database) Can 2 weak entities form an associative entity?

Currently I have a situation whereby 2 weak entities form an associative entity (Due to a many-to-many relationship). "Project" Strong Entity consist of projectID (PK), projectName, projectStartDate, projectEndDate "Task" Weak Entity consist of a…
1 2 3
8
9