Click here to Skip to main content
16,003,345 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaliterator for deque Pin
George_George5-Mar-08 22:00
George_George5-Mar-08 22:00 
GeneralRe: iterator for deque Pin
Maximilien6-Mar-08 1:00
Maximilien6-Mar-08 1:00 
GeneralRe: iterator for deque Pin
George_George6-Mar-08 16:26
George_George6-Mar-08 16:26 
QuestionSelecting a folder from open dialog ???????? Pin
TooShy2Talk5-Mar-08 21:40
TooShy2Talk5-Mar-08 21:40 
GeneralRe: Selecting a folder from open dialog ???????? Pin
Rajkumar R5-Mar-08 21:48
Rajkumar R5-Mar-08 21:48 
GeneralRe: Selecting a folder from open dialog ???????? Pin
James R. Twine6-Mar-08 5:30
James R. Twine6-Mar-08 5:30 
GeneralProblem in Release Mode please look at the code. Pin
ritz12345-Mar-08 21:38
ritz12345-Mar-08 21:38 
AnswerRe: Problem in Release Mode please look at the code. Pin
Roger Stoltz5-Mar-08 22:59
Roger Stoltz5-Mar-08 22:59 
First of all: debug your application!
This is essential if you want help from others. You will be asked questions about the results from your debugging sessions and if you cannot answer those questions, you cannot be helped. An explanation like "it crashes" is always wrong unless followed by an explanation about how it crashes.

More on the problem:
In my opinion you're using the timer API in an unusual way by having the application class handle the WM_TIMER message. Having your window class setting up the timer and handle its events would be more straight forward. I'm not saying that it's impossible, because it's not, but if you're less experienced with MFC and message handling you'd be better off by choosing a main stream solution.
You should also read the documentation carefully; calling ::SetTimer() with the hWnd param set to NULL makes the function return the ID of the timer. It could be a new ID that you're supposed to use when calling ::KillTimer(), but you simply ignore it.

You also have to verify that the problem actually is related to the timer. In your previous thread you mention something about multiple threads and a web cam that may also have something to do with this.
Now I'm just guessing, but it could be a plausible cause: you have an ActiveX control that receives input from the web cam and you're trying to access it from another thread than the one that created the control without proper marshalling.

To help you further, whether it would be me or anyone else, you have to debug your application and tell us how it fails.
If you're only having troubles in the release version, then build the release version with debug info. There are more differences between building release mode and debug mode than just creating the debug info.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Problem in Release Mode please look at the code. Pin
ritz12345-Mar-08 23:27
ritz12345-Mar-08 23:27 
AnswerRe: Problem in Release Mode please look at the code. Pin
Maxwell Chen6-Mar-08 1:24
Maxwell Chen6-Mar-08 1:24 
GeneralRe: Problem in Release Mode please look at the code. Pin
Roger Stoltz6-Mar-08 1:37
Roger Stoltz6-Mar-08 1:37 
GeneralRe: Problem in Release Mode please look at the code. Pin
ritz12346-Mar-08 17:12
ritz12346-Mar-08 17:12 
Generalvertical text Pin
Russell'5-Mar-08 21:23
Russell'5-Mar-08 21:23 
GeneralRe: vertical text Pin
Rajkumar R5-Mar-08 21:29
Rajkumar R5-Mar-08 21:29 
GeneralRe: vertical text Pin
Russell'5-Mar-08 21:37
Russell'5-Mar-08 21:37 
GeneralRe: vertical text Pin
Rajkumar R5-Mar-08 21:45
Rajkumar R5-Mar-08 21:45 
GeneralRe: vertical text [SOLVED] Pin
Russell'5-Mar-08 21:59
Russell'5-Mar-08 21:59 
Generallibs Pin
duta5-Mar-08 21:07
duta5-Mar-08 21:07 
GeneralRe: libs Pin
Hamid_RT9-Mar-08 1:09
Hamid_RT9-Mar-08 1:09 
GeneralSave and retrive data from Database Pin
Rupesh Kumar Swami5-Mar-08 20:45
Rupesh Kumar Swami5-Mar-08 20:45 
Generalreturning value from catch() Pin
rp_suman5-Mar-08 20:41
rp_suman5-Mar-08 20:41 
GeneralRe: returning value from catch() Pin
Roger Stoltz5-Mar-08 21:01
Roger Stoltz5-Mar-08 21:01 
QuestionHow simulate ctrl+alt+delete in vista Pin
vinorathna5-Mar-08 20:24
vinorathna5-Mar-08 20:24 
GeneralLNK2020: unresolved token, with /clr Pin
Mary Chennai5-Mar-08 20:03
Mary Chennai5-Mar-08 20:03 
GeneralRe: LNK2020: unresolved token, with /clr Pin
CPallini5-Mar-08 22:40
mveCPallini5-Mar-08 22:40 

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.