|
Hi
When I tried to run my software, I got following errors. I found that this error happened at "delete" statement.
What kind of errors it could be? Thanks.
--------------------------------------------------
HEAP[APP.exe]: Heap block at 025B7448 modified at 025B755C past requested size of 10c
Windows has triggered a breakpoint in APP.exe.
This may be due to a corruption of the heap, and indicates a bug in APP.exe or any of the DLLs it has loaded.
--------------------------------------------------
|
|
|
|
|
You allocated a memory block of size 172 bytes (one way or another). You used more than 172 bytes of that block.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
for i culminating task i have to create my own program using visual basics...i have no idea what to do.. I'm in grade 11, so something easier would be good, but not like really really simple. Does anyone have any ideas on what kind of a program i could create?
|
|
|
|
|
carleyt wrote: for i culminating task i have to create my own program using visual basics...
So wouldn't you be better served posting here?
"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
|
|
|
|
|
i wrote a c/s app. the client sends a DWORD to the server.it runs no error,but the DWORD sent doesn't equal to the DWORD received some times ,how it happens?
|
|
|
|
|
Someone ate a byte or two on the way? Seriously though, you need to be more specific than that. Read the guidelines ("How to get an answer to your question") which is on top of this forum, please.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Inputs, outputs...We have no elements, Watson!
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]
|
|
|
|
|
maybe there is something about network byte order!
|
|
|
|
|
The network packets contain:
- packet information, which must obey the byte order specified in the standards specification; the drivers and network protocols are there to take care of that on both ends.
- the actual user-defined data (the "payload"); here it is up to the user how the bytes have to be interpreted. As the OP said it works often and fails sometimes, I don't think a byte ordering mistake was made.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Please upload you code............
|
|
|
|
|
o!! I find the problem at last! It is a Multithread problem, one data struction used in multithread without protection, data was dirty.
|
|
|
|
|
a dirty DWORD???
you mean you didn't correctly make a local copy then, it is too small to not update atomically.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
my multithread app used some threads which have a socket parameter sent in,before the parameter being used ,another thread make it dirty. this is what happened in my app.
|
|
|
|
|
Is there any way to save these files programmaticaly
Trioum
modified on Friday, June 12, 2009 2:04 AM
|
|
|
|
|
trioum wrote: We Normally save the existing file (.doc,.txt etc) by pressing the save button
What save button? In which application? Who is "We" and could you elaborate on "Normally"?
trioum wrote: Is there any way to save these files programmaticaly
Possibly. That's the best I can do with the given context.
|
|
|
|
|
ok process from another programme
Trioum
modified on Friday, June 12, 2009 2:10 AM
|
|
|
|
|
trioum wrote: by pressing the save button
OK, I just spotted the thread where you asked the same question:
http://www.codeproject.com/Messages/3053288/saving-file.aspx[^]
The save button you refer to appears to be some mystical entity or is possibly located in a parallel universe (or both?) since you are unable to tell us more about it.
|
|
|
|
|
tell me one thing what will you do if save the content
Trioum
modified on Friday, June 12, 2009 2:16 AM
|
|
|
|
|
|
I think what he's looking for is a way to send the correct message or key value to another program to make it save the current file, something which has been covered here many times, and which Google will give an answer to in about 5 ms.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Why the hell are you posting all this rubbish in the Visual C++ forum? Can't you just see what kind of lame posts are you making?!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Word provides a menu item for this or am I wrong?
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]
|
|
|
|
|
The level of dross questions have increased many fold these days.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Must be a nest somewhere nearby...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
I implemented an open file dialog based on the following sample:
Host Windows Explorer in your applications using the new Vista hosting APIs[^]
It displays a fully functional Windows Explorer window to allow the user to navigate and pick a file or folder.
Everything works fine except one detail. When the user double clicks a file in that window, the system attempts to open it with the default application registered for that type of file. I don't want that, because I want my application to open the file.
More precisely, my application searches for resources in executables. When the user double clicks an exe file, I don't want the file to be started to run, I just want to search it.
I need to intercept the double click messages, but I'm clueless how to do that using ATL.
Using the CFileDialog class is not an option, I need to select directories too.
Using SHBrowseForFolder is not an option either, I need additional controls in the dialog.
|
|
|
|