LoadLibrary() infinite loop

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #35258
    Kujo
    Participant

    Hello,

    I have developed a DLL (not a COM object) for my company that should be able to works if called by a program or by a script from IIS web site (in this case I'm using c#).

    The DLL works fine if it is called by a executable (even if the executable is made in c#), but when it is called from the script inside IIS, the function LoadLibrary goes in an infinite “loop”.

    In order to show this error is enough to put one AC component (is not important which, it can be sSkinManager or sPanel or sLabel, …) in the uses clause, even if the components are not used.

    I also checked with a “clean” DLL but the problem is the same; I tried to compile the DLL with the “runtime package” option enabled, but nothing is changed.

    If I remove any declarations of the AC components, all works fine.

    Thank you in advanced.

    OS: Windows 7 64 bit (but the problem is present also with other Windows, 32 bit and 64 bit)

    AC: 7.66

    Delphi: XE2 (with all the patches installed)

    #48618
    Kujo
    Participant

    Hi Serge,

    do you think there is a solution for this strange problem ?

    Thanks.

    #48634
    Support
    Keymaster

    Hello

    I can't make a test app, but you can try to comment the initialization part in the acShellCtrls.pas

    Code:
    initialization
    InitSystemImageList;
    CreateDesktopFolder;
    { InitializeCriticalSection(CS);
    OleInitialize(nil);}

    Maybe it helps.

    #48678
    Kujo
    Participant

    Hello,

    I checked your suggestion but nothing is changed. If you want to try yourself, attached there are two zip:

    one is the web site, the other is a simply dll.

    In order to see the error is necessary:

    1. unzip the “website2.zip” file in a temporary folder

    2. download Visual Web Developer 2008 Express from Microsoft website (is free) and install it.

    3. Run Visual Web, select “Open web site” from the “file” menu and select the folder “Website2”. Now you can use the debugger included in Visual Web.

    Best Regards.

    #48696
    Support
    Keymaster

    I will research it soon.

    Problem occurs with using of the Visual Web Developer 2008 Express only?

    #48741
    Kujo
    Participant

    I'm sorry for the late in the answer but I was out of office.

    The problem is visible also in the published web site (IIS).

    I use Visual Web only for debug purpose because is more easy than do a debug of a published web site.

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.