|
Greg Utas wrote: If you retry, what makes you think the outcome will be any different? Just retrying blindly usually makes little sense. However, the handler may have taken steps to remedy the situation.
Say if you have this (instruction level) memory allocation mechanism, failing because no free block of the requested size was available. The handler could do a heap compaction, and if that fails to create a big enough free block, allocate more memory to the heap from a lower level mechanism, and then request the application to retry the allocation instruction.
Any handler trying to remedy a fault situation (whether at instruction level or higher software level) should keep track of the retries. If the same fault occurs repeatedly, retries should be reconsidered. I have seen several examples where such strategies were followed, e.g. in telephone switches where software modules where updated while the system was running: If an updated module caused a fault for the third time, the previous (and presumably stable) version was automatically reinstated.
(In some areas, computer network guys could learn a few things from the telecom guys! It is a pity that IP networks are pushing out traditional telecom networks before we got ourselves to pick up that knowledge before it is forgotten!)
|
|
|
|
|
That kind of retry is possible, but it's unusual. My background was also telecom switches, and we used pools of fixed-size blocks, each dedicated to a specific subsystem, instead of a heap. It was similar to what I describe in this article[^], in which an orphaned block gets recovered by a background garbage collector if it remains unclaimed by the application that allocated it.
|
|
|
|
|
Hi
I get eacces Return code when I try to open a file in my ftp folder I try to open it read only
Wondering a few things I created a while ago not sure it’s password protected ( don’t think so )
Or maybe I have to use FTP api to copy it or read it
Wondering if any one has had any experience with this
Thanks
|
|
|
|
|
I think we need some more details. Can you access the folder to get a directory listing? Is this a local or remote folder? Do you have administrator access to the folder/file? Is this at a command prompts or in some application?
|
|
|
|
|
From a Windows MFC program
I have notify callback whenever the directory changes. I download via EZAFTPKA program Ftp api on z/os a binary file ( sysadata of a program this is like pdb in VS) after the notify file added I try to _sopen for read only
Thanks
|
|
|
|
|
This may be a simple matter of Windows not trusting the source of the file. I know that sometimes when downloading files Windows will semi-quarantine them and you need to enable access manually. Take a look at the file itself and check the properties.
|
|
|
|
|
I know this code worked once since that time I installed Norton wonder if that’s getting in the Way
Guess you don’t think it’s an FTP issue ok thanks
|
|
|
|
|
ForNow wrote: Guess Impossible to do more.
|
|
|
|
|
Hello together,
I´m try to get a communication between a process written in c++ and a process written in c#.
Each Processes have a RPC Server ans a RPC Client.
The following situation exists:
It´s possibel to start a correct RPC communication between 2 processen written in C++.
And it´s also possible to start a correctly RPC communication between 2 processes written in C#.
It´s not possible to start a correctly RPC communication between a process written in c++ and a process written in c#.
The interface is initialized with the "ncacn_ip_tcp" protocol.
The error accours in the function "NdrGetBuffer(,,)". This function is declared in "rpcndr.h".
The client use this function for getting a pointer from the RPC server to send the requiered datas.
I don´t no how shall I do now.
Is there anyting to setup in user settings?
Can someone help me?
Have someone also problems with RPC Server / Clients
Thank You very much.
CopWorker
|
|
|
|
|
|
Hello,
thanks for the hint.
I´ve already scoured this page.
In my application the server and client works with "endpoint" definition
not with ports.
As I said.
Processes that are written in C ++ communicate with one another, as do the processes that are written in C #. This is not a problem.
No communication between processes written in C ++ and processes written in C #.
If someone has these problems in the same way, I would be happy to hear from you.
Thanks a lot
CopWorker
|
|
|
|
|
I have a simple console app. I instantiate a CTest class. How can I output a console inside of class ?
int main()
{
CTest test;
test.ListItems();
}
CTest::ListItems()
{
CString s(_T("abc"));
std::out << s;
}
and the output console show:
01378168 . I have tried several things, but something I am missing.
Of course, the app recognize CString.
|
|
|
|
|
How about
CString s(_T("abc"));
std::out << (LPCTSTR)s;
|
|
|
|
|
_Flaviu wrote: I have a simple console app. Is it Unicode? If so, you may have to use wcout instead.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
You need to use one of the methods of CString or CSimpleString that returns a pointer to the characters. The cout function does not understand an MFC object reference.
|
|
|
|
|
I succeeded with
CStringA . Thank you all of you !
|
|
|
|
|
Hi,
The CStringA class has an operator LPCTSTR which means you should be able to use it with cout. There is also a CString::GetBuffer().
Best Wishes,
-David Delaune
|
|
|
|
|
Randor wrote: The CStringA class has an operator LPCTSTR
Just a small clarification: CStringA class has an operator LPCSTR.
|
|
|
|
|
Yep,
I always disliked the TCHAR hacks. Although I do still find myself using the L and _T macros for string literals.
Btw, I met you some years ago at one of the restaurants after the mvp summit. I think you were the only guy not drinking alcohol if I remember correctly.
Best Wishes,
-David Delaune
|
|
|
|
|
|
Ok, it would have been at the Submixer[^] which is at the commons area. I went out of my way to make it there in the evenings just to see some of the people from the online forums.
Actually now that I think about it, it was probably Marius Bancila. In my mind I've always had both you guys organized as the "Codeguru mvps".
Best Wishes,
-David Delaune
|
|
|
|
|
|
I'm trying to see if I can embed a CFileDialog to a CPropertyPage.
I stumbled on this question with a minimalist answer (I've asked there also) : Re: CFileDialog in CPropertySheet - C / C++ / MFC Discussion Boards
The id IDD_FILEOPEN_EX does not exists, can I replace it with AFX_IDD_FILEOPEN ? (there's not seems to be a IDD_FILEOPEN id ).
also,
If I need to include dlgs.h to have access to the id stc32, do I need to include an additional RC file somewhere.
Or, is there a more modern way of doing this ?
Thanks.
I'd rather be phishing!
|
|
|
|
|
The AFX_IDD_FILEOPEN is defined in afxres.h that is by default #incuded in your resource.h file.
|
|
|
|
|
Hi everyone . I am a newbie in programming , so i would be very grateful if you could help me . I have to implement the Blum Blum Shub in C or C++ using the stdlib.h and time.h libraries . Can anyone help me with this ?
Thanks
|
|
|
|