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
:confused:
Printable View
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
:confused:
What code is in the Form_Load ??
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 :confused:
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 ??
well I did something bad, I mean BAD :( :( :(
:D
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.:rolleyes:
It compiles, I mean it's just a nastly annoying error that comes up in the task list everytime I click on the form
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.
for your education this is what the line of code looks like where that error is probably coming from
:eek: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 ;)Quote:
Originally posted by Cander
for your education this is what the line of code looks like where that error is probably coming from
:eek:Code:
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 )
That is the address of the contructor in my Sub Main.
you wouldnt see that in your code. you would have to view it in the ildasm.exe