Images Not Showing Up When Architecture Set to 64 Bit

Images not showing up when architecture set to 64 bit

Answer lies here:

https://devforums.apple.com/message/922989#922989

I found the reason. In a viewController, which was not yet allocated, but included in the app, there was following implemented (in the .m-file above implementation viewController):

@implementation UIImageView (UIScrollView)
- (void)setAlpha:(float)alpha {
..........(no difference if here is some code or not) ...............
[super setAlpha:alpha];
}
@end

Putting above in comment solved the problem, even though the button which didn't display the image wasn't in a scrollview.

image analysis and 64bit OS

You can run 32 bit apps on a 64-bit OS, but they run in "WoW" (windows on windows). That is, they still run as a 32 bit app, with all the restrictions a 32-bit app has. To run as a native 64 bit app, they have to be proper 64 bit applications.

Managed (C#) code is not 32/64 platform-specific - it will be JIT compiled into the correct sort of code to run natively on the host PC. However, any unmanaged code (C++, most third party dlls) will have been pre-compiled as 32-bit or 64-bit, so you have to use the correct version of the dll for your host PC.

If you try to run your program on 64 but use a 32-bit dll, when you try to call the dll your program will simply crash with a "bad image format" error.

So... to make your program truly 64 bit, you will need to build a version that links to the 64-bit Congnex library.

You can target any type of processor from Visual Studio, so you don't need to have a 64 bit PC to develop a 64 bit app (although you will beed a 64-bit pc to test it on!)



Related Topics



Leave a reply



Submit