C11 LanguageBindingDescriptor (Null) when trying to use my own templates

So I can register my templates without any problem or error in C6 and C11.

But, in C11 if I try to create a new app, select one of my templates instead of Clarion or ABC I get this error message.

I dont have a problem creating a new app in C6 with any of my templates, but I do see the UnnamedApp[Hex].app when I create a new procedure and go to select a procedure template. Thats when the C6 IDE app filename window title changes to UnnamedApp[Hex].app

None of the suggestions from my previous question on LanguageBindingDescriptor (Null) turned up a solution either.

Anyone else encountered it since and found a solution?

TIA.

The output and/or errors pad may tell you more. But it sounds like a bug in the template.

Nothing in the output/errors pad.

If I try to import a C6 app, it just hangs during the conversion process as seen with the screen pic.

If I try to create a new app using a TXA from/of the C6 app it does something behind the scenes and then just cycles back to the window to create a new app.

I've even hacked the template back to basics, like removing the Target and Extension from #Module etc, in case it was fixed to Clarion or ABC, and .clw's, no joy.

Bit of a mystery this one.

Hey ho...

One approach that sometimes helps is to first create a new app, then import the txa into that. Then if theres an error in the txa it'll be reported in the errors pad.

As distinct from "creating a new app from txa" which doesnt report errors.

Done that, dont get any errors.

Literally I have zero clues to go on.

Next i break the txa into parts. Import gpoval stuf first, then some procs, and so on.

Yeah I'm gonna build a new template, start with adding a #Template, test in C11, then an #Application, test in C11, then #Program etc etc until I hit the problem.

But I suspect a hack I'm using in C6 might be causing the issue, although I've just this minute discovered another "bug" which doesnt throw an error message as such, so need to add some restrictions to stop the method from being used.

Just in the middle of rehashing the template builder components atm, changed the way some of it works, standardising the look and feel, adding in all missing template command options that I didnt need originally like help id's and more, adding in extra facilities to speed up writing templates to reach a base line. And then I can just import a list of programming commands & functions from other programming languages to automate the building of templates for that language.

I'll probably have another crack at trying to run it in C11 in a week or two's times if everything goes well.

So I knocked up a quick template last night from scratch, basic bare bone.

One thing I have noticed is the #Application Description #Application( 'Template Builder Framework' ) is not visible in the Template Registry when all the other descriptions are, but this is identical behaviour in C6.3 as well.

So go through the process of creating a new app.

I click OK to create the new App file, and it goes back to the New Solution, Project or Application window.

It creates these files:

The Redirection File has the entry...

*.tp? = "C:\C11 Work\TBFrameworkv1" ;

so it can find the template no problem, but it just goes back to this New Solution, Project or Application window with a testapp.ap~ file left open until I close the IDE, because I cant delete the file(s) and try again at creating a new solution until I close the IDE to release the file handle on testapp.ap~.

So I can go in a loop and try creating a new app again, this time answering the popup questions do I want to convert/alter/overwrite or whatever the messages are regarding the existing files, or I can click cancel and exit the IDE gracefully.

Yet the identical template works fine in C6, ie it creates an app, goes into the AppGen, with the todo procedure "main" visible, waiting for me to select a procedure.

So bit of mystery really. Something's changed between C6 and C11 but I dont know what.

Ok sort of got to the bottom of it.

Gone back to Dos 8.3 for a start, because Windows 11 by default has LongPathsEnabled disabled.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000000
"LongPathsEnabled"=dword:00000000 (disabled - Windows 11 default)
"LongPathsEnabled"=dword:00000001 (enabled)

C11 doesnt like

#Program( TBProg, 'TBF Program', 'Clarion','.CLW' ) 
#Module( TBMod, 'TBF Module', 'Clarion','.CLW' )
#Procedure( TBToDo, 'TBF ToDo', 'Clarion' ), Default 
#Procedure( TBProc, 'TBF Procedure', 'Clarion' ) 

but it does accept

#Program( TBProg, 'TBF Program' ) 
#Module( TBMod, 'TBF Module' )
#Procedure( TBToDo, 'TBF ToDo' ), Default 
#Procedure( TBProc, 'TBF Procedure' ) 

But looking at the ABC templates because they are not default Clarion templates, #Program doesnt use target and file extension, and some of the other #Procedure templates do and some dont.

So its pointing to #Program being the roadblock. Off to test...

#PROGRAM(ABC,'Default Program'),HLP('~TPLProgram.htm')
#MODULE(ExternalSource,'External Source Module','External','.clw'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#MODULE(ExternalObj,'External Object Module','External','.obj'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#MODULE(ExternalLib,'External Library Module (LIB)','External','.lib'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#MODULE(ExternalDLL,'External Dynamic Link Library (DLL)','External','.lib'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#PROCEDURE(Browse,'Browse Fields in a List Box'),WINDOW,REPORT,HLP('~TPLControlBrowseBox.htm#defaultbehavior'),PARENT(Window(ABC))
#PROCEDURE(External,'External Procedure','External'),HLP('~TPLProcExternal.htm')
#PROCEDURE(SourceClass,'Source Class','ClarionOOP'),WINDOW
#PROCEDURE(ToDo,'Procedure not yet defined'),DEFAULT
#PROCEDURE(UserControlClass,'UserControlClass','ClarionOOP'),WINDOW,PARENT(SourceClass(ABC))
#PROCEDURE(Window,'Generic Window Handler'),WINDOW,REPORT,HLP('~tplprocwindow.htm')

I wrote templatebuilder so it filled in all omittable defaults, which is why things like 'Clarion','.CLW' is added automatically, to help occasional users and newbies pick things up more quickly, and hardware is just that much more capable today with big wide monitors, and not tiny 80 column green screens or orange screens...

Yep, this is wrong

#PROGRAM( name, description [, target, extension ] ) [, HLP( helpid ) ]

It only accepts

#PROGRAM( name, description ) [, HLP( helpid ) ]

Add the Widescreen option remembers its setting as well between IDE sessions.

<WideAppgenDialogs value="False" />


Its just a shame theres no token or symbol to say whether this is set to true or false, so I'll just have to knock out a dll to look up the setting.

And LongPathsEnabled can remain disabled, without affecting long names in the templates. Thats good.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000000