"out of memory" error when using in .NET |
Post Reply |
Author | |
YellowStreak
Groupie Joined: 07 April 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
Posted: 23 June 2008 at 6:21am |
We are using the report control in a vb.net interop user control. We have an interop user control with a series of tabs. Each tab contains a separate interop user control. Two of these tabs contain the codejock report control.
All works fine in the development environment but when we build the interop dll and VB6 app the problems begin.
The application runs fine and other interop controls are functioning correctly. However, when we try to open the main control that contains all the tabs we get an "out of memory - Error 7" and the VB app crashes out.
I have error trapping in all the routines but the errors never fire. The report controls are populated "on demand" so at this point they contain 0 records so it's not an amount-of-data issue.
If I remove the usercontrols containing the report controls and re-build the app the controls all work fine so it is definitely the report controls that are causing the issue.
Any suggestions would be greatly appreciated.
Thanks.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I use also multiple RC in one form but I use a picturebox and DockingPanes. I have no complaints (yet)
Do you somewhere in your code use a reference of a record or something like that? or a recorditem which is Empty/Null?
|
|
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.... |
|
YellowStreak
Groupie Joined: 07 April 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
|
Here's the scenario:
I have a VB 6 form (frm1) - that contains a single .NET interop usercontrol (cntl 1) cntl1 contains a standard .NET tab control. with 10 tab pages. Each tab page contains a single (different) .NET user control (NOT Interop). Tab page 3 contains a .Net user control (cntl 2) cntl 2 contains a single codejock report control and few standard .net buttons/ context menu etc.
I have removed all population code so the control is just displaying an empty report control - no references to any record objects are made.
opening frm1 causes a memory error.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
And again you need the help of the master himself
I don't know if the usercontrol is causing the problems or the RC itself. So you don't call anything? no resizing or whatever? just placed a RC on the usercontrol...
|
|
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.... |
|
YellowStreak
Groupie Joined: 07 April 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
|
Yes.
The usercontrol containing the report control uses anchor settings to handle control re-sizing (expanding report control to control width/height etc. So while I have not actually written any code my self - There's obviously VS generated code going on under the hood to manage this.
Do you think that might be my problem?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I don't know if this could raise some error.
If nothing else is referenced why would there be errors??? Does windows generates a ErrorReport? Maybe it will help CJ to find the error what's causing it. I think you have to call the master himself now.
|
|
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, Please copy your project, make smaller version and attach here with VB Client. We need to trace problem on our end to help you. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |