quesnel@cs.mcgill.ca (Rene QUESNEL) (06/05/91)
I'm getting error messages from Cfront that I don't understand. Here's a
reduced version of the problem I get:
#include <Windows.h>
WindowPtr wind;
void foo(void);
void foo()
{
wind = GetNewWindow(12, 0L, (WindowPtr)-1L);
}
If I try to compile that code with: CPlus -sym off -mf foo.cp, I get
the following:
File "foo.cp"; line 9 # internal << CFront Version 1.0 (9/11/90; AT&T 2.0))
Apple Computer, Inc. 1989-90 >> error: check( 2519468, 0, 136)
Does anyone have any idea what the error message means and what could be
the problem? I'm lost.
Thank you.
Rene Quesnel
anders@verity.com (Anders Wallgren) (06/05/91)
In article <1991Jun4.234444.18464@cs.mcgill.ca>, quesnel@cs (Rene QUESNEL) writes: >I'm getting error messages from Cfront that I don't understand. Here's a >reduced version of the problem I get: > >#include <Windows.h> >WindowPtr wind; > >void foo(void); > >void foo() >{ > wind = GetNewWindow(12, 0L, (WindowPtr)-1L); >} > I have no idea why it happens, but I can reproduce also. Changing the call to window = GetNewWindow(12, (void*)0, (WindowPtr)-1L); is a workaround.
ksand@apple.com (Kent Sandvik) (06/06/91)
In article <1991Jun4.234444.18464@cs.mcgill.ca>, quesnel@cs.mcgill.ca (Rene QUESNEL) writes: > > I'm getting error messages from Cfront that I don't understand. Here's a > reduced version of the problem I get: > > #include <Windows.h> > WindowPtr wind; > > void foo(void); > > void foo() > { > wind = GetNewWindow(12, 0L, (WindowPtr)-1L); > } ^^ change OL to nil (wStorage, nil = allocate one) and it will compile. Kent Sandvik