Click here to Skip to main content
15,886,860 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Combo Box drop-down list problem Pin
IGx893-Dec-02 4:21
IGx893-Dec-02 4:21 
GeneralRe: Combo Box drop-down list problem Pin
IGx893-Dec-02 5:36
IGx893-Dec-02 5:36 
GeneralDirectX Texture Pixel Pin
Dov Sherman2-Dec-02 14:33
Dov Sherman2-Dec-02 14:33 
GeneralSHGetSpecialFolderPath problem in Win98 Pin
IGx892-Dec-02 13:25
IGx892-Dec-02 13:25 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
Thomas Freudenberg2-Dec-02 13:41
Thomas Freudenberg2-Dec-02 13:41 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
James R. Twine2-Dec-02 13:48
James R. Twine2-Dec-02 13:48 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
IGx892-Dec-02 14:38
IGx892-Dec-02 14:38 
Generalhelp: menu command programming. Pin
trustno12-Dec-02 12:51
trustno12-Dec-02 12:51 
hi everyone,

i'm working on a sdi application with window's explorer style(i.e. a
sdi application with a vertical splitter, dividing the windows into 2
panes, left and right pane).

i added a command, named 'add info', to the main menu and added the event handler to 'add info'. the coding of the event handler of 'add info'
command is done in left pane class. what 'add info' command do is creating a dialog that collects inputs from users then store these user inputs into a database. i modified the contructor of the dialog for 'add info' to accept a database object pointer(get past from the left pane class, when the dialog object is created).

when i start the program, if the windows focus in on left pane, i was able to run 'add info' command, display the dialog, save the inputs from the dialog and store in the database without any problem.

the problem occurs when my window focus is on right pane, if i run
'add info', i get error 'Unhandled exception at 0x005832ba in cat.exe: 0xC0000005: Access violation reading location 0x61636f4c.'

and the debugger points out that the program crashes at line 44 in objcore.cpp, within the function iskindof(.....)..

here is the function..

BOOL CObject::IsKindOf(const CRuntimeClass* pClass) const
{
ASSERT(this != NULL);
// it better be in valid memory, at least for CObject size
ASSERT(AfxIsValidAddress(this, sizeof(CObject)));

// simple SI case
CRuntimeClass* pClassThis = GetRuntimeClass();
return pClassThis->IsDerivedFrom(pClass);
}

i have no idea how to fix this bug. can someone help me out? thx in advance..
GeneralRe: help: menu command programming. Pin
Kannan Kalyanaraman2-Dec-02 20:26
Kannan Kalyanaraman2-Dec-02 20:26 
GeneralRe: help: menu command programming. Pin
trustno13-Dec-02 8:04
trustno13-Dec-02 8:04 
GeneralRe: help: menu command programming. Pin
jhwurmbach3-Dec-02 21:03
jhwurmbach3-Dec-02 21:03 
GeneralFile association Pin
act_x2-Dec-02 11:52
act_x2-Dec-02 11:52 
GeneralRe: File association Pin
Selevercin2-Dec-02 12:08
Selevercin2-Dec-02 12:08 
Generaltitle bar Pin
Anonymous2-Dec-02 11:21
Anonymous2-Dec-02 11:21 
GeneralRe: title bar Pin
Pavel Klocek2-Dec-02 11:26
Pavel Klocek2-Dec-02 11:26 
GeneralRe: title bar Pin
Anonymous2-Dec-02 11:35
Anonymous2-Dec-02 11:35 
GeneralSocket help.. Pin
RobJones2-Dec-02 11:02
RobJones2-Dec-02 11:02 
GeneralRe: Socket help.. Pin
valikac2-Dec-02 14:29
valikac2-Dec-02 14:29 
GeneralCode Timing Question Pin
_Kal-El_2-Dec-02 11:00
_Kal-El_2-Dec-02 11:00 
GeneralRe: Code Timing Question Pin
Kannan Kalyanaraman2-Dec-02 20:24
Kannan Kalyanaraman2-Dec-02 20:24 
GeneralFILETIME conversion/comparison Pin
#realJSOP2-Dec-02 10:34
mve#realJSOP2-Dec-02 10:34 
GeneralRe: FILETIME conversion/comparison Pin
Nitron2-Dec-02 11:08
Nitron2-Dec-02 11:08 
GeneralRe: FILETIME conversion/comparison Pin
Jamie Hale2-Dec-02 11:33
Jamie Hale2-Dec-02 11:33 
GeneralRe: FILETIME conversion/comparison Pin
Michael Dunn2-Dec-02 12:15
sitebuilderMichael Dunn2-Dec-02 12:15 
GeneralQueue problem (part2) Pin
ian_ok2-Dec-02 10:24
ian_ok2-Dec-02 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.