2 ActiveX process share one newlisp.dll

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

2 ActiveX process share one newlisp.dll

Post by HPW »

I ran into a new problem with the DLL.
Using it from 2 different instances of a WIN-Standard-exe gives no problem.
Both sessions have their own memory-workspace and work side by side.

Now I get a different situation. I call newLISP.dll from an ActiveX component embedded in an HTML-file running in iexplorer. Now I run a second instance of iexplorer with the same HTML-file. Now I get errors complaining about protected symbols in my initialisation files. So it seems to use the same DLL/memory workspace. I see 2 instances of iexlorer in the process list but it maybe that the ActiveX-function share the same DLL.

The only solution which came to my mind, is to make unique newLISP.dll's for each instance on the fly to avoid this conflict.

Other idea's ?
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

>> make unique newLISP.dll's

Yes, that is what comes to my mind too, you could just copy to a different name. I think the reason is that the Active-X controls are all childs of the IE browser, so any new Active-X control will take the exisiting instance of newlisp.dll.

I wonder if this could work to your advantgage by sharing variables etc., or it may be dangerous and simply crash at some point, when two Active-X controls fiddle with the same memory in newLISP.

I also wonder if there is any option when importing DLLs in Active-X to force a new instance?

Lutz

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

Lutz wrote:>> I think the reason is that the Active-X controls are all childs of the IE browser, so any new Active-X control will take the exisiting instance of newlisp.dll.
But there are 2 instance of the IE browser in the process list. So the controls are a child of different main-processes.
Lutz wrote: I wonder if this could work to your advantgage by sharing variables etc., or it may be dangerous and simply crash at some point, when two Active-X controls fiddle with the same memory in newLISP.
Cannot think of a possible use.

I will make some further tests to get it to work.
Hans-Peter

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

It seems to be a general problem with the ActiveX running twice.
The ActiveX itself has problem and shares variables between 2 IE session.
Have to further rersearch.
Hans-Peter

Locked