escoz/QuickDialog — Issue #20: Crash when linked through a static library
Author: nbonamy
Created: 2011-11-21 16:00:06+00:00
State: open

Hello, I wanted to use QuickDialog and put it in a static library where I put all external components that I reuse across my applications.

In one of my projects I have a screen with some QLabelElement. Enough so that one needs to scroll down to see some of the items. My app would crash as soon as a previously out of screen element would need to be displayed. Data associated to this element seemed corrupted in the debugger (_title would not even be of NSString type as seen in debugger). Could not figure out why so I ended up putting the QuickDialog source file in my application project instead of my static library (not being able to reproduce the crash in the sample app) and the crash disappeared without me changing nothing else...

Please note the "other linker flags" were set to "-ObjC -load_all". Still cannot explain it...

Regards