Pointer problems that make my brain bleed
Posted: Sat Nov 30, 2002 12:00 am
walk through this with me and tell me whats wrong
Background:
-Mode: Real (on a x86)
-OS running: MS-DOS
-Lang. being used: C\C++
Here we go:
1. Program A calls Program B [ System("ProgB.exe"); ]
2. Program B places the pointer to a function in a file
3. Program A gets the pointer, does the aprprite type casting
3. Program A "runs" the pointer
4. The funtion runs "hello world"
5. The computer crashes! instr. flow did not resume after the function call,
the computer hangs, the Ctr-Alt-Del Intrp. dosn't even work, tear
Help Please fellow programers, my sanity is slipping... and so is my time to complete my shell\OS......ahhhhhhhhh
-VoidLogic
Background:
-Mode: Real (on a x86)
-OS running: MS-DOS
-Lang. being used: C\C++
Here we go:
1. Program A calls Program B [ System("ProgB.exe"); ]
2. Program B places the pointer to a function in a file
3. Program A gets the pointer, does the aprprite type casting
3. Program A "runs" the pointer
4. The funtion runs "hello world"
5. The computer crashes! instr. flow did not resume after the function call,
the computer hangs, the Ctr-Alt-Del Intrp. dosn't even work, tear
Help Please fellow programers, my sanity is slipping... and so is my time to complete my shell\OS......ahhhhhhhhh
-VoidLogic