|
Home > Archive > SQL Anywhere ultralite > March 2006 > ULSEGDEF _Invalid PRC
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ULSEGDEF _Invalid PRC
|
|
|
| Hello All,
Iam getting an error
"The segment ULSEGDEF is lasrger than 64k .It wll genrate
invalid PRC"
Pls advice on the setting that i should use to avoid this
link error.
PS: When i comment the code which access a table this link
error is gone.
Regards,
Swami
| |
| Michal Seliga 2006-03-13, 3:23 am |
| type
#define UL_ENABLE_SEGMENTS
at the beginning of generated cpp file (or in prefix file if you use codewarrior)
if it doesn't help then go to your project in sybase cenral and assign segment
names to your selects and other statements (note that when you edit query these
names disappear and you will have to change them again). after you run ulgen
these queries with set segment name will be put in other segment, to this
default one
i hope it will help
Swami wrote:
> Hello All,
>
> Iam getting an error
> "The segment ULSEGDEF is lasrger than 64k .It wll genrate
> invalid PRC"
>
> Pls advice on the setting that i should use to avoid this
> link error.
>
> PS: When i comment the code which access a table this link
> error is gone.
>
> Regards,
> Swami
| |
| Usmanov A. 2006-03-13, 3:23 am |
| You can try place every prepared statement in separated segment.
Also:
Question #2
I want use expanded mode because Data Segment of my application is full.
About 60K used by variable 'char const * usm_data ' in generated API-file.
Is there any way to remove this data into resources?
Answer: Try the PC-Relative Strings checkbox, it should move the string
constants in
the code segment. (- Stella Lai iAnywhere Solutions)
Now I don't have any problems with 64K limitations.
Sincerely yours,
Alex Usmanov
--
<Swami> сообщил/сообщила в новостях следующее:
news:441506d3.517e.1681692777@sybase.com...
> Hello All,
>
> Iam getting an error
> "The segment ULSEGDEF is lasrger than 64k .It wll genrate
> invalid PRC"
>
> Pls advice on the setting that i should use to avoid this
> link error.
>
> PS: When i comment the code which access a table this link
> error is gone.
>
> Regards,
> Swami
| |
| Greg Fenton 2006-03-13, 9:23 am |
| Swami wrote:
>
> Iam getting an error
> "The segment ULSEGDEF is lasrger than 64k .It wll genrate
> invalid PRC"
>
In addition to the other two responses, please always post the verion
and build number of SQLAnywhere that you are using (e.g. use the command
"dbeng9 -v" for SQLAnywhere 9.x).
The answer to your problem may vary depending on the version you are using.
greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/
|
|
|
|
|