SetVariable -> AccessViolation

C++ Builder 5:

This statement produces an AccessViolation:
DM->updateAktiveVersion1->SetVariable( "AKTVERSID", aktVersID );

updateAktiveVersion1 is a TOracleQuery:
updateAktiveVersion1->SQL:
UPDATE fas.version
SET AktivBis sysdate
WHERE versid :AKTVERSID

In updateAktiveVersion1->Variables:
is :AKTVERSID declared.

Whats wrong?

Thanks

Andreas
 
This probably (usually) implies that either DM or updateAktiveVersion1 are not yet instantiated when this code executes. Maybe it needs to be moved to another event.
 
Back
Top