Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Custom Module: Error in FillObject
Previous Previous
 
Next Next
New Post 3/16/2006 2:09 PM
User is offline Ray Booysen
9 posts
10th Ranked


Custom Module: Error in FillObject 
Hi all.

I have created a custom module.  I have the controller class and a few helper classes. E.g. Agent.vb

In the controller class I call the methods to populate an arraylist with elements of the Agent class.  This calls CBO.FillCollection which in turn calls CBO.FillObject to fill a new instance of type agent.  However this fails with the following exception

"Exception of type System.StackOverflowException was thrown."

I have traced this down to the fact (I think) that its not matching the data types properly.  But I could be wrong.  Any ideas?

 
New Post 3/16/2006 6:40 PM
User is offline William Severance
841 posts
www.wesnetdesigns.com
7th Ranked






Re: Custom Module: Error in FillObject 

Other than a logic error resulting in an endless loop, the most frequent cause of stack overflow exceptions seems to be accidentally referencing what should be the name of a member variable in a Property get/set with the name of the property and not the name of the member variable.  This is most common in case-sensative languages such as C# where lower case is often used for the member variable and camel case for the property name.  It can also happen in VB as follows where Name rather than mName has been used in either the Get or Set or both:

Private mName As String

Public Property Name As String
    Get
       Return Name
    End Get
    Set (ByVal Value As String)
       Name=Value
    End Set
End Property

So, I'd begin by checking the all the property declarations of the business object class.


Bill, WESNet Designs
 
New Post 3/17/2006 12:33 AM
User is offline Ray Booysen
9 posts
10th Ranked


Re: Custom Module: Error in FillObject 
You're right.

The ID property was declared as:

Dim _ID as integer
Public Property ID as integer
Get
    Return _ID;
Set
    ID = value;
End Property


Thanks for the help.  This is what I'll get for only working on this project late at night! :)
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Custom Module: Error in FillObject
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP