CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is the bug here?
Can anyone tell me what is wrong with the following code? It is producing
and Invalid Pointer Operation after calling it two or three times:
bool OpenItem(TComponent *Caller, TStringField *Path, TStringField *Keywords, TGraphicField *ItemBinary)
{
frmRichNote=new TfrmRichNote(NULL);
frmRichNote->name->Text=Path->Value;
frmRichNote->keywords->Text=Keywords->Value;
delete frmRichNote;
return false;
}
frmRichNotes is a form with a TRichNote field, some edit fields and a couple
buttons.
name and keywords are TEdit fields.
Path, Keywords, and ItemBinary are from a Paradox Table which is in edit
mode. The fields are being passed as pointers to this function.
The whole function is in a DLL. The invalid pointer operation is being made
in one of the text assignments. Both assignments will cause the error.
Travis
W Komornicki's Home Page |
Main Index |
Thread Index