Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - ReportControl randomly crashes the application
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReportControl randomly crashes the application

 Post Reply Post Reply
Author
Message
defsys42 View Drop Down
Newbie
Newbie


Joined: 08 April 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote defsys42 Quote  Post ReplyReply Direct Link To This Post Topic: ReportControl randomly crashes the application
    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 ?

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: 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....
Back to Top
defsys42 View Drop Down
Newbie
Newbie


Joined: 08 April 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote defsys42 Quote  Post ReplyReply Direct Link To This Post 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.
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: 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....
Back to Top
defsys42 View Drop Down
Newbie
Newbie


Joined: 08 April 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote defsys42 Quote  Post ReplyReply Direct Link To This Post 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 ?
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: 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....
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
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.148 seconds.