Samuel Fogarty
2008-08-04 03:39:42 UTC
Hi Team,
I'm using CodeGear C++ builder(recently converted from studio). I'm getting
an 'Access violation at address 00000000' when calling execute on an
OpenDlg. Here is the code.
TOpenDialog* OpenDlg=new TOpenDialog(MainForm);
bool Answer=OpenDlg->Execute(); //Access error here
(There were other lines here for file filtering, etc, but I've stripped
those away and the error remains)
I use lots of OpenDlgs, and others in the program appear to work. Also, this
code worked fine in studio, so it is unlikely to be an obvious error in my
code. Does anyone know what is happening? Anyone seen this before? I am
stumped.
I'm using CodeGear C++ builder(recently converted from studio). I'm getting
an 'Access violation at address 00000000' when calling execute on an
OpenDlg. Here is the code.
TOpenDialog* OpenDlg=new TOpenDialog(MainForm);
bool Answer=OpenDlg->Execute(); //Access error here
(There were other lines here for file filtering, etc, but I've stripped
those away and the error remains)
I use lots of OpenDlgs, and others in the program appear to work. Also, this
code worked fine in studio, so it is unlikely to be an obvious error in my
code. Does anyone know what is happening? Anyone seen this before? I am
stumped.