Q45350: Casting Pointer to Char in the Watch Window Will Hang Machine
Article: Q45350
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | buglist2.00 | mspl13_c
Last Modified: 8-JUN-1989
If you are watching a pointer cast to a char in the Debug window in
QuickC Version 2.00, the machine hangs. Other casts perform as
expected. The example below demonstrates the problem.
Microsoft has confirmed this to be a problem in QuickC Version 2.00.
We are researching this problem and will post new information as it
becomes available.
In the QuickC environment, compile with debug options on. Next, set a
Watch on a pointer and cast it to a char. For example, enter the
expression "(char) intptr" (without the quotation marks). When this
expression is entered, the mouse cursor disappears and QuickC no
longer accepts any keyboard input.
Code Example
------------
char near * chptr;
int near * intptr;
float near * floatptr;
void main (void)
{
chptr = (char near *) 1;
intptr = (int near *) 1;
floatptr = (float near *) 1;
chptr = (char near *) 2; /* put breakpoint here */
}
QuickC Versions 1.x do not exhibit this problem.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.