Parameter is not valid

lancaster

Member
Licensed User
Longtime 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
Perform_Another_Sub
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
 

lancaster

Member
Licensed User
Longtime User
Erel,

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.

....DL
 
Top