Can't shake that "Cannot open icon file." error message (CTD2000)

forum.gupta.bugreport (2005-2010)
James McCall

Can't shake that "Cannot open icon file." error message (CTD2000)

Post by James McCall » 18 Feb 2008, 17:54

 Posted by:  James McCall 

Here's a strange problem in CTD2000 that may well have propogated through
the versions ...

1. I created two form window classes and assigned an icon file to one of
them, leaving the other class's icon file as (class default).
2. I then created an instance of each, compiled & saved without problem.
3. I went back to the classes and set the icon file back to (class default).
4. Now the app will not compile - I get a "Cannot open icon file." error on
the form whose class once had an icon file assigned.

It seems that (class default) means "find an icon file you may think you
might once have had in a base class"!

See attached file for sample - inspect the properties of the two form window
classes & you will see that they are the same, ditto for the two forms. The
only difference is that I once assigned the icon "qm.ico" to the class
"cfwBase_OnceHadAnIcon" - information which is not visible to the developer.

Just another "gottcha" from TD. Anyone with later versions curious as to
whether it is still in TD? Just try steps 1-4 on a new app.

James McCall

You do not have the required permissions to view the files attached to this post.

James McCall

Re: Can't shake that "Cannot open icon file." error message (CTD2000)

Post by James McCall » 18 Feb 2008, 18:38

 Posted by:  James McCall 

This also raises the question: why is "Cannot open icon file." such a bad
error that it prevents a successful compile? in fact it stops it dead in its
tracks!

RainerE
Germany
Posts: 2253
Joined: 27 Apr 2021, 12:40
Location: Germany

Re: Can't shake that "Cannot open icon file." error message (CTD2000)

Post by RainerE » 19 Feb 2008, 10:01

 Posted by:  Rainer Ebert 

Open the file in a text editor (e.g. notepad) and change "(class default)"
for the icon file of cfwBase_OnceHadAnIcon to an empty string. Than you can
compile the program.

Regards Rainer

James McCall

Re: Can't shake that "Cannot open icon file." error message (CTD2000)

Post by James McCall » 19 Feb 2008, 20:47

 Posted by:  James McCall 

Thanks Rainer.

Return to “gupta.bugreport”

Who is online

Users browsing this forum: No registered users and 0 guests