Jump to content

Simple Error Access MainModule


Guest

Recommended Posts

Message from: "Cristiano Testai"

 

Hello Farshad ..

I'm having a simple error ... I'm using a MainModule to put non-visual

components and data access, as ImageList, ClientDataSet, Connection with

application servers, etc. ..

On MainForm I am for example in OnShow event, referencing the ImageList (in

MainModule) for Tollbar Component and an Access Violation occurs ..

The Code is below:

procedure TfmHome.UniFormShow(Sender: TObject);

begin

toolabar1.Images: = UniMainModule.iml24h;

end;

 

What is wrong?

Tanks..

 

Cristiano Testai

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"Cristiano Testai" wrote in message

news:TP3%23sJmuLHA.2160@anaxagvs227...

> Hello Farshad ..

> I'm having a simple error ... I'm using a MainModule to put non-visual

> components and data access, as ImageList, ClientDataSet, Connection with

> application servers, etc. ..

> On MainForm I am for example in OnShow event, referencing the ImageList

> (in MainModule) for Tollbar Component and an Access Violation occurs ..

> The Code is below:

> procedure TfmHome.UniFormShow(Sender: TObject);

> begin

> toolabar1.Images: = UniMainModule.iml24h;

> end;

>

> What is wrong?

> Tanks..

 

Hello,

 

Changing Images property at runtime is not supported yet. Please note that

not all properties can be modified at runtime due implementation complexity

and other issues. As framework advances more and more properties will be

available at runtime.

Why don't you bind "Images" at design time?

 

Issue logged: #793

 

 

.

 

Link to comment
Share on other sites

Message from: "Cristiano Testai"

 

Thanks for explanation Farshad!

 

I have code that use run time reference for patterns only. But don't have

problem in this case to use design time reference..

 

Cristiano Testai

 

"Farshad Mohajeri" wrote in message

news:m$tcoXxuLHA.2160@anaxagvs227...

>

> "Cristiano Testai" wrote in message

> news:TP3%23sJmuLHA.2160@anaxagvs227...

>> Hello Farshad ..

>> I'm having a simple error ... I'm using a MainModule to put non-visual

>> components and data access, as ImageList, ClientDataSet, Connection with

>> application servers, etc. ..

>> On MainForm I am for example in OnShow event, referencing the ImageList

>> (in MainModule) for Tollbar Component and an Access Violation occurs ..

>> The Code is below:

>> procedure TfmHome.UniFormShow(Sender: TObject);

>> begin

>> toolabar1.Images: = UniMainModule.iml24h;

>> end;

>>

>> What is wrong?

>> Tanks..

>

> Hello,

>

> Changing Images property at runtime is not supported yet. Please note that

> not all properties can be modified at runtime due implementation

> complexity and other issues. As framework advances more and more

> properties will be available at runtime.

> Why don't you bind "Images" at design time?

>

> Issue logged: #793

>

 

.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...