- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Att: Dan Hetzel about that C program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2000 07:53 AM
тАО12-26-2000 07:53 AM
Att: Dan Hetzel about that C program
So, attached you will find the copy of the C program giving us grief. From what I've been told, it creates the array alright, but when it goes to read the array....then the problem appears. When they check the record(s) it blows up on..the records are good. Go figure.
Anyway here tis....Thanks for the offer to take a look at it.
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2000 08:39 AM
тАО12-26-2000 08:39 AM
Re: Att: Dan Hetzel about that C program
I see you are in a typical debug seesion:
I cant give you same help, only some ideas:
- Have you access to metalink? (oracle's forums)
- Install a debugger such as wdb.
See: http://devresource.hp.com/devresource/Tools/wdb/index.html
- Write milestones on you code.
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2000 11:13 PM
тАО12-26-2000 11:13 PM
Re: Att: Dan Hetzel about that C program
Got the program, but I need a bit more info.
Where approx. is it crashing? In the qsort?
As I don't have a database with the same structure as yours, I cannot run it; and as it's about 3000 lines long, I'd like to know where I should start looking. ;-)
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2000 12:17 AM
тАО12-27-2000 12:17 AM
Re: Att: Dan Hetzel about that C program
ORA-01458: invalid length inside variable character string
Cause: An attempt was made to bind or define a variable character string with a buffer length less than the two-byte
minimum requirement.
You have a few "dummy" variables defined as a 1 byte character string:
claim_trans_seq_num
payee_seq_num
payee_name
comp_code
They are all defined at the same location in your source.
Could you modify these and check if the program runs ?
->> change the [1] to [32] for example....
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2000 01:45 AM
тАО12-27-2000 01:45 AM
Re: Att: Dan Hetzel about that C program
I realised that those variables were unused in the program so it won't probably help to resize them.
Did you try putting a few 'printf' statements in the code to check your data?
Does someone of your team know how to use a debugger?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2000 04:40 AM
тАО12-27-2000 04:40 AM
Re: Att: Dan Hetzel about that C program
Your code has slen defined as macro.
#define slen(xx).......
You can comment out this line and create a new function named slen.
In this funtion you can check var.len against sizeof(var.arr).
In case len were greater than sizeof(var.arr) make some treatament.
---
But if the program was running ok perhaps the problem were data to be treat.