Re: I have a problem: CodeGear := TCompany.Create;



I have a problem too.

C.IDE := B.IDE;
B.IDE := nil;

is IDE an object or a pointer?

assign() please

you could have just nulled cout C.IDE as well.


Joe Mele
--
Youseful Software
London Number
+44 (0)20 8090 4340.
Toll Free US 1-(866)-387-1998
www.fmplugin.net
FSA Associate Member
www.youseful.com
forums.youseful.com


"M. Murat Dicle" <mdicle@xxxxxxxxx> wrote in message
news:1167412792.734019.235840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Uses Borland, Microsoft;
Type
TCodeGear = Class(TBorland)
.
.
IDE : TBorland.TIde;
.
.
end;
.
.
.
var
B: TBorland;
C: TComponent;
begin
B := B.Create(nil);
C := TCodeGear.Create(B);
C.IDE := B.IDE;
B.IDE := nil;
C.Owner := B; // maybe, it is not correct. Because, don't remember
Microsoft.

{
C.Owner := TMicrosoft(B); // is it correct?

- or -

C.Parent := B;
C.Owner := Microsoft;
}
.
.
end;
.
.
.



.



Relevant Pages

  • Re: Using DelphiSpeedUp hooks in package-based apps
    ... If I run the app in the IDE, I get an AV on shutdown. ... Result:= nil; ...
    (borland.public.delphi.language.basm)
  • Re: BDS 2006 ADO EOleException
    ... Yes, the application continues, but recordsets are nil. ... does the application continue to execute after the exception (inside the IDE)? ... then it's probably a handled exception you can ignore or tell the IDE to ignore those type of exceptions. ...
    (borland.public.delphi.database.ado)