Jump to content
Software FX Community

Array Locked using Array and Cross-Tab providers


User (Legacy)

Recommended Posts

I'm using 3 dynamic arrays (one for x, one for y and for series) with the

array data provider and the cross tab data provider. I add the 3 arrays to

the array provider, then set the cross tab provider data source to the array

provider. I then set the data type property of the cross tab provider

accordingly. When I use GetExternalData on the chart, it gives me an error

that "This array is fixed or temporarily locked.". I don't get this array

in the VB IDE, but I get it when the project is compiled and executed. How

can I fix this?

Sean Carpenter

Voicestream Wireless

sean.carpenter@voicestream.com

Link to comment
Share on other sites

It looks like the problem was caused by not setting the Array provider and

Crosstab provider objects to "Nothing" after calling the GetExternalData

method. We are drawing 12 charts by looping through the same code

repeatedly and apparently these objects were not releasing the arrays

correctly. It was an oversight not to set them to "Nothing" originally,

but they should be destroyed when the procedure exits anyway (since they are

local variables), right?

Sean

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:YMyxQF9vBHA.1412@webserver1.softwarefx.com...

> We were unable to reproduce this problem, could you please send a piece of

> code that reproduces it.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

  • 2 years later...

Hi there,

I am experiencing similar problem when calling a COM Component from ASP or

other VB apps.

My component uses the ChartFX to create a JPEG file. The COM Component works

fine in VB Debug mode.

Please find the attached VB project of the COM Component.

Regards

Anirban Sengupta

"Sean" <sean.carpenter@voicestream.com> wrote in message

news:LpZsTi%23vBHA.1412@webserver1.softwarefx.com...

> It looks like the problem was caused by not setting the Array provider and

> Crosstab provider objects to "Nothing" after calling the GetExternalData

> method. We are drawing 12 charts by looping through the same code

> repeatedly and apparently these objects were not releasing the arrays

> correctly. It was an oversight not to set them to "Nothing" originally,

> but they should be destroyed when the procedure exits anyway (since they

are

> local variables), right?

>

> Sean

>

> "SoftwareFX Support" <support@softwarefx.com> wrote in message

> news:YMyxQF9vBHA.1412@webserver1.softwarefx.com...

> > We were unable to reproduce this problem, could you please send a piece

of

> > code that reproduces it.

> >

> > --

> > FP

> > Software FX, Inc.

> >

> >

>

>

Link to comment
Share on other sites

Hi there,

I am experiencing similar problem when calling a COM Component from ASP or

other VB apps.

My component uses the ChartFX to create a JPEG file. The COM Component works

fine in VB Debug mode.

Please find the attached VB project of the COM Component.

Regards

Anirban Sengupta

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:YMyxQF9vBHA.1412@webserver1.softwarefx.com...

> We were unable to reproduce this problem, could you please send a piece of

> code that reproduces it.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...