cse_india
December 22nd, 2006, 06:47
first and foremost my sincere apologies to all the great reversers here if my problem is very stupid.its just i was confused where to post my problem,as this is not an unpacking problem nor i am a newbie anymore.
this is no unpacking or rce help related to cracking,but rather removing a bug from an mfc project in vc++.
the problem is that when i run the application i get an error message:
sam.exe has encountered a problem and we needs to close.
when i debug using vc++ i get an error:
the instruction at "0x5f43351b" referenced memory at"0x00000000".the memory could not be"read".
click ok to terminate the program.
the problem to me most probably is due to an unresolved pointer.i decided to open the .exe in olly but olly seems to crash everytime. i opened the .exe in ImpRec with something in mind to look at the imports.but i cannot understand the problem.
can some one have a look at the source code and see whats wrong. again i suspect the problem is something related to pointers( perhaps i have not used the "delete" keyword to deallocate memory.
also can anybody run the application by reverse code engineering.i have attached it.
here is the code( vc++ ).it is a mfc program to create a simple window.( i'm a beginner in vc++ )
#include<afxwin.h>
class myframe: public CFrameWnd
{
public:
myframe()
{
Create(0,"hello mfc",WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX);
}
};
class myapp: public CWinApp
{
public:
int InitInstance()
{
myframe *p;
p=new myframe;
p->ShowWindow(3);
m_pMainWnd=p;
return 1;
}
};
myapp;
this is no unpacking or rce help related to cracking,but rather removing a bug from an mfc project in vc++.
the problem is that when i run the application i get an error message:
sam.exe has encountered a problem and we needs to close.
when i debug using vc++ i get an error:
the instruction at "0x5f43351b" referenced memory at"0x00000000".the memory could not be"read".
click ok to terminate the program.
the problem to me most probably is due to an unresolved pointer.i decided to open the .exe in olly but olly seems to crash everytime. i opened the .exe in ImpRec with something in mind to look at the imports.but i cannot understand the problem.
can some one have a look at the source code and see whats wrong. again i suspect the problem is something related to pointers( perhaps i have not used the "delete" keyword to deallocate memory.
also can anybody run the application by reverse code engineering.i have attached it.
here is the code( vc++ ).it is a mfc program to create a simple window.( i'm a beginner in vc++ )
#include<afxwin.h>
class myframe: public CFrameWnd
{
public:
myframe()
{
Create(0,"hello mfc",WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX);
}
};
class myapp: public CWinApp
{
public:
int InitInstance()
{
myframe *p;
p=new myframe;
p->ShowWindow(3);
m_pMainWnd=p;
return 1;
}
};
myapp;