This project is read-only.

Creating a list of Page, or custom containable type throws SystemOutOfMemoryException

Topics: Writing modules
Jan 18, 2012 at 3:54 PM
Edited Jan 18, 2012 at 3:54 PM

Trying to create a listing of my own Custom Type

            ContentDefinitionManager.AlterTypeDefinition("Buyers Guide",
                cfg => cfg
                    .WithPart("CommonPart", p => p.WithSetting("DateEditorSettings.ShowDateEditor", "true"))


But when creating a list of this custom type.. after a long wait.. this error gets thrown


Line 147:
Line 148: // allocate instance and set record property
Line 149: contentItem = New(versionRecord.ContentItemRecord.ContentType.Name);
Line 150: contentItem.VersionRecord = versionRecord;

Any ideas?

Have also tried this with Page and the same error gets thrown.
Jan 18, 2012 at 5:31 PM

There shouldn't be any problem with this, so I wonder if "BuyersGuidePart" has an issue?

Jan 18, 2012 at 5:35 PM
We created a clean database, reenabled all the modules used, then tried to create the list and it worked.

Must be a problem with the data in the database.