[Lazarus] DUint application

Antonio Fortuny a.fortuny at sitasoftware.lu
Mon Nov 19 10:48:42 CET 2012



Le 19/11/2012 10:41, michael.vancanneyt at wisa.be 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
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>






More information about the Lazarus mailing list