Recent

Author Topic: Solved. Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000  (Read 8129 times)

Hopestation

  • Full Member
  • ***
  • Posts: 181
Hi.

I am using Lazarus Version #: 1.2.6, FPC Version 2.6.4, SVN revision 46529 on Windows XP SP3.

I have written and compiled an application which works successfully, but it always shows a DOS window in the background.

I thought that the answer was Project Options, Config and Targets, where I checked Target-Specific Options.

When I next  compiled the program I got the message:

Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000

I went back to the Project Options and deselected Win32, but this made no difference.

Fortunately I had saved another copy of the project, so I still have a working version, but I would like to get rid of the DOS window.

I have searched for Error Type 24 without success. Where can I find a list of Error messages?

Thanks
« Last Edit: July 13, 2015, 07:39:19 pm by Hopestation »

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000
« Reply #1 on: July 12, 2015, 04:50:52 pm »
Hi.
I am using Lazarus Version #: 1.2.6, FPC Version 2.6.4, SVN revision 46529 on Windows XP SP3.
I have written and compiled an application which works successfully, but it always shows a DOS window in the background.
I thought that the answer was Project Options, Config and Targets, where I checked Target-Specific Options.
When I next  compiled the program I got the message:
Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000
I went back to the Project Options and deselected Win32, but this made no difference.
Fortunately I had saved another copy of the project, so I still have a working version, but I would like to get rid of the DOS window.
I have searched for Error Type 24 without success. Where can I find a list of Error messages?
Thanks
The socalled DOS-window, if you mean the terminal-window with black background,
you have to select Win32 GUI (-WG) in the
(project-)options -> compiler settings -> config and targets , ( i use a foreign version, so the titles could slightly differ)
But it's right where (below) you set the targets.
For the ressources, they are included with the
Code: [Select]
{$R *.res} directive.
Look for duplicate entries ... (but that's just a wild guess).
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

Hopestation

  • Full Member
  • ***
  • Posts: 181
Re: Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000
« Reply #2 on: July 13, 2015, 10:25:52 am »
Thanks for the answers.

It was ticking the "Win32 gui application (-WG)" box which caused the problem.

Once the error had occurred unticking it didn't remove the error. I searched for the error message on line but couldn't find anything about Lazarus error message, so I raise this query.

I realised that it would take a while to get an answer, so I went back to the problem and finally found that if I set the Target OS(-T) to Win32 and the Target CPU Family (-P) to i386 and checked the Win32 box again the error and the terminal window disappeared.

I tried to delete this query but got a message that I can't delete my own messages. (If I can't, who can?).

I didn't mark it as Solved as I still want to know, for other occasions, Where do I find a list of error message numbers and their meanings?

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000
« Reply #3 on: July 13, 2015, 02:39:17 pm »
I don't know exactly what you've done to get such an error, but this seems to be related in fact to the manifest resource.

The manifest resource file (i.e."standard" or"Vista+" for Lazarus) is defined in the Windows resource file as:
Code: [Select]
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifestfile.xml"which gives once "translated"
Code: [Select]
1 24 "manifestfile.xml"
See:
[...] Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 0000 [...]

Apparently, you've got 2 manifest resources for your application (with the same executable ID).
« Last Edit: July 13, 2015, 02:49:14 pm by ChrisF »

 

TinyPortal © 2005-2018