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.