ReportControl randomly crashes the application |
Post Reply |
Author | |
defsys42
Newbie Joined: 08 April 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
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 ? |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
defsys42
Newbie Joined: 08 April 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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. |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
defsys42
Newbie Joined: 08 April 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 ? |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
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.
|
|
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 |