473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Random Compiler Errors

Hi,

I get random errors raised when compiling a multi-project application. For
example the compiler will claim that a class has no constructor when it
does. If I replace the first line of the constructor with the same code ( or
just re-load VS) and then recompile things are OK for a while but then the
spurious error comes back. The same sort of random behaviour can occur
anywhere in my app. - basically the compiler doesn't "see" a line of code.

Has anyone else experienced this irritating behaviour ? I'm using framework
v1.1

Thanks for any help.

Jon
Jul 21 '05 #1
6 1547
The next time I would do an hexadecimal dump of this portion of code. My
though is that the source file contains some special character that is not
handled by the compiler...

--

"jon morgan" <jo********@ntlworld.com> a écrit dans le message de
news:eY****************@TK2MSFTNGP14.phx.gbl...
Hi,

I get random errors raised when compiling a multi-project application. For
example the compiler will claim that a class has no constructor when it
does. If I replace the first line of the constructor with the same code ( or just re-load VS) and then recompile things are OK for a while but then the spurious error comes back. The same sort of random behaviour can occur
anywhere in my app. - basically the compiler doesn't "see" a line of code.

Has anyone else experienced this irritating behaviour ? I'm using framework v1.1

Thanks for any help.

Jon

Jul 21 '05 #2
Thanks Patrice - I tried that with Winhex. There's nothing wrong with the
lines the compiler zaps. And remember it doesn't always zap the same lines.
This is a genuinely random error that
can occur anywhere in my code although on reflection it does tend to be the
first line of a member that's zapped.

Jon

"Patrice" <no****@nowhere.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
The next time I would do an hexadecimal dump of this portion of code. My
though is that the source file contains some special character that is not
handled by the compiler...

--

"jon morgan" <jo********@ntlworld.com> a écrit dans le message de
news:eY****************@TK2MSFTNGP14.phx.gbl...
Hi,

I get random errors raised when compiling a multi-project application.
For
example the compiler will claim that a class has no constructor when it
does. If I replace the first line of the constructor with the same code

( or
just re-load VS) and then recompile things are OK for a while but then

the
spurious error comes back. The same sort of random behaviour can occur
anywhere in my app. - basically the compiler doesn't "see" a line of
code.

Has anyone else experienced this irritating behaviour ? I'm using

framework
v1.1

Thanks for any help.

Jon


Jul 21 '05 #3
I have seen this before. Open Configuration Manager and make sure the Build
checkbox is checked for all projects. I have seen these get unchecked for no
apparent reason.

"jon morgan" wrote:
Hi,

I get random errors raised when compiling a multi-project application. For
example the compiler will claim that a class has no constructor when it
does. If I replace the first line of the constructor with the same code ( or
just re-load VS) and then recompile things are OK for a while but then the
spurious error comes back. The same sort of random behaviour can occur
anywhere in my app. - basically the compiler doesn't "see" a line of code.

Has anyone else experienced this irritating behaviour ? I'm using framework
v1.1

Thanks for any help.

Jon

Jul 21 '05 #4
Thanks but , again, I just don't think this is the answer. I haven't noticed
any erratic behaviour in the build pattern - at one stage I was over 30
projects and they were all getting built. I've now rationalised down to 10
but it hasn't affected the random compiler behaviour.

Jon

"gui_guru" <gu*****@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com...
I have seen this before. Open Configuration Manager and make sure the Build
checkbox is checked for all projects. I have seen these get unchecked for
no
apparent reason.

"jon morgan" wrote:
Hi,

I get random errors raised when compiling a multi-project application.
For
example the compiler will claim that a class has no constructor when it
does. If I replace the first line of the constructor with the same code
( or
just re-load VS) and then recompile things are OK for a while but then
the
spurious error comes back. The same sort of random behaviour can occur
anywhere in my app. - basically the compiler doesn't "see" a line of
code.

Has anyone else experienced this irritating behaviour ? I'm using
framework
v1.1

Thanks for any help.

Jon

