Print Page | Close Window

ReportControl randomly crashes the application

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=16562
Printed Date: 15 November 2024 at 11:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ReportControl randomly crashes the application
Posted By: defsys42
Subject: ReportControl randomly crashes the application
Date Posted: 08 April 2010 at 11:12am
Hi,

I'm currently designing a vb6 software using the codejock framework (v12.0.2). It runs on Windows XP SP3

Some users reports that using report controls make the app crashes.

We've been trying to track the issue but haven't been able to reproduce this bug.

Any suggestion about a workaround ?




Replies:
Posted By: Aaron
Date Posted: 11 April 2010 at 3:03pm
Hi,
 
Can you be more specific?
 
What kind of features do you use? (grouping, sorting, previewitems etc etc) I guess you have ReportControl V12.0.2 ?
 
Better to show which properties are set on startup, maybe I'm able to help you
 
  
 


-------------
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: defsys42
Date Posted: 12 April 2010 at 6:03am
The error occurs from time to time on a report on which we combine comboxes and spinners etc...
Here are the properties set for the report.



And yes, we're currently using the reportcontrol v12.0.2.

By the way, thank you in advance for helping us solve this.


Posted By: Aaron
Date Posted: 12 April 2010 at 2:54pm
Originally posted by defsys42 defsys42 wrote:

 
[...]
The error occurs from time to time on a report on which we combine comboxes and spinners etc...
Here are the properties set for the report. 
And yes, we're currently using the reportcontrol v12.0.2.
[...]

 
Hi,
 
If I look at your settings you use ReportItems (for editing using combobox and spinner) , Header and Footer rows.
 
 
There are a few properties you have to set in code (I'm not sure all properties are saved in IDE, check one of my posts in ReportControl forum) so just uploading image isn't enough. I guess you set some properties in code as well
 
I don't use header / footer rows so I can't say if there would be any problems with it. There was one issue regarding combobox but I can't remember what it was (try to search forum)
 
What else do you use? Markup, BeforeDrawRow event (or other events),  virtual report?
 
 
 


-------------
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: defsys42
Date Posted: 13 April 2010 at 3:25am
We (i.e at work) use report control a lot. And we use them all the same way. The main problem is that we have the "bug" i described previously only in one of those reports (the other reports work just fine).

The fact that the user told us the bug occurs randomly with the Windows error reporting makes me thing that maybe there are cases where reports are kind of unstable.

All the functions we produce have error handling.

Have you any idea about report's methods which we should look more carefully ?


Posted By: Aaron
Date Posted: 13 April 2010 at 3:21pm
Originally posted by defsys42 defsys42 wrote:

 
[...]
Have you any idea about report's methods which we should look more carefully ?
 
 
Hi,
 
I didn't have that many crashes with ReportControl, I believe it's stable
 
Well, I had problem with: .FreezeColumnsCount = False (expects an integer) but this has been solved (I can't think of any other crashes I had in the past)
 
Try to look for "crash" in ReportControl subforum and maybe someone else used same event and had crash also (Top of this page there's a search icon, click and find out ) and create list of used events and methods of RC. Last option is to show me your code (you can find my email address if you click on username)
 
Good luck
 
 


-------------
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: Baldur
Date Posted: 24 April 2010 at 9:57am
I have had also sometimes crashes in the reportcontrol, but i found the reason:
If you are in any event of a reportcontrol, you don't have to add or remove any rows ore items or just call Populate-Method.
In this cases, the reportcontrol crashes the application, maybe not immediatly but after a while.
 
When you want to change the reportcontrol within an event, than use a timerobject instead.
I have defined a disabled normal timer-control on the form.
In the event, which should change the reportcontrol, i just enable the timer and leave the event.
 
This happens mostly on remove records or even call populate within events, so the returning of the event will crash if the currently processed row, record or item doesn't exists anymore.



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