Click here to Skip to main content
15,915,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalusing memcpy for non-char arrays Pin
moredip11-Jan-02 13:19
moredip11-Jan-02 13:19 
GeneralRe: using memcpy for non-char arrays Pin
Nish Nishant11-Jan-02 13:38
sitebuilderNish Nishant11-Jan-02 13:38 
GeneralRe: using memcpy for non-char arrays Pin
l a u r e n11-Jan-02 21:31
l a u r e n11-Jan-02 21:31 
GeneralToolTips in Modeless dialog Pin
Ruslan11-Jan-02 11:34
Ruslan11-Jan-02 11:34 
GeneralDeclaring own variables Pin
Peter Liddle11-Jan-02 10:53
Peter Liddle11-Jan-02 10:53 
GeneralRe: Declaring own variables Pin
Chris Losinger11-Jan-02 10:59
professionalChris Losinger11-Jan-02 10:59 
GeneralRe: Declaring own variables Pin
alex.barylski11-Jan-02 11:14
alex.barylski11-Jan-02 11:14 
GeneralHelppp Access Violation in throw stmt Pin
Bill Wilson11-Jan-02 10:40
Bill Wilson11-Jan-02 10:40 
I have an NT service program that seems to get a lot of access violations. In trying to track them down, I've found all sorts of odd things going on. Here is one of them.

In this example this piece of code is called from a OnTimer callback routine. The timer was started from the COM object that the ATL wizard makes when you ask it to build a serice.

e.g. Service -> IEntry.StartProcess -> SetTimer



LONG OdysseyLog::GetRegStrValue(const TCHAR szSubKey[], const TCHAR szValueName[], TCHAR *pszReturnVal[], unsigned int *uiLen){ LONG lRes = ERROR_SUCCESS; DWORD dwType; DWORD dwSize; HKEY hKey; try { dwType = REG_SZ; lRes = RegOpenKeyEx( HKEY_LOCAL_MACHINE, szSubKey, 0, KEY_READ, &hKey); if (lRes != ERROR_SUCCESS) { throw true; }


I get an Access Violation from the throw statement! How can that happen? The access violation is in Kernel32.dll at 0xE06D7363. running NT 4.0 with latest SPs (don't know the number, but the admin guys assure me this server is up to date).



Thanks for the help,
Bill
GeneralMessageBoxIndirect Pin
Henry Jacobs11-Jan-02 10:05
Henry Jacobs11-Jan-02 10:05 
GeneralRe: MessageBoxIndirect Pin
alex.barylski11-Jan-02 11:23
alex.barylski11-Jan-02 11:23 
General#$&#$ SetWindowsHookEx problem... Pin
Xenos11-Jan-02 8:09
Xenos11-Jan-02 8:09 
GeneralRe: #$&#$ SetWindowsHookEx problem... Pin
Henry Jacobs11-Jan-02 10:20
Henry Jacobs11-Jan-02 10:20 
GeneralRe: #$&#$ SetWindowsHookEx problem... Pin
Xenos11-Jan-02 12:00
Xenos11-Jan-02 12:00 
GeneralFiltering a DAO recordset Pin
Simon Walton11-Jan-02 7:58
Simon Walton11-Jan-02 7:58 
GeneralRe: Filtering a DAO recordset Pin
Carlos Antollini11-Jan-02 8:19
Carlos Antollini11-Jan-02 8:19 
GeneralRe: Filtering a DAO recordset Pin
Simon Walton11-Jan-02 8:45
Simon Walton11-Jan-02 8:45 
GeneralRe: Filtering a DAO recordset Pin
Carlos Antollini11-Jan-02 9:38
Carlos Antollini11-Jan-02 9:38 
GeneralRe: Filtering a DAO recordset Pin
Carlos Antollini11-Jan-02 9:38
Carlos Antollini11-Jan-02 9:38 
GeneralRe: Filtering a DAO recordset Pin
Simon Walton11-Jan-02 12:48
Simon Walton11-Jan-02 12:48 
GeneralPutting file to clipboard, just like in explorer Pin
Mukkie11-Jan-02 7:54
Mukkie11-Jan-02 7:54 
GeneralRe: Putting file to clipboard, just like in explorer Pin
Michael Dunn11-Jan-02 10:53
sitebuilderMichael Dunn11-Jan-02 10:53 
Questionsaving and retrieving files of a specific type : how do other companies save? Pin
DanYELL11-Jan-02 6:51
DanYELL11-Jan-02 6:51 
AnswerRe: saving and retrieving files of a specific type : how do other companies save? Pin
Joao Vaz11-Jan-02 7:17
Joao Vaz11-Jan-02 7:17 
AnswerRe: saving and retrieving files of a specific type : how do other companies save? Pin
Michael Dunn11-Jan-02 7:31
sitebuilderMichael Dunn11-Jan-02 7:31 
GeneralRe: saving and retrieving files of a specific type : how do other companies save? Pin
Carlos Antollini11-Jan-02 8:14
Carlos Antollini11-Jan-02 8:14 

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.