[External code]

Posts   
 
    
AlanD
User
Posts: 26
Joined: 19-Sep-2006
# Posted on: 30-Mar-2007 10:44:25   

Hi, I'm having a problem debugging an issue. It's definitely my issue, not LLBLGen. The problem I've got is that the call stack at the crash is this:

[External Code] DAL.dll!DAL.EntityClasses.SystemAttributeDefnEntityBase.InsertEntity() Line 768 + 0x23 bytes C# [External Code] DAL.dll!DAL.EntityClasses.RegistrationEntityBase.Save(SD.LLBLGen.Pro.ORMSupportClasses.IPredicate updateRestriction = null, bool recurse = true) Line 366 + 0x10 bytes C# [External Code] HelperClasses.dll!HelperClasses.Forms.frmRegistrationEdit.Save() Line 648 + 0x15 bytes C#

In a nutshell, I need to know what's happening in the second [External Code].

Is there a way of doing this? i.e. is there src code I can compile in debug mode so that when the crash happens I can inspect the parameters being passed to each method.

The actual error is An exception was caught during the execution of an action query: Cannot insert the value NULL into column 'DISPLAY_ORDER', table 'SYSTEM_ATTRIBUTE_DEFN'; column does not allow nulls. INSERT fails. The statement has been terminated.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.

Details: LLBLGen PRO designer: 1.0.2005.1.Final, July 6th 2006, SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll version: 1.0.20051.60719 C# 2.0, VS2005 Self-servicing

Thanks,

Alan

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 30-Mar-2007 11:12:24   

You should at least build the generated code projects as debug, otherwise you'll get the call stack like you've got it.

The error is likely due to the fact that you haven't set a field to a value or a related entity to a value, could you post the code snippet which executes the save (and thus also sets up hte entities to save) ?

It would also be wise to update to a later version of the runtime libraries and templates for 1.0.2005.1 (you can download these from the customer area on our website). So please download the latest installer for 1.0.2005.1, regenerate your code with that version and rebuild your app, so it uses the latest runtime libs.

Frans Bouma | Lead developer LLBLGen Pro