Commit 2c20362
committed
Fix JUCE app initialization in custom main()
Add forward declaration for juce_CreateApplication and set
JUCEApplicationBase::createInstance before calling main().
This is required for JUCE to properly create the application instance.
Previous commit caused segfaults because createInstance wasn't set.
https://claude.ai/code/session_01AY9chvBEmsCVjNZSUkNcbw1 parent 3ebb512 commit 2c20362
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
220 | 223 | | |
221 | 224 | | |
222 | 225 | | |
223 | | - | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
227 | | - | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
0 commit comments