Print Page | Close Window

GPF on TextBox_SetFocus event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=12122
Printed Date: 21 December 2024 at 9:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GPF on TextBox_SetFocus event
Posted By: Darendo
Subject: GPF on TextBox_SetFocus event
Date Posted: 10 September 2008 at 2:47am
Developing search functionality. User presses Ctrl+F, toggles find frame which contains a label, a textbox and a picture (icon to close). Showing find makes the frame visible, resizes RC to make space for the frame, and sets the focus to the textbox. The moment the textbox KeyUp event fires, the app GPFs. (This event fires immediately when the user releases Ctrl+F keys.) This occurs in IDE and compiled versions. I believe part of the issue is that I'm setting the FilterText property and calling the Populate method as they type (for each KeyUp event):
 
    wndReportControl.FilterText = txtFind.Text
    wndReportControl.Populate
 
If I only call the Populate method when the user presses enter, the app appears to run fine. However, the users really like the real-time response watching the list narrow down as they type.



Replies:
Posted By: Oleg
Date Posted: 10 September 2008 at 3:33am

Hello,

Please attach sample



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


Posted By: Darendo
Date Posted: 15 September 2008 at 10:37am
https://forum.codejock.com/uploads/20080915_103631_FindHelp.zip - uploads/20080915_103631_FindHelp.zip


Posted By: Aaron
Date Posted: 17 September 2008 at 12:45am
Hi,
 
Works fine for me... or should I do something else? If I just enter chars in Find textbox the RC shows only those records with filtered text. I have tried it with V12.1.0
 
What version do you use? Also have a look at post: https://forum.codejock.com/forum_posts.asp?TID=11225 - https://forum.codejock.com/forum_posts.asp?TID=11225   Maybe the problem is with other version...
 
 


-------------
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: Darendo
Date Posted: 17 September 2008 at 8:15am
I am currently using ActiveX RC v.12.0.2. Where can I download and test v.12.1?

-------------
Product: Xtreme ReportControl (ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 - SP6


Posted By: fjosesen
Date Posted: 17 September 2008 at 12:07pm
    Good question! I'm waiting for about a week without any response from the forum, mms mail nor CJ support.
 
    Good luck!
 
FJSen


-------------
Products: Suite Pro (ActiveX) v18.0.1
          Toolkit Pro (MFC) v18.0.1
Platform: Windows 10 (64bit)
Language: VC++ 2013 (MFC)


Posted By: Aaron
Date Posted: 17 September 2008 at 12:44pm
Hi,
 
OK, now I know what version you use, good job that you entered this in your signature .
 
Well, I tried also with V12.0.2 and workes OK as well. Are you sure I don't have to do anything special? Just type chars into textbox?
 
 
For the V12.1.0 version...
This is only Beta release but you can sign up at http://beta.codejock.com/ - http://beta.codejock.com/  for V12.1.0 download.
 
 
 


-------------
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: Darendo
Date Posted: 18 September 2008 at 12:17pm
Type text in the Find box, press enter. Quickly click anywhere on the RC. You will eventually (quickly) GPF. This is very consistent on the dev machine (IDE and compiled) and two test machines (compiled). Thx,  DD

-------------
Product: Xtreme ReportControl (ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 - SP6


Posted By: Aaron
Date Posted: 19 September 2008 at 12:57am
Hi,
 
I am sorry but it works for me, at least in IDE. For some reason VB don't let me create exe, if I try that it will stop responding and I will have to end program  
 


-------------
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: Darendo
Date Posted: 19 September 2008 at 8:08am
Even if you don't filter text but just click column headers to sort, and keep clicking to sort, you will eventually GPF. This is truly consistent.
 
I really think this has either something to do with populating the control (internal to the control) or could it have something to do with the fact that I didn't uninstall the demo ActivX Suite when I installed the registered Report Control?


-------------
Product: Xtreme ReportControl (ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 - SP6


Posted By: Darendo
Date Posted: 19 September 2008 at 8:12am
Also, MMS reponded regarding getting the beta version, "I'm sorry, but we only have a beta for SuitePro and ToolkitPro at this time.  Individual components are not available as beta." I only bought the ActiveX Report Control. So, even if the new version solves my problem, I wont know for certain until it's released.
 
Here's my problem: I'm expected to release this on Tuesday, September 23rd. I need a solution I can deploy ASAP.


-------------
Product: Xtreme ReportControl (ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 - SP6


Posted By: SuperMario
Date Posted: 19 September 2008 at 8:37am
write to support.  you can get a beta there.  it's not recommended to release a beta version though.


Posted By: Aaron
Date Posted: 19 September 2008 at 9:10am
Originally posted by Darendo Darendo wrote:

Even if you don't filter text but just click column headers to sort, and keep clicking to sort, you will eventually GPF. This is truly consistent.
 
I really think this has either something to do with populating the control (internal to the control) or could it have something to do with the fact that I didn't uninstall the demo ActivX Suite when I installed the registered Report Control?
 
 
Hi,
 
Yes it will crash eventually if you keep clicking the column... But I don't know why you have DoEvents in the BeforeDrawRow event ??? This events fires everytime when something happens or when visual part of the ReportControl needs to be repainted: so just a single row scroll, grouping columns, sorting, one single character of a report item has been altered... this event will fire for all visible rows in RC.
 
I tested this without DoEvents and I can't get it to crash anymore so I suggest you remove DoEvents in BeforeDrawRow event.
 
   
 


-------------
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....



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