NetTalk Central

Author Topic: I need some direction on Multi-dll app  (Read 4277 times)

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
I need some direction on Multi-dll app
« 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
« Last Edit: August 21, 2010, 07:00:05 PM by ccordes »
Real programmers use copy con newapp.exe

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: I need some direction on Multi-dll app
« Reply #1 on: August 22, 2010, 09:09:38 AM »
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
Real programmers use copy con newapp.exe

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: I need some direction on Multi-dll app
« Reply #2 on: August 22, 2010, 07:00:56 PM »
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

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: I need some direction on Multi-dll app
« Reply #3 on: August 23, 2010, 04:51:36 AM »
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
Real programmers use copy con newapp.exe

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: I need some direction on Multi-dll app
« Reply #4 on: August 23, 2010, 03:11:22 PM »
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

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: I need some direction on Multi-dll app
« Reply #5 on: August 23, 2010, 04:32:28 PM »
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
Real programmers use copy con newapp.exe