Author |
Topic |
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Sep 07 2005 : 12:26:06 PM
|
Hi,
I was pasting a copying a class member initializer list into some function block and got this exception and call stack:
--------------------------- msdev.exe - Application Error --------------------------- The exception Breakpoint
A breakpoint has been reached.
(0x80000003) occurred in the application at location 0x1edbab96.
Click on OK to terminate the program Click on CANCEL to debug the program --------------------------- OK Cancel ---------------------------
> VA_X.dll!1edbab96() ntdll.dll!7c82f9dd() VA_X.dll!1ee3bfa2() VA_X.dll!1ee3bfa7() ntdll.dll!7c8300c6() ntdll.dll!7c82f9dd() VA_X.dll!1ed01d57() ntdll.dll!7c82f9dd() VA_X.dll!1ee3bfa2() VA_X.dll!1ee3bfa7() VA_X.dll!1ee3bfa7() VA_X.dll!1edcb05b() VA_X.dll!1ed6da7d() VA_X.dll!1edbfe50() VA_X.dll!1edbdc3d()
The copy and paste was similar to this:
// _a1, _a2, _b1 and _b2 are of type short A::A(long a, long b) : _a1(a >> 16), _a2(a & 0xffff), _b1(b >> 16), _b2(b & 0xffff) { }
void A::Set(long a, long b) { _a1 = a; // I copied the above initializer from "a >> 16" up to "b & 0xffff" into the clipboard Ctrl+C // I selected the a above without ; and pasted the clipboard // I could see the resulting // _a1 = a >> 16), _a2(a & 0xffff), _b1(b >> 16), _b2(b & 0xffff; // I tried to reposition the cursor with the mouse bit VC++ hang and than I got the above exception }
I hope that helps to trace the problem, SvenC
VA_X.dll file version 10.1.1421.0 built 2005.08.30 Platform: Win32 (x86) Stable Includes: E:\\Program Files\\Microsoft SDK\\include; E:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE; E:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE; E:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE; E:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
Library Includes: E:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC; E:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE; E:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE; E:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;
Other Includes:
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Sep 07 2005 : 12:36:30 PM
|
BTW - this is reproduceable with the above code sample. I created a simple console app and replaced the created code with this one:
### START OF FILE ###
// conVC6.cpp : Defines the entry point for the console application. //
#include "stdafx.h"
class A { public: A(long a, long b); void Set(long a, long b);
private: short _a1, _a2, _b1, _b2; };
// _a1, _a2, _b1 and _b2 are of type short A::A(long a, long b) : _a1(a >> 16), _a2(a & 0xffff), _b1(b >> 16), _b2(b & 0xffff) { }
void A::Set(long a, long b) { _a1 = a; // I copied the above initializer from "a >> 16" up to "b & 0xffff" into the clipboard Ctrl+C // I selected the a above without ; and pasted the clipboard // I could see the resulting // _a1 = a >> 16), _a2(a & 0xffff), _b1(b >> 16), _b2(b & 0xffff; // I tried to reposition the cursor with the mouse bit VC++ hang and than I got the above exception }
int main(int argc, char* argv[]) { return 0; }
### END OF FILE ###
I followed my copy&paste comments in the Set function and ended with the same exception dialog.
HTH, SvenC |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Sep 08 2005 : 2:47:22 PM
|
an excellent description, thank you i was able to reproduce this without any problems
case=747 |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|
|
|