NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on March 19, 2019, 02:45:39 AM

Title: Too many segdef in file:1F,4000
Post by: rupertvz 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

Title: Re: Too many segdef in file:1F,4000
Post by: rainerwallenius 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

Title: Re: Too many segdef in file:1F,4000
Post by: Bruce on March 21, 2019, 06:46:52 AM
what build are you using?
Title: Re: Too many segdef in file:1F,4000
Post by: rupertvz on April 01, 2019, 12:02:14 AM
Hi Bruce,

With this specific application V8.71
Title: Re: Too many segdef in file:1F,4000
Post by: Bruce 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
Title: Re: Too many segdef in file:1F,4000
Post by: rupertvz 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?
Title: Re: Too many segdef in file:1F,4000
Post by: Bruce 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
Title: Re: Too many segdef in file:1F,4000
Post by: rupertvz 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.
Title: Re: Too many segdef in file:1F,4000
Post by: Bruce on April 02, 2019, 07:43:53 AM
yes, I presume there is a reason....
Title: Re: Too many segdef in file:1F,4000
Post by: peterH on April 02, 2019, 07:48:43 AM
Suspense ...