Bugs item #2868656, was opened at 2009-09-28 08:34
Message generated for change (Comment added) made by dannybackx
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2868656&group_id=173455

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: CeGCC (arm-wince-cegcc)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Rob Eggleton (rite)
Assigned to: Nobody/Anonymous (nobody)
Summary: virtual keyword causes exception?

Initial Comment:
Adding "virtual" to a simple method causes the following exception to be raised:

"Program: A.exe
Exception: 0xC00000FD
Address: 00000000"


This happens both on the emulator I'm using (Microsoft DeviceEmulator Manager 
9.0.21022.8) and on the real device (Intel XScale 400Mhz PXA 255).

The code being compiled is:

#include <iostream>


using std::cout;
using std::endl;


class Simple
{
public:
   Simple();
   virtual ~Simple();
};


Simple::Simple()
{
}

Simple::~Simple()
{
}


int
main()
{
   cout << "Strange?" << endl;
}


I'm compiling the code with

arm-wince-cegcc-g++ -o A.exe A.cpp

If I remove "virtual" from the destructor then the code runs without an 
exception. This happens for any method not just the destructor.

arm-wince-cegcc-g++ --version gives:

arm-wince-cegcc-g++ (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Any ideas?

----------------------------------------------------------------------

>Comment By: Danny Backx (dannybackx)
Date: 2009-10-01 18:49

Message:
The test below is with your executable on my iPAQ 214 running WM 6.0.

pavilion: {121} rcp A.exe ipaq:/temp
pavilion: {122} rsh ipaq /temp/A.exe
Strange
pavilion: {123} 

----------------------------------------------------------------------

Comment By: Rob Eggleton (rite)
Date: 2009-10-01 08:39

Message:
I've updated to 0.59.1 (and downloaded mpfr 2.4.1). Exactly the same thing
is happening. I've attached a tar ball of: the source, the output from
strace when compiling, the resultant .exe file and the build (go) script.
It's weird I have another app with a few thousand lines which all works
fine ... but as soon as I add "virtual" it fails.

----------------------------------------------------------------------

Comment By: Danny Backx (dannybackx)
Date: 2009-09-30 22:04

Message:
I cannot reproduce this, but I'm using the gcc-4.4 based software.
Could you pick up the latest release (0.59.1) and try it ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2868656&group_id=173455

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to