Please support our C++ advertiser: Programming Forums
Views: 1738 | Replies: 1
![]() |
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
class array problem.
--------------------------------------------------------------------------------
I encoutered a problem and can't solve it:
in main()
hformation *fdatah;
fdatah=new hformation();
then sent it to a function:
formationinput(vformation *fdatav,hformation *fdatah,ptfilein);
in the function, I redefined this class pointer as an class array:
fdatah=new hformation[7];
passed compile and link, but each time debug to here got error:
Unhandled exception at 0x00433520 in forwardso.exe: 0xC0000005: Access violation reading location 0x00000000.
What's the cause of this problem?
--------------------------------------------------------------------------------
I encoutered a problem and can't solve it:
in main()
hformation *fdatah;
fdatah=new hformation();
then sent it to a function:
formationinput(vformation *fdatav,hformation *fdatah,ptfilein);
in the function, I redefined this class pointer as an class array:
fdatah=new hformation[7];
passed compile and link, but each time debug to here got error:
Unhandled exception at 0x00433520 in forwardso.exe: 0xC0000005: Access violation reading location 0x00000000.
What's the cause of this problem?
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode