Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00640164
Message ID:
00640223
Views:
14
Kevin,

1) start by debugging it as a normal VFP class oX = createobject( "TheClass" ) once that works

2) debug it as a COM oXCOM = createobject( "TheDLL.TheClass" )

both these will allow you to fully use the debug facilities of VFP.

Then you have to debug it as a server which might surface a whole host of problems because the DLL will operate in an enviroment that is different than your dev time environment.

To aid server debugging you can use a logical property to control output to a text file that can be viewed in IE while your code is running. You can use a simple click of the refresh button to get the new output. Or use Notepad which will not hold a hard lock on the file, you can not use Wordpad or VFP to view the file because the file can not be written to while they have the file open.
if ( this.lDebug )
   strtofile( "now I'm doing this " + program(), "c:\temp\TheDLL.txt" )
endif
>How do I debug a DLL?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform