NetTalk Central

Author Topic: error message  (Read 3496 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
error message
« on: August 29, 2013, 02:48:51 AM »
please do anybody know to solve this problem in clarion 8  Error : Too many segdef in file:20,4000

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: error message
« Reply #1 on: August 29, 2013, 03:42:19 AM »
Hi Olu,

I got smashed by this when upgrading to NT6 last year, and then to NT7 this week.

What I had to do:

1. Break apart my webserver procedure into a couple of sub-webserver-apps along with the main.
  ** important to remember when doing this, you need to declare ALL the procedures in the sub apps in the main webserver exe. All of them. ALL!
2. Sort the clw files by size and find the ones over ~1450 .. This seems to be the limit, at least for me.
3. When I find those clws, work out what procedures are there, and separate them out.
4. If this doesn't work, then redistribute procs into lots of 10, then do 2-3 again.

With the segdef error can also come a "not enough space" error, which usually means disk space, but for me was hitting the clarion limit (i think).
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: error message
« Reply #2 on: August 29, 2013, 09:41:23 PM »
Stu's explanation is a possibility, but will only apply if you have a very large number of procedures.

The likely solution is that you have one procedure with too many "routines" - typically a form where multiple routines are generated for each form field. The limit seems to be about 150-200 fields with the Comments on, and a few more than that with the comments off.

the best approach is to
a) repopulate the procedure into a moudule by itself.
b) turn off comments on the form if you can
c) refactor the form so all the fields are not on a single form.

cheers
Bruce

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: error message
« Reply #3 on: August 30, 2013, 12:21:51 AM »
Oh, yeah. That too. The segdef came about the first time because I had a form that was too big.
Cheers,

Stu Andrews

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: error message
« Reply #4 on: August 30, 2013, 01:54:22 AM »
Thanks guys I repopulate the procedures into 5 per module and seems to solve the problem.