|
Anu_Bala wrote: Why its come in disassembly ?
because it doesn't have the source to debug in...
Anu_Bala wrote: I got Unhandled Exception in my coding,
great. which ?!
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Tell what type of error ?? & where it got generated ??
while posting try to give more details abt the req so u get good solutions.
|
|
|
|
|
|
Hi,I am asking generally..Just i do some file reading and adding to list.Thats all.The error is UnHandled Exception in MFC42d.dll.The error occurred after it returns from the InitInstance().After it returns,it goes to disassembly and then show this error.The line on which it shows is (5F42AF82 cmp dword ptr [eax],0)
|
|
|
|
|
im not sure maybe your problem is read files.
|
|
|
|
|
Why ? It can be anything. Very often, this is due to memory violation (you try to read or write were you are not allowed to).
Cédric Moonen
Software developper
Charting control
|
|
|
|
|
i dont say that problem is file i say maybe.
if you want to add items to listbox do you get error
if he use listbox
-- modified at 7:28 Friday 12th May, 2006
it worked
m_List.Create(WS_VSCROLL|WS_BORDER|WS_HSCROLL|WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1);
WIN32_FIND_DATA find;
HANDLE handle;
handle=FindFirstFile("*.*",&find);
for(int i=0;i<10;i++)
{
m_List.AddString(find.cFileName);
if(!FindNextFile(handle,&find))
break;
}
FindClose(handle);
|
|
|
|
|
Correct me if I'm wrong, but you can't initialize a listbox in InitInstance.
Try doing it in OnInitDialog instead.
|
|
|
|
|
vinaycool wrote: while posting try to give more details abt the req so u get good solutions.
please try not use SMS language here, hope i am not sounding like any bore lecturer
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
i second you Alok, i DO am bored about that too, because i make efforts to speak an english that everyone can understand (while english is not my mother tongue), and these guys come with the sms-ed language and want, want, want the worst thing is that i'm sure they don't behave like that in real life
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Start your debugger (press F5) and set breakpoints in your prog to see where it crashes. You can also use the Callstack window to see which was the last of your functions called (and probably giving you the error).
Cédric Moonen
Software developper
Charting control
|
|
|
|
|
Cedric Moonen wrote: Software developper
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
Yes
Cédric Moonen
Software developper
Charting control
|
|
|
|
|
|
Cedric Moonen wrote: Yes
Me Too...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Anu_Bala wrote: Hi, I got Unhandled Exception in my coding,and i debugged through my coding,the unhandled exception came in disassembly section.Why its come in disassembly ?Wats the reason?
Could you show me your Code of that Function, Plus in Continuation With Cedric! provide error handlling to your sourcecode using try and catch block, which might return qith cause of error.
e.g.
try
{
}
catch(CException &e)
{
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
this will work only if the exception thrown is a CException (or inherits from CException), so there are many chances that it doesn't catch the exception like that.
he'd better catch(...) and debug...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
toxcct wrote: is will work only if the exception thrown is a CException (or inherits from CException), so there are many chances that it doesn't catch the exception like that.he'd better catch(...) and debug...
Since the Gal is using MFC application!, and she is getting Unhandlled Exception in InitInstance!, so chance of catching the Exception by CException Class is very bright, since CException is the base class for all exceptions in the Microsoft Foundation Class Library (According to MSDN)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Anu_Bala wrote: Hi, I got Unhandled Exception in my coding,and i debugged through my coding,the unhandled exception came in disassembly section.
Any time you throw an exception if you look in the debugger the exception will originate from code in (or called from) the Win32 RaiseException API exported from kernel32.dll. Nothing unusual about this. Get a call stack and look for the closest calling client code.
Steve
|
|
|
|
|
Hi,
Can any one tell how to start & stop the progress bar ..??
Thanks in advance,
Vinay Charan
|
|
|
|
|
like this
<br />
CProgressCtrl m_Progress;<br />
m_Progress.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,20),this,1);<br />
m_Progress.SetPos(0);<br />
m_Progress.SetRange(0,100);<br />
m_Progress.StepIt();
|
|
|
|
|
Hi,
I added the code to InitDialog but the progress bar did nt start,whats the reason ??
|
|
|
|
|
you need to use StepIt in one loop or wm_time or thread or anything that need to progress ,you can use Progress from Toolbax or if you want to create CProgress you want declare CProgressCtrl m_Progress; in header file not one function
|
|
|
|
|
vinaycool wrote: I added the code to InitDialog but the progress bar did nt start,whats the reason ?
Add a button on the Dialog Box window! and on Message Handller of the Button Call the CProgressBar::StepIt function!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
vinaycool wrote: the progress bar ..??
which ?
vinaycool wrote: Can any one tell how to start & stop
a progress bar doesn't increment itself. YOU do it. stop calling StepIt()[^] and it won't progress anymore.
one question though : don't you have any need to take a good book about MFC, sit and learn ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|