PDA

View Full Version : Dynamic scan progblem



NewsArchive
09-29-2005, 12:44 AM
Except for the spelling (mine) I havea small problem with dynamic scan..

It does not seem to follow the rules of staying in the exe startup
directory, and i can see no way to force it to run in certain directory.

The result is that i get stoppages and errors in my program because it
can not find certian files

Regards

ben

NewsArchive
09-29-2005, 12:45 AM
Ben,

Sorry, I don't know what you mean by "rules of staying in the exe
startup". A dynamic scan monitors your system (not the default or "startup"
folder) as you execute an application and determines which 32-bit DLLs and
OCXs (dependency files) are used by the application.

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-29-2005, 01:14 AM
Ben,

And you have to run through as much as possible features in your program to
make sure your application calls all dynamically loaded DLLs/OCXs.

For example, your program dynamically loads a reporting DLL. If you run
your app and let Dynamic Scan monitor your system but you never run the
reporting feature, then this DLL is never loaded and dynamic scan is unable
to find this DLL.

Please use Static Scan if your DLLs are statically loaded.

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-29-2005, 05:37 AM
Hi

When an application runs, it has a "start in" directory it start in and
all other references to directories are related to this directory... the
same one you get when you issue a "path()" command in clarion.

Now normally clarion programs don't change the "path()" directory...so
you can just add files you need to this directory and specify just their
name and the program will find them in it's "current path"

When doing dynamic sacan, it seems the "path()" changes to the directory
in which each dll it loads is located....

ie.. program start up in C:\Myprogramfilder......loads a dll in
c:\clarion6\bin (changes it's path to "c:\clarion6\bin"...loads a dll
in c:\windows\system32 (changes it's path to c:\windows\system32) .. and
then the program calles a report file called.."myreport", but instead of
getting it from c:\Myprogramfilder...it tries to get it from
c:\windows\system32..

i hope this explanation helps more...

Regards

Ben

NewsArchive
09-29-2005, 05:37 AM
Ben,

Dynamic Scan only monitors the memory (the function never changes the
current path) and it displays which DLLs/OCXs Windows has loaded. The path
comes directly from Windows!

HTH,
Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-29-2005, 08:12 AM
Granted...

My problem is that if i run the exe out of it's instaleld
directory...everything works fine.

When i run the Dynamic scan...I get lots of errors and fiels not found...

I need to run dynamic as I have modules loaded at runtime only on
conditions..

Regards

ben

NewsArchive
09-29-2005, 08:12 AM
Ben,

Sorry, I think I misunderstood you. I thought the detected list of
dependencies was incorrect.

So the problem is that the default path is not set to the directory in which
your application resists?

Thanks,
Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-29-2005, 08:12 AM
Hi

Yes..

Ben

NewsArchive
09-29-2005, 08:13 AM
Ben,

Okay. In the next build (I'll try to make it available tomorrow) I'll set
the current folder to the directory in which your application resists.

Thanks,
Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-29-2005, 08:13 AM
> Sorry, I think I misunderstood you.

I told you pictures is better....<grin>

Ben

NewsArchive
09-29-2005, 09:10 AM
Added! Thank you.

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-30-2005, 05:36 AM
>....directory in which your application resists.

thanks ... now it won't RESISTS any more ....<vbg>

Have a good day

Ben