Results 1 to 9 of 9

Thread: Build Error

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Build Error

    When I open the main form of my app I get this erro in the task list, I cant figure out what it is
    Identifier '.cctor' is not valid.

    it says it's at line 0
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150
    What code is in the Form_Load ??

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    nothing in there, it's not from the code I guess, becuase when I click on the error, it doesnt bring up the code window or anything. It's probably something elso
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150
    dosn't make a lot of sense. I'm in teach myself mode with VB.NET (used VB2-6 since '92) but havn't had any sort of problems like this. does .cctor mean anything - have you done a search in code ??

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    well I did something bad, I mean BAD


    I added a new form and then I deleted the whole code in it(including the win designer form) and then I copied all the code from my main form to it and I SAVED it!!!! so I got a lot of problems, but I removed the second form and it worked fine. I just dont know why I should get that error thingie on my main form. And yes I have searched the code, there is no such a thing in the code.

    It compiles, I mean it's just a nastly annoying error that comes up in the task list everytime I click on the form
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    hmm..are you sure it say .cctor? it should be .ctor.

    .ctor is the Intermediate Language for the constructor definition.


    My guess would be you fubared something up big time and its not compiling to IL correctly. Try starting a new project and moving your code into it.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    for your education this is what the line of code looks like where that error is probably coming from

    Code:
     .custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 )


    That is the address of the contructor in my Sub Main.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  8. #8

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Cander
    for your education this is what the line of code looks like where that error is probably coming from

    Code:
     .custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 )


    That is the address of the contructor in my Sub Main.
    hmm where did you get that line from? I searched all the code for that cctor thingie and I cant find it. Also I', sure that it says cctor cuz I copy/pasted the error
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    you wouldnt see that in your code. you would have to view it in the ildasm.exe
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width