If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Need help in C program

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-04, 08:30
gomezlo gomezlo is offline
Registered User
 
Join Date: Oct 2003
Posts: 20
Need help in C program

Attached you would find a portion of a C program that I would need help on because of memory leak.

Code affected:

Function Code 25, retrieves all accounts associated to a specific social security# and save it into a memory array.
Function Code 17, retrieves a specific account's information from the memory array populated by FC25.

Problem:
There are 9 child processes running, using their own memory space.
As you can see, the way the above code is written, one caller can jump between child processes and therefore cause incorrect data to be returned or the call to be transferred because of a "no dat found" error.

Suggested Solution:
1. Update FC 25 and 17 to use a single memory location to store information

HOW DO YOU DO THIS????

Let me know if you need more information.
Attached Files
File Type: txt Cprog.txt (20.7 KB, 66 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On