Runtime Error 380. Invalid property value-VBForums
Results 1 to 5 of 5

Thread: Runtime Error 380. Invalid property value

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    3

    Question 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.

  2. #2
    New Member
    Join Date
    Jul 2005
    Posts
    5

    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?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    3

    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.

  4. #4
    New Member
    Join Date
    Jul 2005
    Posts
    5

    Re: Runtime Error 380. Invalid property value

    Do you use the Set keyword? Set MainForm.ds = Me

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    3

    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.