Monterrey crash

One of my clients upgrade fro BigSur to Monterrey.
Till that moment a XOJO desktop application had been running perfectly.
Since that I receive this message when the application starts.
Any of the people at this forum could give an idea to what to do ? if it is possible to solve from my side or it is an incompatibility between XOJO and Monterrey ?
Thanks

Error: UNHANDLED Exception !!! - NilObjectException
Metodo: RaiseNilObjectExceptionApp.mCargaVariablesGlobales%%oApp.Event_Open%%oXojoFramework$1275XojoFramework$1225__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER_____CFXRegistrationPost_block_invoke_CFXRegistrationPost_CFXNotificationPost-[NSNotificationCenter postNotificationName:object:userInfo:]-[NSApplication _postDidFinishNotification]-[NSApplication _sendFinishLaunchingNotification]_DPSNextEvent-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]XojoFramework$1283XojoFramework$1284


Translated Report (Full Report Below)

Process: bMD [5239]
Path: /Users/USER/*/bMD.app/Contents/MacOS/bMD
Identifier: com.bMD
Version: (11.3.118.0.4)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2021-11-22 17:36:35.0587 -0300
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 0F20F90C-E96F-15B8-F267-EC5A311B9779

Sleep/Wake UUID: 9A98E0A1-1EE6-40F8-BDA4-30A810E8D96D

Time Awake Since Boot: 18000 seconds
Time Since Wake: 866 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [5239]

VM Region Info: 0x8 is not in any region. Bytes before following region: 4412010488
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
__TEXT 106f9f000-10949d000 [ 37.0M] r-x/rwx SM=COW …nts/MacOS/bMD

Application Specific Information:
Calling windowShouldClose: on the delegate for the XOJWindow 0x7ff422a22860

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 XojoFramework 0x10a5402ac RuntimeObjectIsa + 83
1 XojoFramework 0x10a551eef RuntimeViewDestructor + 142
2 bMD 0x106fc9b2c Window.__Exit%%o + 12
3 XojoFramework 0x10a5400de RuntimeUnlockObject + 792
4 XojoFramework 0x10a460468 0x10a39b000 + 808040
5 XojoFramework 0x10a3f566a 0x10a39b000 + 370282
6 AppKit 0x7ff81193c487 __19-[NSWindow __close]_block_invoke + 153
7 AppKit 0x7ff81193c3e1 -[NSWindow __close] + 284
8 AppKit 0x7ff8117dc64d -[NSApplication(NSResponder) sendAction:to:from:] + 288
9 AppKit 0x7ff8117dc4f4 -[NSControl sendAction:to:] + 86
10 AppKit 0x7ff8117dc426 __26-[NSCell _sendActionFrom:]_block_invoke + 131
11 AppKit 0x7ff8117dc32f -[NSCell _sendActionFrom:] + 171
12 AppKit 0x7ff8117dc276 -[NSButtonCell _sendActionFrom:] + 96
13 AppKit 0x7ff8117d90e4 NSControlTrackMouse + 1817
14 AppKit 0x7ff8117d89a7 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
15 AppKit 0x7ff8117d887a -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 679
16 AppKit 0x7ff8117d7c48 -[NSControl mouseDown:] + 678
17 AppKit 0x7ff8117d6127 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4949
18 AppKit 0x7ff81174a0a4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2582
19 AppKit 0x7ff81174946e -[NSWindow(NSEventRouting) sendEvent:] + 352
20 XojoFramework 0x10a3e9ebe 0x10a39b000 + 323262
21 AppKit 0x7ff81174783c -[NSApplication(NSEvent) sendEvent:] + 352
22 XojoFramework 0x10a3d996c 0x10a39b000 + 256364
23 AppKit 0x7ff811a0080b -[NSApplication _handleEvent:] + 65
24 AppKit 0x7ff8115c837e -[NSApplication run] + 623
25 XojoFramework 0x10a53c89b RuntimeRun + 40
26 bMD 0x1070f6ff8 REALbasic._RuntimeRun + 24
27 bMD 0x1091963ea _Main + 538
28 bMD 0x109195a51 main + 65
29 bMD 0x106fa0394 start + 52

Thread 1:
0 libsystem_kernel.dylib 0x7ff80eaaaaf6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x7ff80e931178 _dispatch_sema4_wait + 16
2 libdispatch.dylib 0x7ff80e931647 _dispatch_semaphore_wait_slow + 98
3 libfbclient.dylib 0x11007c03f Firebird::SignalSafeSemaphore::enter() + 31
4 libfbclient.dylib 0x11007be3e (anonymous namespace)::shutdownThread(void*) + 62
5 libfbclient.dylib 0x11005c719 (anonymous namespace)::ThreadArgs::run() + 25
6 libfbclient.dylib 0x11005c5d6 (anonymous namespace)::threadStart(void*) + 86
7 libsystem_pthread.dylib 0x7ff80eae7514 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff80eae302f thread_start + 15

Thread 2:
0 libsystem_pthread.dylib 0x7ff80eae300c start_wqthread + 0

Thread 3:
0 libsystem_pthread.dylib 0x7ff80eae300c start_wqthread + 0

Thread 4:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x7ff80eaaaaba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff80eaaae2b mach_msg + 59
2 CoreFoundation 0x7ff80ebaea42 __CFRunLoopServiceMachPort + 319
3 CoreFoundation 0x7ff80ebad11b __CFRunLoopRun + 1325
4 CoreFoundation 0x7ff80ebac52d CFRunLoopRunSpecific + 563
5 AppKit 0x7ff811745cec _NSEventThread + 132
6 libsystem_pthread.dylib 0x7ff80eae7514 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff80eae302f thread_start + 15

Thread 5:
0 libsystem_pthread.dylib 0x7ff80eae300c start_wqthread + 0

Thread 6:
0 libsystem_pthread.dylib 0x7ff80eae300c start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007ff423808a00 rcx: 0x0000600002e23e40 rdx: 0x00000000c7e03ffb
rdi: 0x00007ff42281c1a0 rsi: 0x00007ff423808a01 rbp: 0x00007ff7b8f5fa30 rsp: 0x00007ff7b8f5fa20
r8: 0x0000000000001e01 r9: 0x000000000000003f r10: 0x00007ff422a00000 r11: 0x00007ff422a29480
r12: 0x000000010a74a838 r13: 0x00007ff421fc5df0 r14: 0x00007ff42281c1a0 r15: 0x0000600002e23e40
rip: 0x000000010a5402ac rfl: 0x0000000000010287 cr2: 0x0000000000000008

Logical CPU: 4
Error Code: 0x00000004 (no mapping for user data read)
Trap Number: 14

Thread 0 instruction stream:
5d e9 74 fb ff ff 48 83-c4 08 5b 5d c3 55 48 89 ].t…H…[].UH.
e5 41 56 53 48 89 f3 49-89 fe 4d 85 f6 0f 84 80 .AVSH…I…M…
00 00 00 48 85 db 75 26-48 8d 3d 80 df 10 00 48 …H…u&H.=…H
8d 15 47 e1 10 00 48 8d-0d 6f c0 0f 00 4c 8d 05 …G…H…o…L…
30 8e 10 00 be e3 02 00-00 e8 18 0f ff ff 49 8b 0…I.
46 08 f6 43 1c 01 75 13-40 b6 01 48 39 d8 74 45 F…C…u.@…H9.tE
[48]8b 40 08 48 85 c0 75-ef eb 38 8b 88 90 00 00 H.@.H…u…8… <==
00 48 85 c9 74 2d 48 05-98 00 00 00 31 d2 48 8d .H…t-H…1.H.
34 52 48 8b 3c f0 40 b6-01 48 39 df 74 17 48 8b 4RH.<.@…H9.t.H.
7f 08 48 85 ff 75 ef 48-ff c2 31 f6 48 39 ca 72 …H…u.H…1.H9.r
dd eb 02 31 f6 40 0f b6-c6 5b 41 5e 5d c3 55 48 …1.@…[A^].UH
89 e5 41 57 41 56 41 54-53 48 83 ec 10 49 89 f6 …AWAVATSH…I…

Binary Images:
0x10a39b000 - 0x10a6fcfff com.xojo.XojoFramework (1.0) /Users/USER//bMD.app/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework
0x106f9f000 - 0x10949cfff com.bMD (
) <8148c9bb-a625-3e97-a2b9-373c6a31acc6> /Users/USER//bMD.app/Contents/MacOS/bMD
0x7ff811599000 - 0x7ff812425fff com.apple.AppKit (6.9) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7ff80eaaa000 - 0x7ff80eae0fff libsystem_kernel.dylib (
) <12bd6f13-c452-35ee-9069-51befef29f1a> /usr/lib/system/libsystem_kernel.dylib
0x7ff80e92e000 - 0x7ff80e974fff libdispatch.dylib () /usr/lib/system/libdispatch.dylib
0x110043000 - 0x11010cfff libfbclient.dylib (
) /Users/USER//libfbclient.dylib
0x7ff80eae1000 - 0x7ff80eaecfff libsystem_pthread.dylib (
) <29a2750e-f31b-3630-8761-242a6bc3e99e> /usr/lib/system/libsystem_pthread.dylib
0x7ff80eb2e000 - 0x7ff80f030fff com.apple.CoreFoundation (6.9) <3002b545-6841-3fc8-91a2-bcfbe5872465> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=682.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=682.4M(100%)

                            VIRTUAL   REGION

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 640K 5
Activity Tracing 256K 1
CG backing stores 2528K 4
CG image 172K 8
CG raster data 16K 1
ColorSync 236K 27
CoreAnimation 37.6M 32
CoreGraphics 12K 2
CoreUI image data 2068K 15
Foundation 16K 1
Image IO 5048K 7
Kernel Alloc Once 8K 1
MALLOC 235.6M 79
MALLOC guard page 48K 12
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.0M 7
Stack 14.5M 7
VM_ALLOCATE 264K 17
__DATA 30.4M 508
__DATA_CONST 28.1M 311
__DATA_DIRTY 1531K 199
__FONT_DATA 4K 1
__LINKEDIT 643.8M 31
__OBJC_RO 81.5M 1
__OBJC_RW 3120K 2
__TEXT 517.0M 520
__UNICODE 588K 1
__XOJO 104K 1
dyld private memory 2048K 3
mapped file 70.7M 25
shared memory 776K 16
=========== ======= =======
TOTAL 2.1G 1846
TOTAL, minus reserved VM space 1.7G 1846


Full Report

{“app_name”:“bMD”,“timestamp”:“2021-11-22 17:36:35.00 -0300”,“app_version”:"",“slice_uuid”:“8148c9bb-a625-3e97-a2b9-373c6a31acc6”,“build_version”:“11.3.118.0.4”,“platform”:1,“bundleID”:“com.bMD”,“share_with_app_devs”:0,“is_first_party”:0,“bug_type”:“309”,“os_version”:“macOS 12.0.1 (21A559)”,“incident_id”:“C2CAC989-905D-4F2F-BB53-7BB0AC7D7369”,“name”:“bMD”}
{
“uptime” : 18000,
“procLaunch” : “2021-11-22 17:36:02.8252 -0300”,
“procRole” : “Foreground”,
“version” : 2,
“userID” : 501,
“deployVersion” : 210,
“modelCode” : “MacBookPro13,3”,
“procStartAbsTime” : 18861752518212,
“coalitionID” : 6612,
“osVersion” : {
“train” : “macOS 12.0.1”,
“build” : “21A559”,
“releaseType” : “User”
},
“captureTime” : “2021-11-22 17:36:35.0587 -0300”,
“incident” : “C2CAC989-905D-4F2F-BB53-7BB0AC7D7369”,
“bug_type” : “309”,
“pid” : 5239,
“procExitAbsTime” : 18893980942341,
“cpuType” : “X86-64”,
“procName” : “bMD”,
“procPath” : “/Users/USER//bMD.app/Contents/MacOS/bMD",
“bundleInfo” : {“CFBundleShortVersionString”:"",“CFBundleVersion”:“11.3.118.0.4”,“CFBundleIdentifier”:“com.bMD”},
“storeInfo” : {“deviceIdentifierForVendor”:“D72EDA13-2D99-5B54-AD05-DAD0D03ED480”,“thirdParty”:true},
“parentProc” : “launchd”,
“parentPid” : 1,
“coalitionName” : “com.bMD”,
“crashReporterKey” : “0F20F90C-E96F-15B8-F267-EC5A311B9779”,
“wakeTime” : 866,
“bridgeVersion” : {“build”:“14Y908”,“train”:“3.0”},
“sleepWakeUUID” : “9A98E0A1-1EE6-40F8-BDA4-30A810E8D96D”,
“sip” : “enabled”,
“vmRegionInfo” : “0x8 is not in any region. Bytes before following region: 4412010488\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n—> \n __TEXT 106f9f000-10949d000 [ 37.0M] r-x/rwx SM=COW …nts/MacOS/bMD”,
“isCorpse” : 1,
“exception” : {“codes”:“0x0000000000000001, 0x0000000000000008”,“rawCodes”:[1,8],“type”:“EXC_BAD_ACCESS”,“signal”:“SIGSEGV”,“subtype”:“KERN_INVALID_ADDRESS at 0x0000000000000008”},
“termination” : {“flags”:0,“code”:11,“namespace”:“SIGNAL”,“indicator”:“Segmentation fault: 11”,“byProc”:“exc handler”,“byPid”:5239},
“vmregioninfo” : “0x8 is not in any region. Bytes before following region: 4412010488\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n—> \n __TEXT 106f9f000-10949d000 [ 37.0M] r-x/rwx SM=COW …nts/MacOS/bMD”,
“asi” : {“AppKit”:[“Calling windowShouldClose: on the delegate for the XOJWindow 0x7ff422a22860”]},
“extMods” : {“caller”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“system”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“targeted”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“warnings”:0},
“faultingThread” : 0,
“threads” : [{“triggered”:true,“id”:170431,“instructionState”:{“instructionStream”:{“bytes”:[93,233,116,251,255,255,72,131,196,8,91,93,195,85,72,137,229,65,86,83,72,137,243,73,137,254,77,133,246,15,132,128,0,0,0,72,133,219,117,38,72,141,61,128,223,16,0,72,141,21,71,225,16,0,72,141,13,111,192,15,0,76,141,5,48,142,16,0,190,227,2,0,0,232,24,15,255,255,73,139,70,8,246,67,28,1,117,19,64,182,1,72,57,216,116,69,72,139,64,8,72,133,192,117,239,235,56,139,136,144,0,0,0,72,133,201,116,45,72,5,152,0,0,0,49,210,72,141,52,82,72,139,60,240,64,182,1,72,57,223,116,23,72,139,127,8,72,133,255,117,239,72,255,194,49,246,72,57,202,114,221,235,2,49,246,64,15,182,198,91,65,94,93,195,85,72,137,229,65,87,65,86,65,84,83,72,131,236,16,73,137,246],“offset”:96}},“threadState”:{“r13”:{“value”:140686518935024},“rax”:{“value”:0},“rflags”:{“value”:66183},“cpu”:{“value”:4},“r14”:{“value”:140686527676832},“rsi”:{“value”:140686544374273},“r8”:{“value”:7681},“cr2”:{“value”:8},“rdx”:{“value”:3353362427},“r10”:{“value”:140686529658880},“r9”:{“value”:63},“r15”:{“value”:105553164648000},“rbx”:{“value”:140686544374272},“trap”:{“value”:14,“description”:"(no mapping for user data read)"},“err”:{“value”:4},“r11”:{“value”:140686529827968},“rip”:{“value”:4468245164,“matchesCrashFrame”:1},“rbp”:{“value”:140701936777776},“rsp”:{“value”:140701936777760},“r12”:{“value”:4470384696,“symbolLocation”:4424,“symbol”:“gCurrentException”},“rcx”:{“value”:105553164648000},“flavor”:“x86_THREAD_STATE”,“rdi”:{“value”:140686527676832}},“queue”:“com.apple.main-thread”,“frames”:[{“imageOffset”:1725100,“symbol”:“RuntimeObjectIsa”,“symbolLocation”:83,“imageIndex”:0},{“imageOffset”:1797871,“symbol”:“RuntimeViewDestructor”,“symbolLocation”:142,“imageIndex”:0},{“imageOffset”:174892,“symbol”:“Window.__Exit%%o”,“symbolLocation”:12,“imageIndex”:1},{“imageOffset”:1724638,“symbol”:“RuntimeUnlockObject”,“symbolLocation”:792,“imageIndex”:0},{“imageOffset”:808040,“imageIndex”:0},{“imageOffset”:370282,“imageIndex”:0},{“imageOffset”:3814535,“symbol”:"__19-[NSWindow __close]_block_invoke",“symbolLocation”:153,“imageIndex”:2},{“imageOffset”:3814369,“symbol”:"-[NSWindow __close]",“symbolLocation”:284,“imageIndex”:2},{“imageOffset”:2373197,“symbol”:"-[NSApplication(NSResponder) sendAction:to:from:]",“symbolLocation”:288,“imageIndex”:2},{“imageOffset”:2372852,“symbol”:"-[NSControl sendAction:to:]",“symbolLocation”:86,“imageIndex”:2},{“imageOffset”:2372646,“symbol”:"__26-[NSCell _sendActionFrom:]_block_invoke",“symbolLocation”:131,“imageIndex”:2},{“imageOffset”:2372399,“symbol”:"-[NSCell _sendActionFrom:]",“symbolLocation”:171,“imageIndex”:2},{“imageOffset”:2372214,“symbol”:"-[NSButtonCell _sendActionFrom:]",“symbolLocation”:96,“imageIndex”:2},{“imageOffset”:2359524,“symbol”:“NSControlTrackMouse”,“symbolLocation”:1817,“imageIndex”:2},{“imageOffset”:2357671,“symbol”:"-[NSCell trackMouse:inRect:ofView:untilMouseUp:]",“symbolLocation”:121,“imageIndex”:2},{“imageOffset”:2357370,“symbol”:"-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]",“symbolLocation”:679,“imageIndex”:2},{“imageOffset”:2354248,“symbol”:"-[NSControl mouseDown:]",“symbolLocation”:678,“imageIndex”:2},{“imageOffset”:2347303,“symbol”:"-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]",“symbolLocation”:4949,“imageIndex”:2},{“imageOffset”:1773732,“symbol”:"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]",“symbolLocation”:2582,“imageIndex”:2},{“imageOffset”:1770606,“symbol”:"-[NSWindow(NSEventRouting) sendEvent:]",“symbolLocation”:352,“imageIndex”:2},{“imageOffset”:323262,“imageIndex”:0},{“imageOffset”:1763388,“symbol”:"-[NSApplication(NSEvent) sendEvent:]",“symbolLocation”:352,“imageIndex”:2},{“imageOffset”:256364,“imageIndex”:0},{“imageOffset”:4618251,“symbol”:"-[NSApplication _handleEvent:]",“symbolLocation”:65,“imageIndex”:2},{“imageOffset”:193406,“symbol”:"-[NSApplication run]",“symbolLocation”:623,“imageIndex”:2},{“imageOffset”:1710235,“symbol”:“RuntimeRun”,“symbolLocation”:40,“imageIndex”:0},{“imageOffset”:1409016,“symbol”:“REALbasic._RuntimeRun”,“symbolLocation”:24,“imageIndex”:1},{“imageOffset”:35615722,“symbol”:"_Main",“symbolLocation”:538,“imageIndex”:1},{“imageOffset”:35613265,“symbol”:“main”,“symbolLocation”:65,“imageIndex”:1},{“imageOffset”:5012,“symbol”:“start”,“symbolLocation”:52,“imageIndex”:1}]},{“id”:170491,“frames”:[{“imageOffset”:2806,“symbol”:“semaphore_wait_trap”,“symbolLocation”:10,“imageIndex”:3},{“imageOffset”:12664,“symbol”:"_dispatch_sema4_wait",“symbolLocation”:16,“imageIndex”:4},{“imageOffset”:13895,“symbol”:"_dispatch_semaphore_wait_slow",“symbolLocation”:98,“imageIndex”:4},{“imageOffset”:233535,“symbol”:“Firebird::SignalSafeSemaphore::enter()”,“symbolLocation”:31,“imageIndex”:5},{“imageOffset”:233022,“symbol”:"(anonymous namespace)::shutdownThread(void
)”,“symbolLocation”:62,“imageIndex”:5},{“imageOffset”:104217,“symbol”:"(anonymous namespace)::ThreadArgs::run()",“symbolLocation”:25,“imageIndex”:5},{“imageOffset”:103894,“symbol”:"(anonymous namespace)::threadStart(void*)",“symbolLocation”:86,“imageIndex”:5},{“imageOffset”:25876,“symbol”:"_pthread_start",“symbolLocation”:125,“imageIndex”:6},{“imageOffset”:8239,“symbol”:“thread_start”,“symbolLocation”:15,“imageIndex”:6}]},{“id”:170663,“frames”:[{“imageOffset”:8204,“symbol”:“start_wqthread”,“symbolLocation”:0,“imageIndex”:6}]},{“id”:170666,“frames”:[{“imageOffset”:8204,“symbol”:“start_wqthread”,“symbolLocation”:0,“imageIndex”:6}]},{“id”:170667,“name”:“com.apple.NSEventThread”,“frames”:[{“imageOffset”:2746,“symbol”:“mach_msg_trap”,“symbolLocation”:10,“imageIndex”:3},{“imageOffset”:3627,“symbol”:“mach_msg”,“symbolLocation”:59,“imageIndex”:3},{“imageOffset”:526914,“symbol”:"__CFRunLoopServiceMachPort",“symbolLocation”:319,“imageIndex”:7},{“imageOffset”:520475,“symbol”:"__CFRunLoopRun",“symbolLocation”:1325,“imageIndex”:7},{“imageOffset”:517421,“symbol”:“CFRunLoopRunSpecific”,“symbolLocation”:563,“imageIndex”:7},{“imageOffset”:1756396,“symbol”:"_NSEventThread",“symbolLocation”:132,“imageIndex”:2},{“imageOffset”:25876,“symbol”:"_pthread_start",“symbolLocation”:125,“imageIndex”:6},{“imageOffset”:8239,“symbol”:“thread_start”,“symbolLocation”:15,“imageIndex”:6}]},{“id”:171129,“frames”:[{“imageOffset”:8204,“symbol”:“start_wqthread”,“symbolLocation”:0,“imageIndex”:6}]},{“id”:171130,“frames”:[{“imageOffset”:8204,“symbol”:“start_wqthread”,“symbolLocation”:0,“imageIndex”:6}]}],
“usedImages” : [
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 4466520064,
“CFBundleShortVersionString” : “1.0”,
“CFBundleIdentifier” : “com.xojo.XojoFramework”,
“size” : 3547136,
“uuid” : “f6c813dd-3dc9-3aa8-8af9-57dbc3c8539a”,
“path” : “/Users/USER//bMD.app/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework",
“name” : “XojoFramework”,
“CFBundleVersion” : “2”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 4412010496,
“CFBundleShortVersionString” : “”,
“CFBundleIdentifier” : “com.bMD”,
“size” : 38789120,
“uuid” : “8148c9bb-a625-3e97-a2b9-373c6a31acc6”,
“path” : "/Users/USER/
/bMD.app/Contents/MacOS/bMD”,
“name” : “bMD”,
“CFBundleVersion” : “11.3.118.0.4”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703419699200,
“CFBundleShortVersionString” : “6.9”,
“CFBundleIdentifier” : “com.apple.AppKit”,
“size” : 15257600,
“uuid” : “dd0028a3-78e3-3a8a-a51b-ddd68123adef”,
“path” : “/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit”,
“name” : “AppKit”,
“CFBundleVersion” : “2113”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703374680064,
“size” : 225280,
“uuid” : “12bd6f13-c452-35ee-9069-51befef29f1a”,
“path” : “/usr/lib/system/libsystem_kernel.dylib”,
“name” : “libsystem_kernel.dylib”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703373123584,
“size” : 290816,
“uuid” : “be53a13c-8ce1-3e40-b9bc-98473d3eed3e”,
“path” : “/usr/lib/system/libdispatch.dylib”,
“name” : “libdispatch.dylib”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 4563677184,
“size” : 827392,
“uuid” : “e4c4b4fa-f846-32c5-ad64-cb4f173b1e2a”,
“path” : “/Users/USER/*/libfbclient.dylib”,
“name” : “libfbclient.dylib”
},
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 140703374905344,
“size” : 49152,
“uuid” : “29a2750e-f31b-3630-8761-242a6bc3e99e”,
“path” : “/usr/lib/system/libsystem_pthread.dylib”,
“name” : “libsystem_pthread.dylib”
},
{
“source” : “P”,
“arch” : “x86_64h”,
“base” : 140703375220736,
“CFBundleShortVersionString” : “6.9”,
“CFBundleIdentifier” : “com.apple.CoreFoundation”,
“size” : 5255168,
“uuid” : “3002b545-6841-3fc8-91a2-bcfbe5872465”,
“path” : “/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation”,
“name” : “CoreFoundation”,
“CFBundleVersion” : “1855.105”
},
{
“size” : 0,
“source” : “A”,
“base” : 0,
“uuid” : “00000000-0000-0000-0000-000000000000”
}
],
“sharedCache” : {
“base” : 140703371677696,
“size” : 15213641728,
“uuid” : “3d05845f-3f65-358f-9ebf-2236e772ac01”
},
“vmSummary” : “ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=682.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=682.4M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 640K 5 \nActivity Tracing 256K 1 \nCG backing stores 2528K 4 \nCG image 172K 8 \nCG raster data 16K 1 \nColorSync 236K 27 \nCoreAnimation 37.6M 32 \nCoreGraphics 12K 2 \nCoreUI image data 2068K 15 \nFoundation 16K 1 \nImage IO 5048K 7 \nKernel Alloc Once 8K 1 \nMALLOC 235.6M 79 \nMALLOC guard page 48K 12 \nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.0M 7 \nStack 14.5M 7 \nVM_ALLOCATE 264K 17 \n__DATA 30.4M 508 \n__DATA_CONST 28.1M 311 \n__DATA_DIRTY 1531K 199 \n__FONT_DATA 4K 1 \n__LINKEDIT 643.8M 31 \n__OBJC_RO 81.5M 1 \n__OBJC_RW 3120K 2 \n__TEXT 517.0M 520 \n__UNICODE 588K 1 \n__XOJO 104K 1 \ndyld private memory 2048K 3 \nmapped file 70.7M 25 \nshared memory 776K 16 \n=========== ======= ======= \nTOTAL 2.1G 1846 \nTOTAL, minus reserved VM space 1.7G 1846 \n”,
“legacyInfo” : {
“threadTriggered” : {
“queue” : “com.apple.main-thread”
}
},
“trialInfo” : {
“rollouts” : [
{
“rolloutId” : “601d9415f79519000ccd4b69”,
“factorPackIds” : {
“SIRI_TEXT_TO_SPEECH” : “6194416dea7ed64a7812a429”
},
“deploymentId” : 240000322
},
{
“rolloutId” : “5fc94383418129005b4e9ae0”,
“factorPackIds” : {

  },
  "deploymentId" : 240000162
},
{
  "rolloutId" : "607844aa04477260f58a8077",
  "factorPackIds" : {
    "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
  },
  "deploymentId" : 240000066
},
{
  "rolloutId" : "602ad4dac86151000cf27e46",
  "factorPackIds" : {
    "SIRI_DICTATION_ASSETS" : "614a34c5eae97a2111628dc5"
  },
  "deploymentId" : 240000271
},
{
  "rolloutId" : "5ffde50ce2aacd000d47a95f",
  "factorPackIds" : {

  },
  "deploymentId" : 240000076
},
{
  "rolloutId" : "60da5e84ab0ca017dace9abf",
  "factorPackIds" : {

  },
  "deploymentId" : 240000008
}

],
“experiments” : [

]
}
}

Model: MacBookPro13,3, BootROM 447.40.12.0.0, 4 processors, Quad-Core Intel Core i7, 2,6 GHz, 16 GB, SMC 2.38f12
Graphics: Intel HD Graphics 530, Intel HD Graphics 530, Built-In
Display: Color LCD, 2880 x 1800 Retina, Main, MirrorOff, Online
Graphics: Radeon Pro 450, AMD Radeon Pro 450, PCIe, 2 GB
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x15A), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1710.2)
AirPort:
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB30Bus
USB Device: Apple T1 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.5

In your code, maybe there is (folderitem <> nil) missing.
When using Folderitems, consider to do the following:
if (folderitem <> nil) and (folderitem.exists) then …

One of my apps that ran perfectly on all macOS versions crashed on Monterey. I tracked it down to a difference in the order of events in Monterey. Ie certain control.open events fired before other events and caused some uninitiated properties to trigger out of bounds and nil object exceptions. I solved the issue by initializing those properties on app startup rather than waiting for the events. You might have a look at those possible scenarios.

It looks like it’s trying to close a window that has already been closed, from clicking on a button.