#1 2015-01-12 14:44:08

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

mormotMVC Automatic View Template Creation raises Exception

Hi AB,

in mormotmvc.pas an exception raises at line 732 :

          info.interfaceName := fFactory.InterfaceTypeInfo^.Name;

Exception: "Erste Gelegenheit für Exception bei $74BB4598. Exception-Klasse EDocVariant mit Meldung 'Impossible to find "interfaceName" property in an array'. Prozess Service.exe (3204)"

cause interfaceName is unknown here.

To reproduce rename one if the existing View - Names / or View Files in the Folder in Sample 30

Last edited by itSDS (2015-01-12 14:46:26)


Rad Studio 12.1 Santorini

Offline

#2 2015-01-12 16:45:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: mormotMVC Automatic View Template Creation raises Exception

During run?

Offline

#3 2015-01-13 09:55:45

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: mormotMVC Automatic View Template Creation raises Exception

Sry i thought my description was clear.

Use Example 30

To reproduce rename AuthorView.html to AuthorView_.html  // The code where a template is missing must be reached.
Then start the example --> Exception in creating new AuthorView.html and Program - End.


Rad Studio 12.1 Santorini

Offline

#4 2015-01-13 10:55:46

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: mormotMVC Automatic View Template Creation raises Exception

Now I understand.
This was indeed a regression, which may appear on a void project.

Void template generation has been fixed by http://synopse.info/fossil/info/a5ea4af2e4

Thanks for the feedback.

Offline

Board footer

Powered by FluxBB