Hi, I've spent several hours on this and I can't figure out what's wrongPlease help.
Edit 2: I tried everything in Dev-C++ and there were no errors (I was originally using VC++), so it's a debugger problem :/ I still don't know how to solve it...
Edit: Here's a smaller program that I thought was pretty straightforward that still gives me the same error when debugging
Code:#include<iostream> using namespace std; int main() { int m=4; int ** Rows; Rows = new int * [m]; return 0; }Code:#include<iostream> using namespace std; struct Node { int row; int col; int value; Node * next_in_col; Node * next_in_row; }; int main() { int m, n; cin >> m >> n; Node * * Rows; Rows = new Node * [m]; }
When I debug I get this error message:
"There is no source code available for the current location.
OK / Show Disassembly"
(the yellow arrow points to the first line: "mov edi,edi")--- f:\dd\vctools\crt_bld\self_x86\crt\src\newaop.cpp --------------------------
002C14C0 mov edi,edi
002C14C2 push ebp
002C14C3 mov ebp,esp
002C14C5 mov eax,dword ptr [count]
002C14C8 push eax
002C14C9 call operator new (2C1186h)
002C14CE add esp,4
002C14D1 pop ebp
002C14D2 ret
Also, I know it runs, but when I put it in a larger program it crashes miserably![]()



LinkBack URL
About LinkBacks
Please help.


