Print Page | Close Window

"out of memory" error when using in .NET

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


Topic: "out of memory" error when using in .NET
Posted By: YellowStreak
Subject: "out of memory" error when using in .NET
Date 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.
 
 
 
 
 



Replies:
Posted By: Aaron
Date Posted: 23 June 2008 at 7:02am
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....


Posted By: YellowStreak
Date Posted: 23 June 2008 at 7:19am
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.


Posted By: Aaron
Date Posted: 23 June 2008 at 7:40am
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....


Posted By: YellowStreak
Date Posted: 23 June 2008 at 7:46am
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?


Posted By: Aaron
Date Posted: 23 June 2008 at 8:58am
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....


Posted By: Oleg
Date Posted: 24 June 2008 at 9:18am

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



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