Subject | Re: [IBO] TIB_Events |
---|---|
Author | Robert martin |
Post date | 2006-07-25T21:10:23Z |
Hi Helen
as well :)
The error is 'Access violation at address 10024848 in module
'GDS32.dll'. Write of address 016A8046'
set to nil. The database is still active. This code was added to see
if it made a difference, it didn't. Note the actual database free code
is...
if (DataBase <> Nil) then begin
DataBase.Connected := False;
DataBase.Free;
DataBase := Nil;
end;
Sorry about not showing that, it is difficult to decide what code is
relevant and what just bulks out the email :-)
fIb_Events.ib_Connection to Nil. The AV is about every second close.
Further testing seems to show that the error only happens from the
Delphi IDE and that sometimes when it happens FB jumps to 100% usage and
then needs to be restarted !
Tanks Rob
> It would be a help if you would say what the error is.Yeah sorry about that, I really hate it when our clients do that to me
>
>
as well :)
The error is 'Access violation at address 10024848 in module
'GDS32.dll'. Write of address 016A8046'
>> fIb_Events.IB_Connection := Nil;Not true. the fIB_Events (A TIB_Event) reference to the ib_Connection is
>>
>
> This sets the application's connection to Nil!!!
>
>
set to nil. The database is still active. This code was added to see
if it made a difference, it didn't. Note the actual database free code
is...
if (DataBase <> Nil) then begin
DataBase.Connected := False;
DataBase.Free;
DataBase := Nil;
end;
Sorry about not showing that, it is difficult to decide what code is
relevant and what just bulks out the email :-)
>> fIb_Events.Free;Yes the error is an AV but I am pretty sure its not caused by setting
>>
>> ....
>>
>> DataBase.Connected := False;
>> DataBase.Free;
>>
>
> You then refer to this nil'ed out connection. Ka-boom!
>
> If the "error" you are getting is an AV, then here is the cause.
>
> Helen
>
>
fIb_Events.ib_Connection to Nil. The AV is about every second close.
Further testing seems to show that the error only happens from the
Delphi IDE and that sometimes when it happens FB jumps to 100% usage and
then needs to be restarted !
Tanks Rob