NetTalk Central

Author Topic: Too many segdef in file:1F,4000  (Read 4200 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
Too many segdef in file:1F,4000
« on: March 19, 2019, 02:45:39 AM »
Hi Guys,

I am receiving this error upon NetTalk app compile,

Has anyone come across this error before?

Too many segdef in file:1F,4000


rainerwallenius

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • Email
Re: Too many segdef in file:1F,4000
« Reply #1 on: March 19, 2019, 11:54:51 AM »
I see this often

Try to redistribute modules
Try using suppressing comments
I have one procedure where I can add a field only if I remove another :)

There are probably more ways of recovering...

:: rainer


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: Too many segdef in file:1F,4000
« Reply #2 on: March 21, 2019, 06:46:52 AM »
what build are you using?

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
Re: Too many segdef in file:1F,4000
« Reply #3 on: April 01, 2019, 12:02:14 AM »
Hi Bruce,

With this specific application V8.71

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: Too many segdef in file:1F,4000
« Reply #4 on: April 01, 2019, 05:18:33 AM »
Hi Rupert,

You need to upgrade your NetTalk.
There are several causes for this error and NetTalk 11 has fixes for most of them.
The one it doesn't have a fix for yet is having too many fields on a form.

You can try generating one procedure per module, but if the error is in compiling WebHandler then you'll need to update it.

cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
Re: Too many segdef in file:1F,4000
« Reply #5 on: April 01, 2019, 06:19:38 AM »
Thank you Bruce,

One procedure per module did resolve the issue.
However, this resulted in a string of other errors for my reports in this app.

I got compiling errors related to:  "report procedure should have prototype of ..."

This was not a problem before the recompile of one procedure per module.

I managed to get this resolved by linking all report procedures with the WebHandler procedure
Not sure why this was suddenly an issue?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: Too many segdef in file:1F,4000
« Reply #6 on: April 01, 2019, 11:40:28 PM »
>> Not sure why this was suddenly an issue?

If you have multiple procedure in a module then they are in scope for each other.
separating them into different modules takes them out of scope.

cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
Re: Too many segdef in file:1F,4000
« Reply #7 on: April 02, 2019, 01:29:16 AM »
Thank you Bruce,

Is there a reason why only the report procedures as such must be in scope of the WebHandler procedure?

* Where the other procedures did not give an issue.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: Too many segdef in file:1F,4000
« Reply #8 on: April 02, 2019, 07:43:53 AM »
yes, I presume there is a reason....

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Too many segdef in file:1F,4000
« Reply #9 on: April 02, 2019, 07:48:43 AM »
Suspense ...