OK Christian. I am not sure why I am not getting through here. Maybe my writing is not clear enough:
Let me try again:
This exact same code was written years ago and the database file being read/written was done years ago. Under API 1.0 this all was fine and worked as it should.
There is nothing more to explain than that statement. Xojo goes to API 2.0 and deprecates the DataBaseRecord class and this happens. The picture is an icon size -very small. Hundreds of pixels (or less) at most not thousands. One resolution. It’s a PNG file that was loaded and saved in the picture column of the database. It’s not a newer form of picture.
Here is the crash report from the compiled app:
[code]Process: MediaSwitcher [10870]
Path: /Users/USER/Documents/*/MediaSwitcher.app/Contents/MacOS/MediaSwitcher
Identifier: com.justaddsoftware.mediaswitcher
Version: 4.2.9 (4.2.9.3.537)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: MediaSwitcher [10870]
User ID: 501
Date/Time: 2020-02-13 13:32:38.906 -0600
OS Version: Mac OS X 10.12.3 (16D30)
Report Version: 12
Anonymous UUID: 9B28CB36-F481-F45E-1A7E-88FE3E3ECEEC
Time Awake Since Boot: 4600000 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000030
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x30:
–>
__TEXT 0000000101ed9000-000000010975c000 [120.5M] r-x/rwx SM=COW /Users/USER/Documents/*/MediaSwitcher.app/Contents/MacOS/MediaSwitcher
Application Specific Information:
Performing @selector(performClick:) from sender XOJButton 0x608000347220
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.xojo.XojoFramework 0x0000000109f5fadf MemoryBlockToStringOperator + 17
1 com.xojo.XojoFramework 0x0000000109f1ba0e DatabaseRecordPictureColumnSetter + 47
2 com.justaddsoftware.mediaswitcher 0x000000010201c20b DatabaseRecord.=PictureColumn%%ossi8o + 11
3 com.justaddsoftware.mediaswitcher 0x00000001053ee97c NewPrefsWindow.NewPrefsWindow.OKCancelControl1_OKAction%%o<NewPrefsWindow.NewPrefsWindow>o<OKCancelControl.OKCancelControl> + 727500
4 com.justaddsoftware.mediaswitcher 0x0000000103f4b58b OKCancelControl.OKCancelControl.RightButton_Action%%o<OKCancelControl.OKCancelControl>o + 123
5 libsystem_trace.dylib 0x00007fffea708c3d _os_activity_initiate + 61
6 com.apple.AppKit 0x00007fffd3bf0c9c -[NSApplication(NSResponder) sendAction:to:from:] + 456
7 com.apple.AppKit 0x00007fffd36d6460 -[NSControl sendAction:to:] + 86
8 com.apple.AppKit 0x00007fffd36d6388 __26-[NSCell _sendActionFrom:]_block_invok[/code]
Looks like Xojo did monkey with the codeine screwed up in the MemoryBlockToString function. That’s not mine. That’s theirs. But what good is it to post a bug report about a deprecated item? Deprecated items by definition aren’t maintained or fixed.