DiagnosticReports .spin

One of my apps uses a thread to call a shell.
It work fine. But today I found out it always creates a DiagnosticReport with .spin extension:
When I launch the shell outside a thread, the report is not created.

Anyone a clue why?

This is found in the Console:
Aug 17 09:08:14 Xtophes-MacBook-Pro.local spindump[1292]: Saved wakeups_resource.spin report for Test.debug version 0.0.79 (0.0.79.1.0) to /Library/Logs/DiagnosticReports/Test.debug_2014-08-17-090814_Xtophes-MacBook-Pro.wakeups_resource.spin
Aug 17 09:08:15 Xtophes-MacBook-Pro.local ReportCrash[1366]: Invoking spindump for pid=1361 wakeups_rate=4029 duration=12 because of excessive wakeups
Aug 17 09:08:15 Xtophes-MacBook-Pro.local spindump[1367]: Error loading dyld shared cache uuid 00000000-0000-0000-0000-000000000000: 0x8

This is the content of the .spin report file:

Date/Time: 2014-08-17 09:08:05 +0200
OS Version: 10.9.4 (Build 13E28)
Architecture: x86_64
Report Version: 18

Command: Test.debug
Path: /Volumes/VOLUME/*/Test.debug.app/Contents/MacOS/Test.debug
Version: 0.0.79 (0.0.79.1.0)
Parent: launchd [138]

PID: 1287
Event: wakeups (microstackshots only)
Wakeups: 5390 wakeups per second for 9 seconds
Duration: 9.00s
Steps: 7

Hardware model: MacBookPro11,3
Active cpus: 8
Fan speed: 2185 rpm

Powerstats for: Test.debug [1287]
Start time: 2014-08-17 09:08:12 +0200
End time: 2014-08-17 09:08:12 +0200
Parent: launchd
Microstackshots: 1 samples (14%)
Primary state: 1 samples Frontmost App, Non-Background Priority, User mode
User Activity: 0 samples Idle, 1 samples Active
Power Source: 1 samples on Battery, 0 samples on AC
1 start + 43 (Test.debug) [0xf05af9]
1 _start + 116 (Test.debug) [0xf05ba3]
1 % main + 36 (Test.debug) [0x2594]
1 _Main + 257 (Test.debug) [0xfa94]
1 REALbasic._RuntimeRun + 34 (Test.debug) [0x168850]
1 RuntimeRun + 49 (XojoFramework) [0x129f021]
1 ??? (XojoFramework + 1157527) [0x12a0997]
1 -[NSApplication run] + 727 (AppKit) [0x9253815c]
1 ??? (XojoFramework + 161728) [0x11ad7c0]
1 ??? (XojoFramework + 1157393) [0x12a0911]
1 Application._CallFunctionWithExceptionHandling%%op + 248 (Test.debug) [0x8f730]
1 Delegate.Invoke%% + 34 (Test.debug) [0xfc29]
1 ??? (XojoFramework + 161944) [0x11ad898]
1 ??? (XojoFramework + 161841) [0x11ad831]
1 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119 (AppKit) [0x92545870]
1 _DPSNextEvent + 1602 (AppKit) [0x92546349]
1 _BlockUntilNextEventMatchingListInModeWithFilter + 92 (HIToolbox) [0x9be596bd]
1 ReceiveNextEventCommon + 526 (HIToolbox) [0x9be598e2]
1 RunCurrentEventLoopInMode + 259 (HIToolbox) [0x9be59b5d]
1 CFRunLoopRunInMode + 123 (CoreFoundation) [0x9bb1284b]
1 CFRunLoopRunSpecific + 394 (CoreFoundation) [0x9bb129ea]
1 __mtx_markprepost + 208 (libsystem_pthread.dylib) [0x9042379c]

Binary Images:
0x1000 - 0xfcae16 com.bytes.Test 0.0.79 (0.0.79.1.0) <2A6E4EE6-E90B-3FF4-8724-E71F0FE74613> /Volumes/VOLUME//Test.debug.app/Contents/MacOS/Test.debug
0x1186000 - 0x12f0ffd com.xojo.XojoFramework 1.0 (1) <06BC4447-FF00-3DA7-92BC-2FE7D2C17103> /Volumes/VOLUME/
/Test.debug.app/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework
0x9041f000 - 0x90426ffb libsystem_pthread.dylib (53.1.4) /usr/lib/system/libsystem_pthread.dylib
0x9251e000 - 0x9313cff3 com.apple.AppKit 6.9 (1265.21) <1D31697B-6F33-3239-BACE-5D1361B1F79A> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x9ba9d000 - 0x9bc9ffff com.apple.CoreFoundation 6.9 (855.17) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x9be2e000 - 0x9c1a3ff9 com.apple.HIToolbox 2.1.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox

Powerstats for: makeiso
Start time: 2014-08-17 09:08:06 +0200
End time: 2014-08-17 09:08:13 +0200
Microstackshots: 6 samples (85%)
Primary state: 6 samples Non-Frontmost App, Non-Background Priority, User mode
User Activity: 0 samples Idle, 6 samples Active
Power Source: 6 samples on Battery, 0 samples on AC
1 ??? [0x1109b102a]
1 ??? (makeiso + 11940052) [0x1083e50d4]
1 x264_macroblock_analyse + 11759 (makeiso) [0x108394e4f]
1 x264_pixel_sad_x3_4x4_mmx2 + 31 (makeiso) [0x10841932f]
1 ??? [0x1114d802a]
1 ??? (makeiso + 11940052) [0x1083e50d4]
1 x264_macroblock_analyse + 11952 (makeiso) [0x108394f10]
1 ??? (makeiso + 11693948) [0x1083a8f7c]
1 ??? [0x111713029]
1 ??? (makeiso + 11940152) [0x1083e5138]
1 x264_macroblock_encode + 16793 (makeiso) [0x1083cd9f9]
1 x264_sub8x8_dct_dc_sse2 + 34 (makeiso) [0x1083f3352]
1 ??? [0x111713025]
1 ??? (makeiso + 11940052) [0x1083e50d4]
1 x264_macroblock_analyse + 36404 (makeiso) [0x10839ae94]
1 x264_pixel_satd_16x8_internal_avx2 + 79 (makeiso) [0x10840e11f]
1 x264_hadamard_ac_8x8_avx2 + 409 (makeiso) [0x10840dae9]
1 ??? (ffm makeiso peg + 11684567) [0x1083a6ad7]

Binary Images:
0x107882000 - 0x108cc9faf makeiso (0) /Users/USER/Library/Application Support/Test/makeiso

Found the problem.
It seems I called app.YieldToNextThread too much.