# Any suggestions for stopping the Appgen from crashing when loading a template?

**URL:** <https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433>\
**Category:** questions\
**Tags:** ide, templates\
**Created:** [July 29, 2025, 5:14pm UTC](https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433 "2025-07-29T17:14:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [July 29, 2025, 5:14pm UTC](https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433/1 "2025-07-29T17:14:30Z")

</div>

Keep getting a consistent crash in the appgen when I try to load a template. Attached is the exception log, but cut the template back to basics and its still crashing, so dont know what else I can try?

I keep starting with a new app as well.

Attached is the C11 Exception log if its of any use.

[EXCEPTION-250729-180036.zip](https://clarionhub.com/uploads/short-url/z3bClNKPzRjrnK6DSzeZUuXcP0U.zip) (5.8 KB)

---

<div class="post-metadata">

**Author:** ![lodestar](https://clarionhub.com/user_avatar/clarionhub.com/lodestar/32/1055_2.png) [@lodestar](https://clarionhub.com/u/lodestar)\
**Post date:** [July 29, 2025, 5:39pm UTC](https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433/2 "2025-07-29T17:39:46Z")

</div>

Not much to go on. Exactly what template are attempting to use?

---

<div class="post-metadata">

**Author:** ![Marius\_Nel](https://clarionhub.com/user_avatar/clarionhub.com/marius_nel/32/2309_2.png) [@Marius\_Nel](https://clarionhub.com/u/Marius_Nel)\
**Post date:** [July 29, 2025, 6:58pm UTC](https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433/3 "2025-07-29T18:58:46Z")

</div>

Try deleting the “TemplateRegistry11.trf” file in the templates folder and re-register all your templates?

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [July 29, 2025, 7:17pm UTC](https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433/4 "2025-07-29T19:17:51Z")

</div>

> [@lodestar](#):
>
> Exactly what template are attempting to use?

```clarion
#TEMPLATE(IS_AssertDebugger,'IS Assert() Debugger - Attach the Debugger to a running Clarion Process'),FAMILY('ABC','CW20') 
#Extension(IS_AssertDebuggerGlobal,'IS_AssertDebuggerGlobal'), APPLICATION(IS_AssertDebuggerProc)
#Sheet,HScroll
#Tab('0&1 General')
    #Display('')
    #PROMPT('Enable Template',CHECK),%ISADEnableTemplate,At(10),Default(%True)
    #Enable(%ISADEnableTemplate = %True)
    #Boxed('')
    #Display('')
    #PROMPT('Application Alert() Key',Keycode),%ISADApplicationAlertKeycode,At(10),Default('CtrlD')
    #Display('')
    #EndBoxed
    #EndEnable
#EndTab
#Tab('0&2 Debug')
    #Display('')
    #Enable(%False) 
    #PROMPT('Enable Debug',CHECK),%ISADGlobalEnableDebug,At(10),Default(%True)
    #EndEnable
#EndTab
#Tab('0&3 About')
    #Display('')
    #Display('Copyright Richard Rose T/A Intelligent Silicon')
    #Display('')
#EndTab
#EndSheet

#Extension(IS_AssertDebuggerProc,'IS Assert() Debugger - Attach the Debugger to a running Clarion Process'),Procedure
#Sheet,HScroll
#Tab('0&1 General')
    #Display('')
    #Enable(%ISADEnableTemplate = %True)
    #Boxed('Procedure Template Settings')
    #Display('')
    #PROMPT('Disable Procedure Template',CHECK),%ISADDisableProcedureTemplate,At(10),Default(%False)
    #Display('')
    #Display('Application Alert() Key :' & %ISADApplicationAlertKeycode )
    #Display('')
    #PROMPT('Procedure Alert() Key',Keycode),%ISADDefaultAlertKeycode,At(10),Default('CtrlD')
    #Display('Clear to reset Procedure keycode.')
    #Display('')
    #EndBoxed
    #EndEnable
#EndTab
#Tab('0&2 Debug')
    #Display('')
    #Enable(%False)
    #PROMPT('Enable Debug',CHECK),%ISADProcedureEnableDebug,At(10),Default(%True)
    #EndEnable
#EndTab
#EndSheet

```

> [@Marius\_Nel](#):
>
> Try deleting the “TemplateRegistry11.trf” file in the templates folder and re-register all your templates?

Thats a good point, which I will try next.

This is the error message I get when I try to load an app with the template in.

> GEN: The application C:\C11 Examples\PEOPLE\people.app cannot be load. Probably it has an invalid format

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [July 29, 2025, 7:46pm UTC](https://clarionhub.com/t/any-suggestions-for-stopping-the-appgen-from-crashing-when-loading-a-template/8433/5 "2025-07-29T19:46:18Z")

</div>

Deleting all the templates and reloading them seemed to have done the trick.

Didnt have to delete the TRF.
