Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - VB6 Crash when generating Chart
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VB6 Crash when generating Chart

 Post Reply Post Reply
Author
Message
tjsivies View Drop Down
Groupie
Groupie
Avatar

Joined: 04 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote tjsivies Quote  Post ReplyReply Direct Link To This Post Topic: VB6 Crash when generating Chart
    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

Hoping someone (at Codejock) can help me?

Thanks
Trevor.
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
tjsivies View Drop Down
Groupie
Groupie
Avatar

Joined: 04 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote tjsivies Quote  Post ReplyReply Direct Link To This Post 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

Trevor
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2011 at 9:46am
strange... i tried both in windows7 and xp it always crashes... in both IDE and compiled
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
tjsivies View Drop Down
Groupie
Groupie
Avatar

Joined: 04 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote tjsivies Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.