Unigui ISAPI dll

Hello,<div id="ConnectiveDocSignExtentionInstalled" -extension-version="1.0.4">


I'm trying to use Flexcel inside a Unigui ISAPI dll.
When running as a standalone windows executable everything is fine.
When compiling as an ISAPI dll I can't get the dll started using IIS.
It simply hangs.

I know about the procedures FlexCelDllInit procedure and FlexCellDllShutdown.
I call them in the create of the form but no luck.

Any suggestions.

Thx,
Dominique

Hi,

What happens if you don't call FlexCelDllInint/Shutdown in the form create/destroy? 
Does it hang too?

FlexCelDllInit basically calls GdiPlusStartup https://docs.microsoft.com/en-us/windows/desktop/api/gdiplusinit/nf-gdiplusinit-gdiplusstartup

And as you can see from that page, it can be kind of complex to know the moment where to call it. FormCreate might be too early (but I don't really know about UniGUI events).

So if we try without calling it at all it should still fail, but not hang. If that is what happens we can try to put the FlexCelDllInit call in other place.
I imagine you have already seen this thread: https://www.tmssoftware.com/SITE/forum/forum_posts.asp?TID=4781&OB=ASC

As mentioned there, we normally call FlexCelDllInit in the GetExtensionVersion event and call the shutdown in TerminateExtension. Probably create/destroy of the form aren't the right place to call it.