|
George_George wrote: I think you mean some meta data of heap, e.g. free space size of the heap is corrupted (so that the actual free memory size is not reflected), then when we allocate later, there will be bad_alloc exception?
I do not know of any standard heap that readily knows how much free space it has available, and even if it did, it might be useless information. For example, if a heap has 100 1MB free blocks available, but they each have a used block in-between them, then while the heap has 100MB available, only 100MB could be allocated in a contiguous block.
the heap's internal data structures could be corrupted such that it cannot find the next free block (no pointer to the next free block), which would make it think it is out of memory. Or it could point off to random memory location, which could cause a crash, or try to give you memory that was still in use. Lotsa fun things can happen with heap corruption.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Thanks James,
My question is answered.
regards,
George
|
|
|
|
|
Hi all
can any one kindly tell me how to compile our vc++ program by comandline.
Thanks and Regards
#sanroop#
|
|
|
|
|
Open a Visual C++ IDE window. From Tools | Visual Studio Command Prompt to get the DOS-box.
Maxwell Chen
|
|
|
|
|
|
Dear all
I need to know whether printer support "Job Retention" (Job Storage) feature or not, ie whether printer can store the jobs so that they can be printer later by issuing a password to printer control panel. (Different options for job storage are "Hold and proof", "Private Job", "Quick copy" etc.
To know all these information I tried WMI in windows, various vc++ printer capabilities APIs without any luck.
Is there some way so that I can get all these information.
please help..
Regards
Shobhit Jain
|
|
|
|
|
Hi to ALL...
i have one doubt regarding to my project ...i have one compiled socket source code .In this source code are fully worked Windows XP...but in this code is not suitable for vista(not compiled)..
what is the problem for this ?
Whats the solution for that?
Is there any DLL corruption or not?If it is yes what kind of DLL add that problem ..?
....Please give your suggestion or any URL ...
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Please don't spam the whole site. Is your code in C++, or C# ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi thanks to your replay...As my code is C++..
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
rowdy_vc++ wrote: As my code is C++..
Then why did you post your question in the C# forum and the Vista forum as well? What's behind your stupid behavior? Are you having a problem reading or understanding?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
rowdy_vc++ wrote: Is there any DLL corruption or not?If it is yes what kind of DLL add that problem ..?
I guess in your case, most probably dll corruption does not induce compilation error.
what are all your compilation error, doesn't it gives hint to the problem?
|
|
|
|
|
Hi Friend Thanks to your Replay....Actually Mr .Rajukuma its not displaying any error ...the output of our project is one kind GUI.In Windows XP when i Clicked that application its worked ..At the same time In Vista i Clicked that application its suddenly terminated ...this is my problem!!!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
|
Thank u Very much Mr .RajKuma
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
|
Thanks to your replay..Actually Mr.Hamid the beauty is that is no error displayed ..when i am clicked the event ..that event was terminated..thats all!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
So I think you need to review your project for vista.
|
|
|
|
|
Hi hamid first its displaying that is Two DLL'S are missing
MSVCP71.dll not found.
MSVCR71.dll not found
then i was add that this DLL in vista ..then it k but the event was not firing!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
|
Actually Mr.Humid its one application on GUI part.In this GUI part was terminated at runtime..but its not appeare any error ..thats y i am very confuse
Please tell me how to solve this problem
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Did you recompile your project on the Vista I had like your error previous ?
|
|
|
|
|
Hello everyone,
Which C++ rule do I break in the following code? Why there is compile error?
class Foo{
public:
Foo()
{
}
int foo1()
{
return 100;
}
const Foo getCurrent1()
{
return *this;
}
const Foo& getCurrent2()
{
return *this;
}
};
int main()
{
Foo f;
f.getCurrent1().foo1();
f.getCurrent2().foo1();
return 0;
}
thanks in advance,
George
|
|
|
|
|
int foo1() is not a const function so you can't call it on a const object or through a const reference. This will fix it:
int foo1() const
Steve
|
|
|
|
|
Thanks Steve, my question is answered.
regards,
George
|
|
|
|
|
http://www.codeproject.com/useritems/GINA_SPY.asp
|
|
|
|