Page 1 of 1

Acess violation...

Posted: Fri Jun 24, 2005 7:48 pm
by pablobr
Hi

I dont know why, my application stoped working for no reason!
It generates an Access violation exception on siComp.pas:

if S = AOwnerClassName then
begin
AStream.Read(dw, SizeOf(dw));
frm := TForm.Create(AComp);
siClass := TComponentClass(GetClass(AComp.Classname));
SI := TsiCustomLang(siClass.Create(frm)); --> AT THIS LINE THE ACESS VIOLATION HAPPENS

tried to reboot the machine, but the error persists...

Can any1 help me?

Regards,

Pablo

Posted: Sat Jun 25, 2005 5:23 am
by isiticov
Could be that siClass has nil content. Are you sure you didn't mix the CLX and VCL units in your project (be sure no TsiLang units with Q prefix used in VCL application and vice versa)? In case not, please try to reproduce the situation with sample project and send it to us.

Works

Posted: Thu Jun 30, 2005 12:35 pm
by pablobr
isiticov wrote:Could be that siClass has nil content. Are you sure you didn't mix the CLX and VCL units in your project (be sure no TsiLang units with Q prefix used in VCL application and vice versa)? In case not, please try to reproduce the situation with sample project and send it to us.
i wasted a few hours of work and finally found the malicious Q...

thx for your attention

regards