Clarion 10 can't open Window Designer (Ctrl+D)

I installed C10 on a new Win 11 pro machine and everything was working properly.

I went to format a window (Ctrl+D) and the window had some old code in it that used an equate in the NAME() attribute of the Application. Instead of having a string in the code I had an equate instead. See code example below.

I can no longer press Ctrl+D since Clarion errors out on any format of a window (Ctrl+D).

I have uninstalled Clarion and reinstalled to no avail. Any other ideas you can throw my way to get C10 to format windows?

Errors upon pressing Ctrl+D:

The offending code that caused Clarion to fail.

Prior to formatting this code, Ctrl+D did work properly. I have seen this before I think. The only other thing I am thinking is that something in the windows registry is screwed up.

I think the issue will likely be with the ClarionProperties.xml in the configuration directory.
Go to Tools->Open Configuration Directory in the IDE.
Close the IDE
rename the Config folder from 10.0 to some like 10.0Bad.
Restart the IDE, you’ll need to enter your registration information again.

See what that does.

I’ll give that a try and report back here, Rick. Thanks Mate!

Does it open ok if you don’t have the GHEADING Equate i.e. change to APPLICATION('This is my Menu as a Literal String') ?

If Yes then change it to be text APPLICATION('runtime = GHEADING')
then at runtime after the Open(Menu)
have code like Menu{PROP:Text}=GHEADING

Your ICON( ‘C:\Dev..’) has a Full Path. I prefer not to do that as it seems problem prone. I cannot recall all, but for one it makes it hard to move the code to a different machine. Instead you could add that Path for *.ico to your Default RED file, then just have ICON('HDC.Ico').

1 Like

Thanks for your help, guys.

I succeeded in corrupting my “user” directory where the “ClarionProperties.xml” files was located. My bad for changing the “rights” on the directory that would have allowed me to do the steps that Rick suggested.

I’ll have to reinstall windows now that I messed up the user directory. No big thing. It was a brand new development computer.

If I decide to redevelop my food banks software in Clarion (versus Microsoft Access) then I will get the cheapest current Clarion available and trash V10. It had many issues to it that have been fixed since then.

Thanks again for your help!

You’re solution, Rick saved the day! Thanks Man!

Your right to point out those issues, Carl. I did an old “copy and paste” source code from an old project to get it up and running without regard to embedded paths.

So, the moral of the story is never use an EQUATE’ed string in place of the NAME attribute of a window or an application. The Window formatter has no idea what the EQUATE’ed string is and blows up the system.

Once I restored windows and got my user directory cleaned up, C10 works like a champ!

Thanks, Dudes!

1 Like