-
Jul 15th, 2005, 10:34 AM
#1
Thread Starter
New Member
Runtime Error 380. Invalid property value
Please help me in fix this problem. I have a VB application which I wanted to make it as a windows service. I got a VC++ code which I registered as Service and which will run my vb application as service.
I have a exe file which in turn uses two dll's to run the application.
In one of the init methods of my dll I tried to set a property to my MainForm as follows:
MainForm.ds = Me
When it reaches this code my application stops proceeding when I start it through the service. And sometimes it throws Runtime Error 380, Invalid property value. And says Automation Error.
This doesnt happen if I am not running my application as service.
Please help to fix this problem.
-
Jul 21st, 2005, 08:46 AM
#2
New Member
Re: Runtime Error 380. Invalid property value
Is your Mainform part of the DLL or part of your EXE? What is the property you are setting?
-
Jul 21st, 2005, 09:49 AM
#3
Thread Starter
New Member
Re: Runtime Error 380. Invalid property value
I have the MainForm in the dll. I am trying to see an object called DataShuttle which has the init method(main class) within which I am trying to set the MainForm.ds=Me. Infact even if I call MsgBox MainForm.caption it doesnt reach there.
-
Jul 22nd, 2005, 02:42 AM
#4
New Member
Re: Runtime Error 380. Invalid property value
Do you use the Set keyword? Set MainForm.ds = Me
-
Jul 22nd, 2005, 02:49 AM
#5
Thread Starter
New Member
Re: Runtime Error 380. Invalid property value
Yes, I do use the 'Set' keyword. Set MainForm.ds = Me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|