Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Windows
 ActiveX Controls
 CTWX too many graphs error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
tonybarake Posted - 27 Aug 2013 : 13:05:18
I am using the CTWX control under VB6 running on Windows XP, and periodically receive a "Too many graphs" error in a dialog box while the app is running.

This usually happens on form load, where we do a
Call CTWX1.ReconnectDataSet(0, "Line Data", pXData(0), pYData(0), 1)

call to clear the chart.

This tends to happen when the form gets unloaded and re-loaded a few times, but is very sporadic. The chart control lives inside a frame on the form. There are only 2 CTWX object instances on that form, and no others in the application.

Is there a way to force CTWX object unloads? I understand that this should happen automatically when the parent form unloads - which it does.

Any thoughts?

Thanks
Tony Barake
2   L A T E S T    R E P L I E S    (Newest First)
tonybarake Posted - 27 Aug 2013 : 13:49:32
Thanks, that is helpful.
I will try removing these calls.

As for the comments regarding obsolescence, yes, I agree, but I have no control on our legacy code lifetime - so I am stuck with asking for help where I can.

quinncurtis Posted - 27 Aug 2013 : 13:23:52
Sorry, but we no longer have any computers which run VB 6, so we can't attempt to reproduce the problem. The ActiveX controls were obsolete 10 years ago, which is pretty evident in that yours is the first question in almost 8 years. Time to update your compiler and charts to something more current.

Why are you calling

CTWX1.ReconnectDataSet(0, "Line Data", pXData(0), pYData(0), 1)

inside the form load function? Isn't the chart empty by default. And you can just assign default data using DefineDataSet. The ReconnectDataSet is what you use if you want to change the data in response to some other event(timer, button press, etc.), not a Form load.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07