Access Violation

gosia

Member
I write an application with DOA. I have 2 forms. When you click on button on one form then the other raport-form is showing. On raport-form there is component TOracleDataSet. Sometimes before showing raport-form access violation error is raised. TOracleDataSet = nil!!!!!
Why? Can sb help me???!!!
Gosia
 
Where in your code does this access violation occur? Maybe the component is not yet created by the form when you access it?

------------------
Marco Kalter
Allround Automations
 
So why sometimes I can access it and sometimes access violation occur??????
This error is raised when I want to change SQL statement before I preview my report.
So how should I change SQL before I open this form??
 
That's hard to say, but if the TOracleDataSet instance = nil, then either it is not yet created, or it is freed, or it is set to nil.

------------------
Marco Kalter
Allround Automations
 
Back
Top