Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build failes using build method
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
01549875
Message ID:
01549974
Views:
84
Always the same with any project. I created a project with one form, still the same. manually fine, programatically no good. I am going to try Dragan's suggestion of another vfp instance and see what happens.

>And with plain BUILD EXE, are there any other errors reported?
>
>Anyway, I think that it is an indication that either there is a line of code in particular module that errors out, or the project pjx file is corrupted.
>What if you build a new project from scratch (either manually or using BUILD PROJECT command or both)?
>As a last resource you can scan pjx and recompile prg and forms one by one.
>
>
>>It still fails the same way without setting any options, and BUILD EXE fails the same way also.
>>
>>
>>>Are you sure that it is nothing to do with aproject properies that you are setting before calling aproject.build ?
>>>What if you omit all of them and call build after aproject = _vfp.Projects[1] line?
>>>What if instead of _vfp.Projects you use plain build exe command?
>>>
>>>
>>>>No. the point is that everything works fine manually but fails programatically.
>>>>
>>>>
>>>>>>Function argument, value, or type is invalid
>>>>>>
>>>>>>>>project that works fine to build interactively fails using BUILD EXE or the prject.build method. I cannot find this anywhere, but I am wondering if "errors" like array not found could be the cause,.
>>>>>>>>
>>>>>>>>It does not seem likely or logical, as the user presses ignore all, and the errors are hamless. but I cannot figure out the issue. The build attempt returns .f. and creatss a small stub .exe. Here is typical code, in which to all apperances it works -- there is no discernable difference in the time or processing apperance between the interactive build and the programmatic build.
>>>>>>>>
>>>>>>>>MODIFY PROJECT foo1 nowait
>>>>>>>> aproject = _vfp.Projects[1]
>>>>>>>> aproject.versionnumber = blah
>>>>>>>> aproject.versioncompany = blah
>>>>>>>> aproject.versionproduct = blah
>>>>>>>> aproject.versioncopyright = blah
>>>>>>>>
>>>>>>>> y = JUSTSTEM(aproject.name) + ".exe"
>>>>>>>> z = aproject.build(y, 3 , .f. , .f.) && filename, type, rebuildall, showerrors
>>>>>>>> aproject.close:
>>>>>>>
>>>>>>>
>>>>>>>If you use aerror(), is there any error reported?
>>>>>
>>>>>Then try to open the project and rebuild it manually and with "recompile all files" option. Will you get the same error?
Previous
Reply
Map
View

Click here to load this message in the networking platform