Print Page | Close Window

VB6 Crash when generating Chart

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18716
Printed Date: 20 May 2024 at 10:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB6 Crash when generating Chart
Posted By: tjsivies
Subject: VB6 Crash when generating Chart
Date Posted: 25 July 2011 at 1:05am
I am just starting to use the Chart control.
During testing for this I discovered a Fatal Windows Crash.

Simply put I have a Chart control and I initially display a Pie Chart.
I then give the user a PopUp menu (right click on the chart) to select from either a Bar or a Pie Chart.
The user can select Bar and then change again to Pie....etc

Changing from Pie to Bar is not a problem, however once the Bar chart is showing if your "right-click" directly on the chart area and select Pie you get a Windows crash. If you right-click not directly over the Bar chart area it does not crash.

I have checked through the code and cannot see where I may have gone wrong.
I have attached a zip of a sample project that displays the behavior.
uploads/2555/CodejockCharttest.zip - uploads/2555/CodejockCharttest.zip

Hoping someone (at Codejock) can help me?

Thanks
Trevor.


-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6



Replies:
Posted By: Aaron
Date Posted: 25 July 2011 at 1:31am
Hi,
 
I tried with your test project and I couldn't get it to crash.
 
btw The only thing I noticed that the VB popup menu is drawn with background of BAR chart (selecting pie when bar is active) just for a split second...
 
Good luck Wink
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: tjsivies
Date Posted: 25 July 2011 at 1:47am
Aaron,

Thx for trying.

It happens around 95% of the time.
Here is a video of it crashing just in case my instructions weren't 100% clear.

http://www.fastcam.com/Trevor/Chart-Crash/Chart-Crash.html - http://www.fastcam.com/Trevor/Chart-Crash/Chart-Crash.html

Trevor


-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6


Posted By: younicke
Date Posted: 26 July 2011 at 2:59am
it happens all the time.. :(

do the right click inside the bar chart not on the black parts


Posted By: Aaron
Date Posted: 26 July 2011 at 7:09am
Originally posted by younicke younicke wrote:

it happens all the time.. :(

do the right click inside the bar chart not on the black parts
 
 
Hi,
 
I did click on Bar about a hundred times... Outside, inside, everywhere... Not a single crash. Maybe something to do with version GDI dll 
 
C'mon support, why don't you guys reply?
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: younicke
Date Posted: 26 July 2011 at 9:46am
strange... i tried both in windows7 and xp it always crashes... in both IDE and compiled


Posted By: Oleg
Date Posted: 26 July 2011 at 1:48pm
Hi,

Also can't reproduce. can you please download 15.1 version, maybe something that fixed already.

Thanks


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 26 July 2011 at 2:02pm
Hi Oleg,
 
Thanks for reply, I tried already with new version (V15.1.0) without knowing it hehehe
 
Seems something with V15.0.1   I tried and it crashed immediately as described by thread starter.
 
 
Thanks
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: SuperMario
Date Posted: 27 July 2011 at 12:29am
So you say you see it with 15.0.1 but not 15.1.1?  I tried that sample with both 15.1.1 and 15.0.2 and couldn't see the crash.


Posted By: Aaron
Date Posted: 27 July 2011 at 10:45am
Originally posted by SuperMario SuperMario wrote:

So you say you see it with 15.0.1 but not 15.1.1?  I tried that sample with both 15.1.1 and 15.0.2 and couldn't see the crash.
 
Hi SuperMario,
 
Yes, correct
 
V15.0.1 & V15.0.2 both crashed
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: tjsivies
Date Posted: 01 August 2011 at 11:38pm
Thanks to all that posted.

I have re-tested using v15.1.1 and it no longer crashes.
Thanks CodeJock seems like you fixed it!
Big smile

Trevor


-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net