473,769 Members | 4,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1575
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********@ntl world.com> a écrit dans le message de
news:eY******** ********@TK2MSF TNGP14.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******** **********@tk2m sftngp13.phx.gb l...
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********@ntl world.com> a écrit dans le message de
news:eY******** ********@TK2MSF TNGP14.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*****@discus sions.microsoft .com> wrote in message
news:2B******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:2B******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:CC******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:2B******** *************** ***********@mic rosoft.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
20706
by: Acacia | last post by:
How would you generate a random number in C++?
2
1353
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 declaration - the compiler completes successfully for a while - then it happens again. Has anyone else experienced this annoying problem ? I'm running VB under 1.1
8
1902
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 much interest. But it's driving me nuts. Here's what happens. I'm working on a multi project VB app. happily writing nice inoffensive code - go to compile and the compiler tells me there's a problem in a project I'm not working on. But really...
16
4228
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 shelled out on VC++ 6.0 compiling that same code is proving difficult. I am not too worried how I generate random numbers in c++, as long as it is sufficiently random. Can anybody help me out in getting what I want from VC++?
9
3853
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 memory leaks too. How can i track these down ?
70
6280
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 using the high-order bits returned by rand() instead of the low-order bits, avoiding using rand() for anything that wants decently random numbers, not using rand() if you want more than approx. UINT_MAX total different sequences, and so on. So I...
5
261
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 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...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.