Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Guidelines To Determining Component Problem

Status
Not open for further replies.

Creeder

Programmer
Jul 5, 2000
110
MY
HI all,

I guess many of you have written your own components to be used in your ASP pages. However finding the problem with a component it's a hard thing to do. What are the guide lines to follow in order to determine the problem of a component?

Thanks.

YJ
 
Creeder,

I don't know about guide lines, but...

Encapsulate as much of your solution as possible hopefully ALL OF IT, into classes that have nothing to do with COM. Then these classes can be used to build a 'normal' application in whatever language you are working with. This provides simple IDE debugging capabilities for 99% of your controls functionality.

Then you start your COM project and insert the classes into it and wrap them in the COM code. The COM code then serves as a thin layer to pass parameters to/from the classes you already built.

This technique does not solve all of the problems associated with COM development but it at least reduces them to the essence of COM and not 'your code'.

"But, that's just my opinion... I could be wrong".
-pete
 
I use a test harness built in visula Basic to call the COM component. I also use a LOT of error handling. When testing your comp0onet use a routine which writes as much error information as possible to a text file for future reference.
The use of a test harness in Visual Basic means that if your COM component has been written in VB then you can use VBs complete suite of debugging tools which makes your life a lot easier. Test in the IDE before deploying to ASP is the way to go.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top