Linker Error While Emitting Metadata
03/10/11 11:41:25 am, by Nimble , 185 words Categories: Programming E2328 Linker error while emitting metadata There are few things more fun than topping off a righteously sweaty code refactoring session with a particularly rare and un-to-underdocumented linker error. I ran into this in CodeGear RAD Studio 2007 on the Delphi for .NET side. It was different than the small handful of problems I saw other people run into, and since I managed to track it down to a particular line, I thought I would share it. My encounter with this linker error happened when using a named constant set, e.g. const
FIELD_BLOB_TYPES : set of MyFieldType = [mftBinary, mftGraphic, mftDiagram, mftAttachments] The code that caused the explosion simply used the type: if Attribute.ValueType in FIELD_BLOB_TYPES then
... Replacing it with the full set fixed the issue: if Attribute.ValueType in [mftBinary, mftGraphic, mftDiagram, mftAttachments] then
... Note that using this code construct is no guarantee that this linker issue will happen - I actually use this construct in other parts of my code with no problem - but if you do run into this weird linker error, this may be the straw that is breaking the camel's back. Hopefully, I can save someone out there from the frustration. Permalink 1 comment Comment from: Ritchie Annand [Visitor] One other way it can happen is when something is holding onto the existing .pdb file. Today, it occurred because I was running AQTime elsewhere, but the project still was set to look up debug information in my output folder. I thought it would just read the files; I did not think it would hold onto them. So, try to delete your .pdb files if you get this error, especially if it suddenly starts happening when it never has before. 02/02/12 @ 12:27 This section can only be displayed by javascript enabled browsers. Comment feed for this post October 2016 Sun Mon Tue Wed Thu Fri Sat <<< >>> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Output Stream of ConsciousnessRitchie Annand's blog of everything except sports (...and who knows? I may break that rule some day)HomeRecentlyArchivesCategoriesLatest commentsSearchCategoriesAllAnnouncements [A]DistractionsJournalReviewsAttractionsBooksEconomicsFictionGardeningLanguagesPoliticsReligionScienceCookingGamesGardeningLow-CarbMoviesProgrammingRestaurantsStoresTelevisionToysTradesmenThoughtsCommon SenseCookingEthicsInternetSpammingLanguagesPeoplePoliticsProgrammingReligionScienceTravelBl
Send feedback!
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten
AAARGH - [DCC Error] E2328 Linker error while emitting metadata Subject: AAARGH - [DCC Error] E2328 Linker error while emitting metadata Posted by: Andy Teal (ate…@denford.co.uk) Date: Fri, 15 Feb 2008 I got this message after adding a couple of lines to my Delphi .net application (rad studio 2007 december updates) I removed the lines - no change Shut down and restarted the PC - it STILL appears after compiling - what has caused this error and more importantly, how do I fix it ? Best regards, AndyReplies Re: AAARGH - [DCC Error] E2328 Linker error while emitting metadata posted by Andy Teal on Fri, 15 Feb 2008 Re: AAARGH - [DCC Error] E2328 Linker error while emitting metadata posted by Andy Teal on Fri, 15 Feb 2008 Newsgroups.Archived.At is © Copyright 2009-2016, A B Cryer, All Rights Reserved.