|
If you are not getting any additional warning messages from the compiler with 2.6, then I would check to make sure that all modules were being compiled with the new 2.6 library. Delete all the object modules first if you have to.
|
|
|
|
|
class NotifyOptions *mNotifyOptions;
this is only a pointer, which got to get assigned to an object to work with. As
mNotifyOptions = new NotifyOptions();
in such strange cases you should watch the memory for changes
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi Hans
Could you plesae elaborate your point ?
I understand the memory will be allocated to the pointer of the class object at runtime .
But why and how should it affect the adjacent std::strings ? Also the point I am wondering is that the memory of std::string comes from stack while that of mNotifyOptions is from heap .
regards
redindian
|
|
|
|
|
you got to code it somewhere in your code!!!
mNotifyOptions = new NotifyOptions();
Did you?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I would do a search and see if the implementation of malloc was modified between gcc library 2.4 to 2.6. My guess is that if the implementation of malloc changed, memory could be allocated differently using 2.6 over 2.4. You may have already had a memory bug previously using 2.4 but it did not manifest itself until the memory was allocated in some different way using the new library.
Apparently somewhere code is overwriting memory in your class corrupting the private contents of the strings or corrupting the internal datastructures of malloc itself. You need to watch the memory locations for the strings to narrow down when the contents of those strings become corrupted.
One clarification ... do the seg faults happen only when setting the string value or anytime you use the contents of the string ?
|
|
|
|
|
class SOAP_CMAC MyUserProfile
{
public:
std::string name;
std::string name2;
std::string firstName;
LONG64 pwdStatus;
std::string setType;
class NotifyOptions *mNotifyOptions;
LONG64 USCOREtype;
std::string USCOREmacAddress;
std::string USCOREipAddress;
MyUserProfile() { }
virtual ~MyUserProfile() { }
};
void main( void )
{
MyUserProfile mup;
mup.USCOREmacAddress = "1234"; <<--- this crashes?
}
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Good day.
I need the next: to get an access to a disk under Windows platform. Access should be an exlusive.
What I already have found:
int res = DeviceIoControl( hDevice, FSCTL_LOCK_VOLUME, NULL, 0, NULL, 0, &dw, NULL );
hDevice- handle created by CreateFile(...)
This function with FSCTL_LOCK_VOLUME will block the disk so no one be able to get an access untill I unblock BUT function fails if there any application has already opened the disk.
I need some kind of "chkdsk /f" behaviour: if there's any handle to this disk I can tear them.
Thank you.
I'm not like them, but I can pretend.
|
|
|
|
|
Hi
How to create Multi page images ??
|
|
|
|
|
raju_Code wrote: How to create Multi page images ??
Run a loop and create an one page image in each iteration? Seriously, read the guidelines and include more details.
Also, what's wrong with the previous reply given to you? Why not continue the conversation there by replying to the person who answered you, instead of creating a new thread each time?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Sorry Mr.rajesh ...
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
raju_Code wrote: How to create Multi page images ??
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Sorry!!!
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
could you tell me what is it?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Thanks for your response!!!!
How to create Multi page image file
for example
its combination of more than one images..
Just i explain rough coding ...
CImage __Image[4];<br />
__Image[0].Load(_T("1.tif"));<br />
__Image[1].Load(_T("2.tif"));<br />
__Image[2].Load(_T("3.TIF")); <br />
__Image[4].Save(_T("output.tif"))=_Image[0]+__Image[1]+__Image[2];
// The final image output shout be 3 pages per image
Thanks!
|
|
|
|
|
you can make a image with three images on it and its very easy and dont need to lot of work and then you save it on a bmp or jpg file.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Dear all,
I get a program that can recognize reader type (contact or contactless reader) before any smart card is inserted into reader.
Generally I used SCardEstablishContext[^] and SCardListReaders[^] functions in order to load name of readers.
I usually use winscard in visual C++ 6.0.
Those two function have just two dynamic variable, handle of reader and list of reader name.
Do anybody know how separated contact reader type from contactless reader type without insert any smartcard?
Please help me...
Thanks before....
|
|
|
|
|
Dear all,
I get a program that can recognize reader type (contact or contactless reader) before any smart card is inserted into reader.
Generally I used SCardEstablishContext[^] and SCardListReaders[^] functions in order to load name of readers.
Those two function have just two dynamic variable, handle of reader and list of reader name.
Do anybody know how separated contact reader type from contactless reader type without insert any smartcard?
Please help me...
Thanks before....
|
|
|
|
|
Message Closed
modified 19-Feb-21 1:21am.
|
|
|
|
|
I seriously doubt Eka is still looking for an answer 11½ years later.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi
I use VC++8 environment to execute my first program in c ,but the following error appears (why???):
Project : error PRJ0003 : Error spawning 'rc.exe'.
my program is:
#include <stdio.h>
void main()
{
printf("Student \n");
}
Thank you
thank you
soso
|
|
|
|
|
Does this[^] help?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
anassamar wrote: Project : error PRJ0003 : Error spawning 'rc.exe'.
Does the file actually exist?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi
How to make multipage tiff file ??
Thanks 
|
|
|
|
|
Check out: http://freeimage.sourceforge.net/[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Thanks for your replay ...
<code>CBitmap pBitmap[2];
pBitmap[0].LoadBitmap(L"1.tif");
pBitmap[1].LoadBitmap(L"2.tif");
CImageList imgl;
imgl.Create(500, 600, ILC_MASK | ILC_COLOR32, 0, 0);
imgl.Add(&pBitmap[0],RGB(0,0,0));
imgl.Add(&pBitmap[1],RGB(0,0,0));</code>
where i am going to right path ??
|
|
|
|