473,473 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

compiler problem....

ask
Hi NG

I encountered a wierd problem I cant seem to solve. I have a local function
wich I call with an integer (0), but as soon as I step into the local
function the integer changes value (-858993460). I use the new MS Dev. Env.
2003.

The code looks like this:

=== header file
class CABComparisonListControl
{
public:
void initControls();
....
private:
void reloadSettingsList( int indx );
....
}

=== cpp file
void CABComparisonListControl::reloadSettingsList( int indx )
{
signed int tmp = RationaleIndx;
....
}

=== calling the local function
void CABComparisonListControl::initControls()
{
....
reloadSettingsList ( 0 );
....
}

Problem:
When I call the "reloadSettingsList" from "initControls()" the "int indx"
changes value from zero to -858993460. When I debug into the
"reloadSettingsList" the "int indx" is zero at the first line, but entering
the actual function "indx" becomes invalid. Following is the assembly, the
"indx" changes value at "01EB6E82 rep stos dword ptr [edi]":

=== assembly of
void CABComparisonListControl::reloadSettingsList( int indx )
{
01EB6E50 push ebp
01EB6E51 mov ebp,esp
01EB6E53 push 0FFFFFFFFh
01EB6E55 push offset
__ehhandler$?reloadSettingsList@CABComparisonListC ontrol@@AAEXH@Z (1F67FF0h)
01EB6E5A mov eax,dword ptr fs:[00000000h]
01EB6E60 push eax
01EB6E61 mov dword ptr fs:[0],esp
01EB6E68 sub esp,1E8h
01EB6E6E push ebx
01EB6E6F push esi
01EB6E70 push edi
01EB6E71 push ecx
01EB6E72 lea edi,[ebp-1F4h]
01EB6E78 mov ecx,7Ah
01EB6E7D mov eax,0CCCCCCCCh
01EB6E82 rep stos dword ptr [edi]
01EB6E84 pop ecx
01EB6E85 mov dword ptr [ebp-14h],ecx
signed int tmp = RationaleIndx;
....

Well... I tried rebuilding the whole solution, cleaning various projects
etc. Does this look like a compiler error?

Thnx.
Ask
Nov 16 '05 #1
1 1535
ask
Hi again...

Reboot windoze .... tsk tsk

:)

"ask" <a@creepREM.dk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi NG

I encountered a wierd problem I cant seem to solve. I have a local function wich I call with an integer (0), but as soon as I step into the local
function the integer changes value (-858993460). I use the new MS Dev. Env. 2003.

The code looks like this:

=== header file
class CABComparisonListControl
{
public:
void initControls();
...
private:
void reloadSettingsList( int indx );
...
}

=== cpp file
void CABComparisonListControl::reloadSettingsList( int indx )
{
signed int tmp = RationaleIndx;
...
}

=== calling the local function
void CABComparisonListControl::initControls()
{
...
reloadSettingsList ( 0 );
...
}

Problem:
When I call the "reloadSettingsList" from "initControls()" the "int indx"
changes value from zero to -858993460. When I debug into the
"reloadSettingsList" the "int indx" is zero at the first line, but entering the actual function "indx" becomes invalid. Following is the assembly, the
"indx" changes value at "01EB6E82 rep stos dword ptr [edi]":

=== assembly of
void CABComparisonListControl::reloadSettingsList( int indx )
{
01EB6E50 push ebp
01EB6E51 mov ebp,esp
01EB6E53 push 0FFFFFFFFh
01EB6E55 push offset
__ehhandler$?reloadSettingsList@CABComparisonListC ontrol@@AAEXH@Z (1F67FF0h) 01EB6E5A mov eax,dword ptr fs:[00000000h]
01EB6E60 push eax
01EB6E61 mov dword ptr fs:[0],esp
01EB6E68 sub esp,1E8h
01EB6E6E push ebx
01EB6E6F push esi
01EB6E70 push edi
01EB6E71 push ecx
01EB6E72 lea edi,[ebp-1F4h]
01EB6E78 mov ecx,7Ah
01EB6E7D mov eax,0CCCCCCCCh
01EB6E82 rep stos dword ptr [edi]
01EB6E84 pop ecx
01EB6E85 mov dword ptr [ebp-14h],ecx
signed int tmp = RationaleIndx;
...

Well... I tried rebuilding the whole solution, cleaning various projects
etc. Does this look like a compiler error?

Thnx.
Ask

Nov 16 '05 #2

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

Similar topics

6
by: paul calvert | last post by:
I hope somewhere here has encountered and solved a similar problem in the past. 1) on a new Win2000 PC: installed Visual C++ 6.0 download & install single file Service Pack 5.0 2) try to...
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...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
0
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
4
by: David Sworder | last post by:
Consider the following line of code (it's not important what it does): resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase); It turns out that this line is in error. The...
6
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep...
19
by: David W | last post by:
float nanometers(long pm) { return pm / 1000.0f; } void f() { if(nanometers(309311L) == nanometers(309311L)) { // do something }
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
0
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,...
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,...
1
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...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.