Subject:
|
Re: LPub
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Sat, 21 May 2005 00:00:51 GMT
|
Viewed:
|
1051 times
|
| |
| |
In lugnet.cad, Kevin L. Clague wrote:
> I have no explanation for this. The creation of the LPub dir and all
> subdirectories is all done in one function. The LPub\LDraw dir is the first one
> created.
I've seen the described problem when I select a file from the recent files list,
and then try to render it. Everything works fine if I manually open the file,
but it definitely fails if I select it from the recent files list after having
deleted the lpub directory that lpub creates.
> I just tested LDView and ldglite on windows 98. ldglite worked just fine.
>
> LDView does not work well. In both cases I create a batch file with all the
> things needed, and then do a CreateProcess in which to run them (using $COMSPEC
> /C ldview.bat > ldview.out).
>
> What happens is that LPub sees LDView as finished, before LDView actually
> finishes. LPub does not find the rendered image, and barfs. When I examine the
> Images directory (in computer time *much much* later) the image exists.
>
> Does anyone have any ideas?
I'm not sure off-hand, but I believe that LDView behaves differently from
ldglite since it doesn't have a console. If you run LDView from the command
line, LDView launches, and the command line immediately gets control back, even
though LDView is still running. If you run LDView with command line arguments
to generate an image, the same thing happens. I'm not sure what happens if you
put LDView in a batch file (whether the batch file continues to run before
LDView exits).
Note that I think all this behavior is directly related to the fact that LDView
isn't a console application. Does ldglite show a console when you run it? (I
seem to remember that it does.)
If LDView's non-consoleness is the problem, it should be fairly straightforward
to create a small launcher console app that runs LDView with the given command
line, and then waits for LDView to exit using Windows Process Control API calls.
--Travis
|
|
Message has 1 Reply: | | Re: LPub
|
| (...) <snip> (...) Hi Travis, I used to do a CreateProcess on LDView (rather than the batch file) with the same parameters as I provide in the batch file, and I get blank images. This is why I reverted to a bach file. Here is the code that I use: (...) (20 years ago, 21-May-05, to lugnet.cad)
|
Message is in Reply To:
| | Re: LPub
|
| (...) I have no explanation for this. The creation of the LPub dir and all subdirectories is all done in one function. The LPub\LDraw dir is the first one created. I just tested LDView and ldglite on windows 98. ldglite worked just fine. LDView does (...) (20 years ago, 20-May-05, to lugnet.cad)
|
15 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|