|
From: anandnld <ana...@de...> - 2007-04-09 07:02:49
|
Im using MinGw gcc compiler. In my program im using 3 files.
1. Header file
2. Definition file for the functions in header file
3. Accessing those methods in 3rd file
While accessing the methods from 2nd file, some memory exceptions are
occuring. im not able to catch those exceptions. Can any one help in
that....
Example:
---------------------------------------------------------------
//Header file
int getValue(int,char*,float); // Just declaration
---------------------------------------------------------------
---------------------------------------------------------------
//Definition file
#include <stdio.h>
#include "Header.h"
int getValue(int n,char* val, float f)
{
.
.
.
.
}
---------------------------------------------------------------
---------------------------------------------------------------
//Accessing file
#include <stdio.h>
#include "Header.h"
int main()
{
int output = getValue(3,"Test",4.5);
.
.
.
.
}
---------------------------------------------------------------
while accessing the method in 3 file memory reference error occured as "The
instruction at "0x7c812009" referenced momory at "0x00000000". The memory
could not be "read". while running and control exits there itself. How to
exception from my 3rd file. NOT TO CATCH THE EXCEPTION IN 2nd FILE.
HELP ME........................
--
View this message in context: http://www.nabble.com/How-to-use-try-catch-exception-in-MinGw-tf3505448.html#a9789865
Sent from the MinGW - User mailing list archive at Nabble.com.
|