|
Pages: [1]
|
 |
|
Author
|
Topic: Problems with Dunit and a Romote Data Module in Delphi 2006 (Read 403 times)
|
CharlesF
Newbie

Posts: 9
|
Hi I am busy setting up a dUnit test in Delphi 2006
The area I am trying test is in a TRomoteDataModule when I create and running the test I get the following Error -
EOleSysError with message 'Error loading type library/Dll'
Have any of you done go dunit working on a RDM module ? Is there any differnet that you had to do to make it work ?
Charles
|
|
|
|
|
Logged
|
|
|
|
|
jdawkins
|
I'm not sure but you probably need a call to CoInitialize in your test before you create the RDM.
I haven't had the opportunity to write anything with an RDM so I haven't tried this.
- Jody
|
|
|
|
|
Logged
|
|
|
|
CharlesF
Newbie

Posts: 9
|
I now have a solution to DUnit testing of a RDM
==> The main problem is BDS2006 does not create a Type Libary for then RDM in the test project
If the initialization part of the code is gets removed - one can convert the RDM into a data module and then do tests on it.
i.e.
{$IFNDEF TESTMODE} initialization TComponentFactory.Create(ComServer, TBetProcessRDM, Class_BetProcessRDM, ciMultiInstance, tmApartment); {$ENDIF}
Charles
|
|
|
|
|
Logged
|
|
|
|
|
jdawkins
|
Thanks for posting your solution!
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |