L
laolor
Unregistered / Unconfirmed
GUEST, unregistred user!
我定义了一个类,
class Graph{
public:
TImage *Image1;
.....
}在mdi自窗口中调用
void __fastcall TMDIChild::FormCreate(TObject *Sender)
{
Graph *ThisGraph=new Graph;
Image1=ThisGraph->Image1;
size=5;
int i;
Image1->Canvas->Brush->Color=clWhite;//该行运行期间出错.
.....
}出错的那一行是在我新建一个mdi子窗口时出错的
错误窗口说:'Access violation at address 400732BC in molude 'VCL40.BPL'.Read of address FFFFFFFF'.
怎么办?
class Graph{
public:
TImage *Image1;
.....
}在mdi自窗口中调用
void __fastcall TMDIChild::FormCreate(TObject *Sender)
{
Graph *ThisGraph=new Graph;
Image1=ThisGraph->Image1;
size=5;
int i;
Image1->Canvas->Brush->Color=clWhite;//该行运行期间出错.
.....
}出错的那一行是在我新建一个mdi子窗口时出错的
错误窗口说:'Access violation at address 400732BC in molude 'VCL40.BPL'.Read of address FFFFFFFF'.
怎么办?