User (Legacy) Posted October 24, 2003 Report Share Posted October 24, 2003 If I try to add a constant line without a label while in vb, I get an "out of stack space" error then vb crashes. If it happens in the exe the app just ends. I am using Chartfx 5.0.10.4 Thanks Dan Reber Link to comment Share on other sites More sharing options...
Software FX Posted October 24, 2003 Report Share Posted October 24, 2003 Please attach the code that reproduces the problem along with the version and build you are testing with. We have tried simply creating a constant line as described in the help files and experienced no problems whatsoever. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 24, 2003 Author Report Share Posted October 24, 2003 I am using Chartfx 5.0.10.4 Select values but don't add text to txtLabel and then click "Add" Dan Reber "SoftwareFX Support" <support@softwarefx.com> wrote in message news:Uu5CuIlmDHA.1244@WEBSERVER1... > Please attach the code that reproduces the problem along with the version > and build you are testing with. > > We have tried simply creating a constant line as described in the help files > and experienced no problems whatsoever. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 24, 2003 Author Report Share Posted October 24, 2003 The add button that was in the example project that I had attached to my last post. "SoftwareFX Support" <support@softwarefx.com> wrote in message news:nG%236zYmmDHA.1264@WEBSERVER1... > What "Add" ? Which Dialog are you referring to ? Can you please give us the > complete details. I'm lost here, at first I thought you were creating the > constant lines using the API, now I don't know what you're doing. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 24, 2003 Author Report Share Posted October 24, 2003 I guess that I didn't make myself clear. 1. Run the project. 2. Set all of the settings (except for the label) for the constant line that is in the frame. 3. Click "Add". "SoftwareFX Support" <support@softwarefx.com> wrote in message news:nG%236zYmmDHA.1264@WEBSERVER1... > What "Add" ? Which Dialog are you referring to ? Can you please give us the > complete details. I'm lost here, at first I thought you were creating the > constant lines using the API, now I don't know what you're doing. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted October 24, 2003 Report Share Posted October 24, 2003 What "Add" ? Which Dialog are you referring to ? Can you please give us the complete details. I'm lost here, at first I thought you were creating the constant lines using the API, now I don't know what you're doing. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Software FX Posted October 24, 2003 Report Share Posted October 24, 2003 The problem is that you are passing null as the value. This is not supported, you need to pass a valid string. The following code will do the trick: ChartFX1.ConstantLine(Index).Label = IIf(IsNull(txtLabel.Text), "", txtLabel.Text) -- FP Software FX, Inc. PS: Sorry about the last post, I didn't realize your posting had an attachment. Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 27, 2003 Author Report Share Posted October 27, 2003 I am doing something similar now. But I still don't think that it should cause the app to crash ;-) "SoftwareFX Support" <support@softwarefx.com> wrote in message news:baf16onmDHA.1244@WEBSERVER1... > The problem is that you are passing null as the value. This is not > supported, you need to pass a valid string. The following code will do the > trick: > > ChartFX1.ConstantLine(Index).Label = IIf(IsNull(txtLabel.Text), "", > txtLabel.Text) > > -- > FP > Software FX, Inc. > > PS: Sorry about the last post, I didn't realize your posting had an > attachment. > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.