Parameter is not valid

Discussion in 'Questions (Windows Mobile)' started by lancaster, Oct 27, 2008.

  1. lancaster

    lancaster Member Licensed User

    I have an desktop application which runs 100% under B4PPC (6.50) and as a (optimized) compiled application on my development machine.

    When I install it to a Second XP(SP3) machine (without B4PPC), I get

    An error occured on sub __main_app_start.
    Parameter is not valid.

    I have moved the entire code from 'App_Start' to 'Another_Sub' and just left a single call in 'App_Start' as below..

    Sub App_Start
    End Sub

    But I still get the same error which suggests to me that the problem occurs before the application even starts.

    The target machine is running .NET SP1

    The application uses the following desktop DLL's: ControlsEx, DesktopOnly, RegistryDesktop and SQLDesktop. I also have the desktop SQLlite dll on the target machine.

    Is there another dependency missing?

    Thanks in anticipation.

    Dave Lancaster
    Worcestershire, UK
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't think that it is a dependency problem.
    app_start is only called after the program loads all libraries and builds all forms.
    Maybe there is some data file or image file missing?
  3. lancaster

    lancaster Member Licensed User


    Thanks for the clues. You're a star !!

    It turned out to be FOLDER.BMP and OPENFOLDER.BMP as used with the TreeView in ControlsEx. I was using the Tree.AddImage1 method and not the Tree.AddImage2 method.

    Of course, the AddImage2 method uses images embedded into the executable so separate image files are not required.

    Thanks again.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice