Click here to Skip to main content
16,005,389 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVisual C++ and statvfs.h Pin
jtaber10-Sep-02 11:13
jtaber10-Sep-02 11:13 
GeneralRe: Visual C++ and statvfs.h Pin
Anonymous10-Sep-02 23:11
Anonymous10-Sep-02 23:11 
QuestionNeed HELP!!! What kind of mfc class instead of stl vector in eVC 3.0 ? Pin
Daniel Strigl10-Sep-02 10:41
Daniel Strigl10-Sep-02 10:41 
AnswerRe: Need HELP!!! What kind of mfc class instead of stl vector in eVC 3.0 ? Pin
Pavel Klocek10-Sep-02 10:44
Pavel Klocek10-Sep-02 10:44 
AnswerRe: Need HELP!!! What kind of mfc class instead of stl vector in eVC 3.0 ? Pin
Joaquín M López Muñoz10-Sep-02 11:33
Joaquín M López Muñoz10-Sep-02 11:33 
GeneralDialog question Pin
Anonymous10-Sep-02 10:34
Anonymous10-Sep-02 10:34 
GeneralRe: Dialog question Pin
Chris Losinger10-Sep-02 10:38
professionalChris Losinger10-Sep-02 10:38 
GeneralStrange access violation... all help appreciated Pin
Redeemer-dk10-Sep-02 9:35
Redeemer-dk10-Sep-02 9:35 
When i press a button in my program, i get this message:

Unhandled exception at 0x00ef86a6 in MP3.exe: 0xC0000005: Access violation reading location 0x00000110.

And the strange part is that I get this message even before it has executed any of the procedures for the event of that button. It hasn't even come to the case line
case IDC_CONVERT:
When it pops up with the message.

This only happens if I, before I press the button, press another button which prompts the user to choose an ACM compressor driver. Here are the code for the button that i press before i press the second button which generates the message:

i = SendMessage(ghFormatHandle, LB_GETCURSEL, 0, 0);
j = SendMessage(ghTagHandle, LB_GETCURSEL, 0, 0);
hCurrentDriver = (HACMDRIVERID)SendMessage(ghFormatHandle, LB_GETITEMDATA, i, 0);
id = (HACMDRIVERID)SendMessage(ghTagHandle, LB_GETITEMDATA, j, 0);
SendMessage(ghFormatHandle, LB_GETTEXT, i, (LPARAM)szFormatName);
				
details.cbStruct = sizeof(details);
acmDriverDetails(id, &details, 0);

strcpy(szDriverName, details.szLongName);

SetDlgItemText(ghMainWnd, IDC_DRIVERNAME, szDriverName);
SetDlgItemText(ghMainWnd, IDC_FORMAT, szFormatName);

EndDialog(ghChooseWnd, 0);


I have found out that if i remove the hCurrentDriver = (HACMDRIVERID)SendMessage(ghFormatHandle, LB_GETITEMDATA, i, 0); line, no error happens! what could be wrong? Here's the call stack when the error happens:

LameACM.acm!00ef86a6() <--
winmm.dll!76b431ad() 	
msacm32.dll!77be4b5d() 	
MP3.exe!0040118e() 	
e877e88c()	

(it's at the arrow when the error happens)

And here's the assembly code I get redirected to:

00EF86A0  push        esi  
00EF86A1  mov         esi,dword ptr [esp+8] 
00EF86A5  push        edi  
00EF86A6  mov         edi,dword ptr [esi+110h] <---- THIS LINE
00EF86AC  cmp         dword ptr [edi],0FFF88E3Bh 
00EF86B2  je          00EF86BC 
00EF86B4  pop         edi  
00EF86B5  mov         eax,0FFFFFFFDh 


It jumps to the line marked with "THIS LINE".

The value of edi is 24653 and the value of esi and eax is 0.

Please help, I have no idea what could be wrong.

You're very welcome to email me to help me solve this error, thanks a ton!

-Rune Svendsen
GeneralRe: Strange access violation... all help appreciated Pin
Anonymous10-Sep-02 10:49
Anonymous10-Sep-02 10:49 
GeneralRe: Strange access violation... all help appreciated Pin
Anonymous10-Sep-02 21:05
Anonymous10-Sep-02 21:05 
QuestionCan't open MSDN after Platform SDK install? Pin
kumaichi10-Sep-02 9:22
kumaichi10-Sep-02 9:22 
GeneralDialog class Pin
danag10-Sep-02 9:15
danag10-Sep-02 9:15 
GeneralRe: Dialog class Pin
Chris Losinger10-Sep-02 9:40
professionalChris Losinger10-Sep-02 9:40 
GeneralCFileDialog question Pin
achandra00710-Sep-02 8:59
achandra00710-Sep-02 8:59 
GeneralRe: CFileDialog question Pin
achandra00710-Sep-02 9:13
achandra00710-Sep-02 9:13 
Questionhow to write msdn style help ? Pin
Omar Lodhi10-Sep-02 8:46
Omar Lodhi10-Sep-02 8:46 
AnswerRe: how to write msdn style help ? Pin
Pavel Klocek10-Sep-02 9:33
Pavel Klocek10-Sep-02 9:33 
GeneralListbox SendMessage with LV_DISPINFO Pin
Chris Klecker10-Sep-02 7:30
Chris Klecker10-Sep-02 7:30 
GeneralCEdit Control, dumb question! Pin
RobJones10-Sep-02 7:31
RobJones10-Sep-02 7:31 
GeneralRe: CEdit Control, dumb question! Pin
Joaquín M López Muñoz10-Sep-02 7:32
Joaquín M López Muñoz10-Sep-02 7:32 
GeneralRe: CEdit Control, dumb question! Pin
RobJones10-Sep-02 8:46
RobJones10-Sep-02 8:46 
GeneralRe: CEdit Control, dumb question! Pin
Pavel Klocek10-Sep-02 9:26
Pavel Klocek10-Sep-02 9:26 
GeneralRe: CEdit Control, dumb question! Pin
RobJones10-Sep-02 11:34
RobJones10-Sep-02 11:34 
GeneralRe: CEdit Control, dumb question! Pin
Ravi Bhavnani10-Sep-02 12:06
professionalRavi Bhavnani10-Sep-02 12:06 
GeneralURGENT: Question about Carlos Antollini ADO classes !!! Pin
Hadi Rezaee10-Sep-02 7:25
Hadi Rezaee10-Sep-02 7:25 

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.