Thanks this is in regards to the exception I'm getting access violation it happens intermittently
When it does the Debbuger gets control and points to ntdll looking at the call stack doesn't point me back to anywhere in my code. I was looking for a really low level Exception handler that might catch it earlier.
The code for the SEH in all the examples I have seen has inline Assembler
However I do have the intel compiler which lets me use _asm for 64 bit code
I have a templated class that is based on string or wstring, and most things are easy as the basic_string contains sufficient operators and methods to manipulate the text. However, one thing I cannot get round is including character constants inside the template, as below:
template<typename T>class Tokenizer
typedeftypename T::size_type _Mysizt;
_Mysizt offset; // offset of the current substring (token)
_Mysizt index; // index to the next separator character, or npos if not found
_Mysizt length; // length of the current substring, or npos if the last one
Tokenizer(T strText, T strFilter)
// code removed for readability
T Next(bool bTrim)
// trim leading spaces
// but ' ' will not be accepted for a wstring, and L' ' will not be for a string
offset = strText.find_first_not_of(' ', offset);
// code removed for readability
I am sure it must be possible (OG, Po'H, SB), but my reading of the documentation and samples has not helped. So what (obvious) did I miss?
While David Crow's suggestion works for a character constant, it will not work for a string like:
Thanks, that is the conclusion I came to, and I resolved the issue with a slightly different implementation. I was really just trying to learn a bit more about templates, and wondered if there was any provision for automatically converting constant strings between ASCII and Unicode. It's obviously something to be aware of, and avoid.
I am a beginner in C++ and I have a little task to solve. Ihave a file .txt like this : net.txt - Google Drive[^]
And i want make tables that for each number gives all value about the nuber from data
Something like this :
Checksum generator ExactFile has the function to create checksums for all files within an entire directory and later compare those files with the generated checksum file. (Other checksum generators which I have tried to use do not have the function to compare all files within a directory with their checksum file generated previously.)
However, the latest version of ExactFile seems to be from 2009. Are there any other good checksum generators which include the function to compare all files within a directory with their checksum file generated previously?
I am not knowledgeable in this subject, but since algorithms for generating checksums have not changed since 2009, ExactFile can still be used. But the author of the program says that it is a beta version and that improvements may be made. Therefore, I thought that it is better to find a checksum generator which is not in a beta stage and has been released more recently.
This is not a c++ question. Interesting that you created this account specifically for asking this single question on a c++ forum.
What I find more interesting is that the linguistic syntax you are using such as "which include","generated previously" and preposition usage such as "within" and the overall sentence length[^] strongly imply a native English speaker and not someone from the "Russian Federation" as your profile indicates.
I'm getting a heap corruption error while debugging one
Of my message handling routines
It is on exit from the routine which lead me to think it's something with the stack or local variables
However I have not declared any local variables it's just parameters wparam and lparam
I can try to wrap the code in a try and catch I guess CMemoryException
I don't see any class members for CMemoryException Like line numbers ( line which caused the exception)
BTW wparam is a pointer from tcp/ip message/buffer and lparam is the length
Which I memcpy after doing a new in the routine
I am running 64 bit code
Last Visit: 31-Dec-99 19:00 Last Update: 8-Dec-23 7:21