Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11829
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: How do I correctly handle error codes returned by App:Run in Visual Objects? |
| Date | 2018-08-20 14:34 +0200 |
| Message-ID | <ftvqriFnuouU1@mid.individual.net> (permalink) |
| References | <2d545562-32ac-44f6-b10b-7c8f6b387548@googlegroups.com> |
Hi Jafar, if you have a non too old VO version, you should have also the SDK sources to the GUI classes. And if you look at the code in the App:Run() method, you will find exactly one line of code: RETURN WinExec(String2Psz(sCommand), SW_SHOWNORMAL) So to understand what error will be returned, look at the WinExec function: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase- winexec And there is effectively stated: 0 The system is out of memory or resources. So the VO documentation is correct. Wolfgang Jafar wrote: > I was just reading through the Visual Objects documentation about > error codes in App:Run, but I can't really make sense how the error > codes correspond to windows errors. > > For example the VO documentation says 0 is an out of memory error: > > '(e.g., 0 means "out of memory," 2 means "file not found," etc.);' > > However, according to this Microsoft page 0 corresponds to a > successful completion: > https://docs.microsoft.com/en-us/windows/desktop/debug/system-error-co > des--0-499- > > > '0x0 > The operation completed successfully.' > > Which should I use to determine the meaning of these error codes? The > VO documentation or the Microsoft page? --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How do I correctly handle error codes returned by App:Run in Visual Objects? Jafar <jafar@marti-orbak.nl> - 2018-08-20 01:03 -0700
Re: How do I correctly handle error codes returned by App:Run in Visual Objects? jafar@marti-orbak.nl - 2018-08-20 01:08 -0700
Re: How do I correctly handle error codes returned by App:Run in Visual Objects? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-08-20 14:34 +0200
Re: How do I correctly handle error codes returned by App:Run in Visual Objects? jafar@marti-orbak.nl - 2018-08-20 07:27 -0700
Re: How do I correctly handle error codes returned by App:Run inVisual Objects? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-08-20 20:21 +0200
Re: How do I correctly handle error codes returned by App:Run in Visual Objects? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-08-20 23:27 +0200
Re: How do I correctly handle error codes returned by App:Run in Visual Objects? jafar@marti-orbak.nl - 2018-08-21 00:43 -0700
Re: How do I correctly handle error codes returned by App:Run in Visual Objects? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2018-08-21 12:30 +0200
csiph-web