NetTalk Central

Author Topic: (59) Multi site app - Bug in 8.28  (Read 5255 times)

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
(59) Multi site app - Bug in 8.28
« on: October 16, 2014, 02:52:22 AM »
Hi all, I am having no joy with this at all, I have tried 2 builds of C9 on 2 pcs even
Yes I have read the doco, - bought the pdf - watched the webinars several times, esp 27 & 30

I have example (59) compiled in C9.1 11242, with NT8 8.28, it has WinEvent 3.88,  XFiles 2.54  String Theory 2.08

Compile the site1 app as an exe, it works OK  *****

Set site1 to release mode, DLL linked as DLL
Ensure the prototypes are a'la Bruce (see image below 1 & 2)

compile the host with the multi dll setting  (4)
compiled the host and site together (3)

- note both apps are set to port 80, but I have tried this originally on port 88

-------------
Host compiles OK, but kills the DLL instantly (5)
I have tried path names ending in slash, without slashes, every combination
- To test what is broken, I tried compiling app (3) into a DLL and rename it as site1.dll - and that fails in the same way, so I think I have a Hose error.

---------
I have zipped up my apps here, could someone please compile them for me and see it they work on your pc
And if anyone has a working host app and maybe a host exe - I would be very thankful,  I would love to see this work.

Kevin

[attachment deleted by admin]
« Last Edit: October 19, 2014, 09:01:17 PM by MyBrainIsFull »

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Help Please (59) Multi site app - I give up
« Reply #1 on: October 16, 2014, 08:33:32 AM »
Kevin,

     Not sure this will fix your issues, but have you tried adding code in the WebHandler, Process Link embed (before parent call) for your files?

Something like:

PatientEnrollment{prop:name} = clip(self.site.appPath) & 'PatientEnrollment.tps'
Institution{prop:name} = clip(self.site.appPath) & 'Institution.tps'
Users{prop:name} = clip(self.site.appPath) & 'Users.tps'

Jeff
« Last Edit: October 16, 2014, 08:36:12 AM by kingja »

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Help Please (59) Multi site app - I give up
« Reply #2 on: October 16, 2014, 03:05:42 PM »
Thanks for the reply
No Jeff, I guess you are referring to the Site1.app, I left it as Capesoft made it
Bruce has the alias and mailbox tps named there.

I have attached the site1.app and host.app in a zip

K

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Help Please (59) Multi site app - I give up
« Reply #3 on: October 17, 2014, 07:18:06 AM »
Hi Kevin.

I do use the Multsite and it works great.

I did try to compile the Multsite6(59) which is shipped with NT8.28 and this one I had problems with.

My solution was to install NT8.27 and Make a copy of the Multisite6 and compile that version. Only a couple of small errors which is due to me not having insight Graphing but just comment out the three errors and the app compiles great.

I do change the listen port to port 80 rather then sg:ListenOnPort  (I think setting do not load correctly)

I reinstalled NT8.28 and now the the copied version still work OK.

Hope this helps your issue.

Cheers

Vinnie

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Help Please (59) Multi site app - I give up
« Reply #4 on: October 17, 2014, 10:57:57 AM »
Hi Kevin

Just found another two issues.

Check Surppress Error Messages in Webserver Extension.

claCLA.dll not copied into working folder

Cheers

Vinnie


MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Help Please (59) Multi site app - I give up
« Reply #5 on: October 17, 2014, 01:54:32 PM »
Thanks Vinnie
I have tried an old app, with no luck
copied claCla.dll over
and suppress errors is already on.

BUT
I still get the dll caused a GPF in the host

Would you mind compiling my apps please?  they are in the zip of the original post

Thanks anyway
Kevin

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Help Please (59) Multi site app - I give up
« Reply #6 on: October 18, 2014, 07:56:50 AM »
Hi Kevin

Sorry that did not work out for you.

The zip file does not have any files in it on my system please can you repost the file.

Cheers

Vinnie

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Help Please (59) Multi site app - I give up
« Reply #7 on: October 19, 2014, 09:00:26 PM »
Thanks for your help Vinnie

I put up a new VM machine, an older C9, and NT 8.25  NOT 8.28
The 8.25 works like you say, there looks to be a bug in 8.28

ALSO for new readers, if your DLL fails, then Host.Exe generates an ini file HostOk.Ini and puts your ip address in it

Then when the host starts again, even if you fix everthing, the host.exe claims the dll has caused a GPF - - EVEN IF IT HAS NOT

ie, I took the host.exe & site1.dll that Vinnie kindly sent me, and dropped them into my folder, and they GPF'd,   but work ok in his folder.


If you look in the code, there is this gem - note the addError line
So either delete HostOk.Ini each time - or if you can get into the setup, uncheck the "Host Inactive"

LoadAllServers routine
  hostok = getini('Starting','Starting','','.\hostok.ini')
  Access:WebServers.UseFile()
  set(WBS:HostKey)
  Loop until Access:WebServers.Next()
    if lower(WBS:HostName) = hostok
      WBS:HostInactive = 1
      Access:WebServers.Update()
      AddError(ThisWebServer._SitesQueue.HostName,'DLL Caused GPF - automatically made inactive')
    end
    do SyncServer
  End
« Last Edit: October 19, 2014, 09:03:22 PM by MyBrainIsFull »