Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - "out of memory" error when using in .NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"out of memory" error when using in .NET

 Post Reply Post Reply
Author
Message
YellowStreak View Drop Down
Groupie
Groupie


Joined: 07 April 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote YellowStreak Quote  Post ReplyReply Direct Link To This Post Topic: "out of memory" error when using in .NET
    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.
 
 
 
 
 
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: 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....
Back to Top
YellowStreak View Drop Down
Groupie
Groupie


Joined: 07 April 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote YellowStreak Quote  Post ReplyReply Direct Link To This Post 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.
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: 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....
Back to Top
YellowStreak View Drop Down
Groupie
Groupie


Joined: 07 April 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote YellowStreak Quote  Post ReplyReply Direct Link To This Post 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?
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: 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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.