Book a Demo

Author Topic: Possible C# code generation error  (Read 3387 times)

agavrilov

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Possible C# code generation error
« on: August 20, 2004, 03:16:45 pm »
The code generated by EA for C# always contains the destructor even though I unmarked the option 'Generate Finalizer' in Tools->Options->Generation->C# Specifications. Is it a bug or am I missing something?

AdamHearn

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Possible C# code generation error
« Reply #1 on: August 20, 2004, 07:12:39 pm »
Constructor/Destructor provision is controlled by Tools->Options->Generation->Object Lifetimes.

Jacques_Ronaldi

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Possible C# code generation error
« Reply #2 on: August 23, 2004, 12:26:35 pm »
Possibly you had generated it once. Synchronize the file, then delete the destructor from the operations list (or you can do it the other way around and delete it in the source code and then re-synchronize...)

This should fix it. Seems EA does not readily overwrite previously generated/edited stuff. For example, generate with a namespace, then remove the namespace from the code file. You won't be able to get the namespace back in the code until you delete the code file and re-generate it...