Le 19/11/2012 10:41, [email protected] a écrit :


On Mon, 19 Nov 2012, Antonio Fortuny wrote:

Hi folks.

Do you think that a FPCUnitTest application could deal with TDataModues ?
I ask this question bacause when the next statement is executed:
 Application.CreateForm(TDM, DM);
I get a runtime exception (EStreamError) telling that
Failed to initialize component class "TDM": No streaming method
available.

Try adding the lresources unit to your program's uses clause. That
should help.
You're absolutely right. I was so focused on how to manage DUnit and Forms (and DataModules) that I did forget a so simple reason. Other problems are arising but this one I've got rid of it.

Thanks a lot Michael.


Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to