Re: [BLACKBOX] Menus not found

From: Douglas G. Danforth <"Douglas>
Date: Sun, 16 Mar 2008 16:01:24 -0700

----boundary-LibPST-iamunique-298419140_-_-
Content-type: text/plain

Aubrey,
He is running XP.
All of my files use relative paths.

I use DevPacker.ListLoadedModules to create the
list for DevPacker.PackThis.

I first run my application in the development environment and
exercise all of its functionality and then call DevPacker.ListLoadedModules.
In this way embedded bitmaps are included in documents and so
are the necessary handlers for Forms. I, of course, append my resources
and documents to the list.

If I instead use DevDependencies.CreateTool then the generated list is
incomplete.

 From the documentation for DevPacker I find
"Absolute vs. Relative paths in filenames
Imagine that BlackBox is installed in directory D:\BlackBox. Then the
file name D:\BlackBox\Std\Code\Log.ocf (absolute path) denotes the same
file as Std\Code\Log.ocf (relative path) as far as the packer is
concerned. But the packer packs the file into the exe-file with the path
given in the command. This makes a crucial difference for
HostPackedFiles which reads the exe-file. If the exe-file for example is
started in directory C:\temp, and the program makes a call to StdLog,
then this command will work if the file was packed using a relative
path, but not if it was packed using an absolute path. On the other
hand, if the file was packed using an absolute path, a call to open file
D:\BlackBox\Std\Code\Log.ocf will work even if no physical drive called
D: is present on the machine."

Hence I would expect that no matter where my client puts the EXE file it
should run.
I just opened the EXE file in data mode and scanned for "c:" and did not
find any paths with such.

Thanks Aubrey for the heads-up on absolute paths.

I'm still not sure what is going on.

-Doug Danforth


Aubrey.McIntosh{([at]})nowhere.xy
> I do mean C:, D:, etc.
> The exe file has both options, with or without internal drive letter.
>
> There is some distinction whether you pack the files relative to the
> blackbox directory or using an absolute path. I was going to try to
> force some failure scenarios today, but I'm still finishing today's
> work on my own project. I was going to go through some basics, such
> as a write protected exe file, using a REALLY LONG path name to the
> executable, case sensitivity in file names.
>
> I did do an hour's exploration starting with HostPackedFiles, to make
> an installable "Audit" file system that would tell me everything that
> is going on and wrote to the system log. My effort on this is only
> enough to convince me it is the right place to approach the problem,
> but it might be something for you to be aware of. I don't think that
> would give you anything useful if you already run it on a clean
> machine without trouble.
>
> I don't notice where you mentioned what your client is running. Is he
> XP, or perhaps Vista?
>
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-298419140_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEF1YnJleSxccGFyDQpIZSBpcyBydW5uaW5nIFhQ
LlxwYXINCkFsbCBvZiBteSBmaWxlcyB1c2UgcmVsYXRpdmUgcGF0aHMuXHBhcg0KXHBhcg0KSSB1
c2UgRGV2UGFja2VyLkxpc3RMb2FkZWRNb2R1bGVzIHRvIGNyZWF0ZSB0aGVccGFyDQpsaXN0IGZv
ciBEZXZQYWNrZXIuUGFja1RoaXMuIFxwYXINClxwYXINCkkgZmlyc3QgcnVuIG15IGFwcGxpY2F0
aW9uIGluIHRoZSBkZXZlbG9wbWVudCBlbnZpcm9ubWVudCBhbmRccGFyDQpleGVyY2lzZSBhbGwg
b2YgaXRzIGZ1bmN0aW9uYWxpdHkgYW5kIHRoZW4gY2FsbCBEZXZQYWNrZXIuTGlzdExvYWRlZE1v
ZHVsZXMuXHBhcg0KSW4gdGhpcyB3YXkgZW1iZWRkZWQgYml0bWFwcyBhcmUgaW5jbHVkZWQgaW4g
ZG9jdW1lbnRzIGFuZCBzb1xwYXINCmFyZSB0aGU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3J0IG9uIHRoaXMgaXMgb25seVxwYXIN
Cj4gZW5vdWdoIHRvIGNvbnZpbmNlIG1lIGl0IGlzIHRoZSByaWdodCBwbGFjZSB0byBhcHByb2Fj
aCB0aGUgcHJvYmxlbSxccGFyDQo+IGJ1dCBpdCBtaWdodCBiZSBzb21ldGhpbmcgZm9yICB5b3Ug
dG8gYmUgYXdhcmUgb2YuICBJIGRvbid0IHRoaW5rIHRoYXRccGFyDQo+IHdvdWxkIGdpdmUgeW91
IGFueXRoaW5nIHVzZWZ1bCBpZiB5b3UgYWxyZWFkeSBydW4gaXQgb24gYSBjbGVhblxwYXINCj4g
bWFjaGluZSB3aXRob3V0IHRyb3VibGUuXHBhcg0KPlxwYXINCj4gSSBkb24ndCBub3RpY2Ugd2hl
cmUgeW91IG1lbnRpb25lZCB3aGF0IHlvdXIgY2xpZW50IGlzIHJ1bm5pbmcuICBJcyBoZVxwYXIN
Cj4gWFAsIG9yIHBlcmhhcHMgVmlzdGE/XHBhcg0KPlxwYXINCj4gICBccGFyDQo+ICAgXHBhcg0K
XHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRo
IGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19AA0K
Q28=
----boundary-LibPST-iamunique-298419140_-_---
Received on Mon Mar 17 2008 - 00:01:24 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:57 UTC