FlatEdit Validate Event Crashes VB6 |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 23 May 2008 at 10:26pm |
Try this:
1) Start a new Standard EXE project and add a UserControl 2) Draw a FlatEdit control on the UserControl (FlatEdit1) 3) Add this code to the UserControl:
4) Draw 2 instances of the newly created UserControl1 on the form and run the project. 5) Press TAB a couple of times. If VB6 doesn't crash, close the form and go back to the UserControl designer. 6) Change the Appearance property to xtpAppearanceOffice2007 then re-run the project and Press TAB and it should crash the IDE. This is in VB6 on Vista SP1. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Can anyone else confirm this problem? It even crashes the compiled app.
Here's source for testing: uploads/20080526_234021_FlatEditBug.zip Here's what appears in the more information box after the crash: Problem signature: Problem Event Name: APPCRASH Application Name: FlatEditBug.exe Application Version: 1.0.0.0 Application Timestamp: 483b821f Fault Module Name: StackHash_c40b Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Code: c000001d Exception Offset: 00010009 OS Version: 6.0.6001.2.1.0.768.3 Locale ID: 4105 Additional Information 1: c40b Additional Information 2: fee4477d44b62ec10e7d5da40377474b Additional Information 3: 8269 Additional Information 4: 2a9fe7a464e1ef156c04e26d31de7b11 |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
When compiled > crash
in IDE > seems OK
|
|
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.... |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, I see same with VB's TextBox.
Seems problem with reserved "Validate" event. just replace it to "Validate2"...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
...
Public Event Validate2(ByRef Cancel As Boolean) Private Sub FlatEdit1_Validate(Cancel As Boolean) RaiseEvent Validate2(Cancel) End Sub |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Thanks Oleg, that works fine.
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Aaron, It doesn't always crash the IDE, but try changing the Appearance property to Office2007 and it usually does...In any case, Oleg's solution will satisfy my needs, but thanks for looking at it!
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Jason,
How long do I need to press the TAB key? I did set Appearance property to Office2007 and it didn't crash, really! When compiled it crashes every time when the focus flatedit2 > flatedit1
|
|
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.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Hey Aaron,
I've tested it again today, and it doesn't seem to be crashing the IDE anymore (at least not in the small sample project I gave you). In my larger project (that I cannot provide) it does crash the IDE still (really!), so I think that there must be some other interaction that is causing the bug. In any case, I don't really mind using Oleg's solution... The only thing I would be curious about is if there are any other side-effects of the bug that we haven't found yet. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
hey. There is no bug in our control. As I wrote I can see same if remove all our controls and add standard TextBox.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hey, we didn't say it's a CJ bug.
|
|
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.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Ok, I think I understand why it happens. Putting your own Validate event in a UserControl isn't really necessary since it seems that the UserControl exposes its own Validate event (that is activated by the CausesValidation property) and having 2 events with the same name is undoubtedly a bad idea :)
I can just use the built-in Validate event for the same purpose as my custom Validate event |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |