![]() ![]() The unhandled exception error, from what I gathered through is caused by the program not being able to store the information within the file into the array. This allows the program to pass the address of EACH structure into the following functions, instead of passing the entire array's address. What I did to fix the problem was added a for loop around the call of the functions to cycle through the address of each structure. From his explanation, I was sending the address of the array of 20 structures into my getdata function, which is the same as the address for the first structure of the 20. ![]() With fizzer's help, we have fixed the program. Here is the structure I am using to store the data read: typedef structĪnd a sample of what the program is reading of the text file. Here is the function: void getdata (SCARADATA *data)įor (i=0 istringname, data->x, data->y, data->elbow) I posted the blocks of code that I think are the culprits and hopefully will solve the problem. Then when I press F10 once more, the error begins and stays there. ![]() So I found out about F10 and eventually just worked through the code, and somehow found that the error is coming up when the yellow arrow points at the getdata line. If I am able to uncover anything to help solve this, I will update this ASAP. The file the accompanies the error is called 'tidtable.c'. ![]() With the green arrow pointing at the return. If its any help, the second error consistently stops at this line of code. Both errors ask for me to either 'Break' or 'Continue'. Then it just stays there whenever I try to run the program several more times. Unhandled exception at 0x777915de in Lab 7 Part B.exe: 0xC0000005: The If I try to run it once more it comes up to this error: Since I also have no idea where it's coming from, I can't post a specific block of my code either. I'm not 100% sure if I am allowed to post my entire code onto here, as that may be considered being a slacker and not figuring things out myself. My question - is there anything I can do to track down where this problem is originating? Unhandled exception at 0x777915de in Lab 7 Part B.exe: 0xC0000005:Īccess violation reading location 0x00460310. Whenever I try to run the program, it immediately gives me an error message: I'm a novice programmer, with probably about 8-9 weeks experience of C programming.Ĭurrently I am working on creating a program that will read some lines from a text file, store them in a structure, calculating a couple things, then print the data out. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |