Hi Benj
txs for response!!
no hurry - but will be fine if this will gone one time
Benj wrote:
Sorry for the delay.
no problem benj!
Benj wrote:
I've looked into this and it looks like the DLL macros can be called at any time, even when the simulation is stopped.
..
yes you are right..
Benj wrote:
So it looks like for now the best way to unload the DLL is to close Flowcode or open another project. If opening a new project or an existing project that doesn't call the DLL then it should be unloaded. If this doesn't happen then it sounds like a bug.
the last - this is the fall/problem benj, the dll is only unload if fc will be close, and reopen.
if you change the project ( project with dll..close, open new project ) the dll is still loaded.
btw but i can live with this..:
if a project has a dll, if open the project ( only load the project nothing do more ) the dll is load with the project.
if the dll has a function "on load" then this function will be call without a makro call at this step/time.
this is ok - but this is not correct 100 procent, because, the dll is call in a step and in a macro, then the dll must load..
but i can live with this. this is a little and not so important.
btw example:
you have a showmessage function in the dll if dll is load.
this showmessage is call if the project with the dll is loaded ( without the macro in this step )
if the showmessage has a timer for unshow then fc processing is..."disturbed"
if this is a "license hint" and wait for a user push" then it can be, that the processing "freezes".
so i change this to not show if dll will load, i changed this with a tag - if a function is called, the tag will check,
if the message was not showed, then the message now show, if the messages was showed ontime, the tag is 0, then
no message comes again...
benj, the first, dll is only unload if fc is close and reopen is not so good.
example:
you develop/debug a dll
then make compile,
then make the dll, example in a fc project folder, example dll-project. name: test.dll
then start fc
then create a project
then insert a icon macro for dll call and load the test.dll from project folder
then run the project
ok.
now the dll is loaded and will be loaded.
example if you change the project
the dll is not unload, this is the problem.
example
if you want create a new function in the dll now in your develop
and try to make compile, the dll is loaded by fc and allow not to override the test.dll
if fc is close, then the dll ( test.dll ) is unload and given free,
now you can compile again the dll.
then must restart fc.
if you make 25x and more start/restart fc ...for develop a dll ..
'crazy' 'horror'
..
i hope i have wrote right in english..
best wishes
rudi
workaround:
i can shot the dll over handle ( not process manager ), but fc then make a "Protection Fault" - this is normal, because handle is missing then if fc is close.