NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: ccordes on August 21, 2010, 06:58:17 PM
-
NT 29 - C72-7350
I've got the sample 20 working fine.
I think I follow the example, and everything compiles fine but when I run either the main app or the webserver sub-app I get an exception.
Can't even debug it. I set a breakpoint at the call the WebServer, Go and Pop!
I'm at wits end here and really need to show this client that SOMETHING works!
Here is the exception -
Exception occurred at address 00377551
Exception code C0000005: Access Violation
Process PID=4880 Image: C:\Documents and Settings\All Users\Documents\C7Projects\DrugStore\TheDrugStore\TheDrugStore.exe
Thread 1 Handle=00000078 TID=2308
EAX=00000000 EBX=00000009 ECX=00403B80 EDX=00403B4C
ESI=015F30F4 EDI=015F30FC EBP=0013FF38 ESP=0013FEAC
EIP=00377551 FLG=00010246
Call Stack:
00377551
010A156E
010A1283
Thanks for ANY suggests as to where to start.
Is it necessary to have all the sub-apps in the same directory as the main? I have mine divided up into their own folders.
Chris
-
Answering my own question again - I'm becoming a one-man forum! ;)
The exception is what happens when you use a variable for the port number and put a very large number in it. I don't know where the number came from, but somehow it got saved in the ini file.
I would STILL like to know how anyone works out the details of working on a multi-dll app.
I'm looking at a potentially large project and would like to start off in the right direction. I'm keeping notes.
Chris c
-
Hi Chris,
I have a Multi-Dll app running which is a mixture of web stuff and some older win apps with reports, functions etc.
All the usual rules apply to multi-dll except in your main web app (I think the one with the webserver proc) you need to list all your web procedures as external to this app. If you don't you will get a compiler error.
HTH's,
Kev
-
Thanks, kev.
I may tap you on the shoulder soon for advice. Do you have multiple web apps as DLLs? and can those web apps run on their own as an exe for testing? That is where mine fall apart right now. Everything works as long as I don't include a webserver, handler and indexpage in the sub-app.
chris
-
No I have them linked into a single exe. I saw your other post. Maybe you should just create an exe for each sub app that just links in the dll you want. Probably a little time consuming to setup initially. Actually, check out the multi-site example. I know you can link in different dll'd representing different web apps. This maybe a better approach with less work.
Kev
-
I deleted the webserver, handler, index and pageheader and footer in the sub apps and now they are happy.
Now when I test, I get a record not found when I try to change a record on a browse.
Between this web nonsense and C7 locking up every 20 minutes, I'm going nuts! :o
chris