I still have to compile my app with PB 5.24 LTS, because in all later versions some bugs prevent me from using this compiler. No problem so far, but now people complain that my app is crashing on High Sierra.
I tried to reproduce and yes, after a while i get a crash. Using lldb showing this:
2017-12-04 14:58:51.521659+0100 myApp[1411:20855] Month 13 is out of bounds
myApp(1411,0xa9a801c0) malloc: *** error for object 0x6cb0b0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process 1411 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0xa7642ef6 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
-> 0xa7642ef6 <+10>: jae 0xa7642f06 ; <+26>
0xa7642ef8 <+12>: calll 0xa7642efd ; <+17>
0xa7642efd <+17>: popl %edx
0xa7642efe <+18>: movl 0x242f12b(%edx), %edx
Target 0: (myApp) stopped.
After bt I get this stack:
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0xa7642ef6 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0xa77734d7 libsystem_pthread.dylib`pthread_kill + 363
frame #2: 0xa7592b2a libsystem_c.dylib`abort + 133
frame #3: 0xa769ceed libsystem_malloc.dylib`free + 513
frame #4: 0xa6a3f59e libobjc.A.dylib`_object_dispose(objc_object*) + 28
frame #5: 0x9134d657 AppKit`-[NSResponder dealloc] + 137
frame #6: 0x9134c2bc AppKit`-[NSView dealloc] + 162
frame #7: 0x91447f3a AppKit`-[NSControl dealloc] + 143
frame #8: 0x91625512 AppKit`-[NSTableView dealloc] + 932
frame #9: 0x001780f9 myApp`-[PB_NSTableView dealloc] + 89
frame #10: 0xa6a3a9f9 libobjc.A.dylib`objc_object::sidetable_release(bool) + 269
frame #11: 0xa6a382d0 libobjc.A.dylib`-[NSObject release] + 19
frame #12: 0xa6a378fc libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 698
frame #13: 0x938c2b98 CoreFoundation`_CFAutoreleasePoolPop + 24
frame #14: 0x952d5cc1 Foundation`-[NSAutoreleasePool release] + 120
frame #15: 0x001634c5 myApp`PB_Cocoa_FlushAutoreleasePool + 37
frame #16: 0x00164d31 myApp`PB_WaitWindowEvent2 + 129
frame #17: 0x00065a46 myApp`Repeat7383 + 10
Looks like it crashes in some function PB_WaitWindowEvent2 by freeing a pointer that is not allocated (any more?).
What can I do to make it run again? Interestingly, it does not crash in the IDE of PB 5.24 LTS on the same Mac. Only the compiled executable, compiled on El Capitan, seems affected

Any idea?