Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-11

DUint application

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Fortuny

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.

Antonio.

Reply by email

Unknown author
to Antonio Fortuny
Antonio Fortuny wrote 7 lines
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.

Michael.

Reply by email

Antonio Fortuny
to Unknown author

Le 19/11/2012 10:41, a ?crit :

Show quoted text 15 lines
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.

Show quoted text 9 lines
Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email