Jul 21 '05 #5
I gather from you reply that all the projects have the Build checkboxs
checked. Are any of the assemblies installed in the GAC? If so, it is
possible that the complier is looking at the GAC version instead of your
code. The next time it happens, try rebuilding the assemblies (without
changing any code) and then try running it again.

"jon morgan" wrote:
Thanks but , again, I just don't think this is the answer. I haven't noticed
any erratic behaviour in the build pattern - at one stage I was over 30
projects and they were all getting built. I've now rationalised down to 10
but it hasn't affected the random compiler behaviour.

Jon

"gui_guru" <gu*****@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com...
I have seen this before. Open Configuration Manager and make sure the Build
checkbox is checked for all projects. I have seen these get unchecked for
no
apparent reason.

"jon morgan" wrote:
Hi,

I get random errors raised when compiling a multi-project application.
For
example the compiler will claim that a class has no constructor when it
does. If I replace the first line of the constructor with the same code
( or
just re-load VS) and then recompile things are OK for a while but then
the
spurious error comes back. The same sort of random behaviour can occur
anywhere in my app. - basically the compiler doesn't "see" a line of
code.

Has anyone else experienced this irritating behaviour ? I'm using
framework
v1.1

Thanks for any help.

Jon


Jul 21 '05 #6
Thanks, but no I don't have any of my assemblies GACed. Again just to repeat
an example: I do some work in one project, and go to rebuild my solution.
The compiler tells me that a class in a different project in the solution
does not have a constructor. If I delete the first line of the constructor
and re-instate it the compiler error disappears. Alternatively if I exit and
reboot VS and all is well.

Weird or what ...
"gui_guru" <gu*****@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
I gather from you reply that all the projects have the Build checkboxs
checked. Are any of the assemblies installed in the GAC? If so, it is
possible that the complier is looking at the GAC version instead of your
code. The next time it happens, try rebuilding the assemblies (without
changing any code) and then try running it again.

"jon morgan" wrote:
Thanks but , again, I just don't think this is the answer. I haven't
noticed
any erratic behaviour in the build pattern - at one stage I was over 30
projects and they were all getting built. I've now rationalised down to
10
but it hasn't affected the random compiler behaviour.

Jon

"gui_guru" <gu*****@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com...
>I have seen this before. Open Configuration Manager and make sure the
>Build
> checkbox is checked for all projects. I have seen these get unchecked
> for
> no
> apparent reason.
>
> "jon morgan" wrote:
>
>> Hi,
>>
>> I get random errors raised when compiling a multi-project application.
>> For
>> example the compiler will claim that a class has no constructor when
>> it
>> does. If I replace the first line of the constructor with the same
>> code
>> ( or
>> just re-load VS) and then recompile things are OK for a while but
>> then
>> the
>> spurious error comes back. The same sort of random behaviour can occur
>> anywhere in my app. - basically the compiler doesn't "see" a line of
>> code.
>>
>> Has anyone else experienced this irritating behaviour ? I'm using
>> framework
>> v1.1
>>
>> Thanks for any help.
>>
>> Jon
>>
>>
>>


Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Acacia | last post by:
How would you generate a random number in C++?
2
by: jon morgan | last post by:
Hi, Recently I've started to get random compile errors. What happens is that the compiler "pretends" a Sub or Function in my code doesn't exist. If I delete and re-insert the Sub/Function...
8
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting...
16
by: Jason | last post by:
Hi, I need a way to use random numbers in c++. In my c++ project, when using the mingw compiler I used a mersenne twister that is publicly available and this did its job well. Now I have...
9
by: greeningster | last post by:
I have written an application in Visual C++ for a customer but it seems to crash randomly. Could anyone give me any help on how I could track this down ? Also, there appears there might be...
70
by: Ben Pfaff | last post by:
One issue that comes up fairly often around here is the poor quality of the pseudo-random number generators supplied with many C implementations. As a result, we have to recommend things like...
5
by: jon morgan | last post by:
Hi, I get random errors raised when compiling a multi-project application. For example the compiler will claim that a class has no constructor when it does. If I replace the first line of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.