How do I get Time Info on a remote network file of the Last Write on a File without actually opening the file. I have an App that needs to know when to re-load. It Opens the File every three minutes to check the last Write time,to determine if it's own version is stale. That traffic alone causes problems. Windows Explorer seems to have a way of getting this info in that way.
That still isn't going to solve the problem of excessive network traffic. To actually get notifications (instead of constantly polling), check out FindFirstChangeNotification and ReadDirectoryChangesW.
Do those work for network drives? I am aware of them, but thought they only worked for local drives, or only worked for some network drives or something. Documentation doesn't say anything, so it's probably just a bit of dust in my brain masquerading as a memory.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
There is no possibility to switch to Java or C# where the garbage collector is not needed.
The company where I work only develops in Borland C++ Builder 6.
That's why I need a garbage collector for BCB 6.
Does anyone have a serious reply to my problem ?
But why do you need one? I have never heard of a technical requirement for GC, only political requirements. The only reason I ask is in case you have real requirements that would be satisfied using Placement new.
Garbage collectors don't work well outside a managed environment and especially in C/C++. Using smart pointers and just writing classes correctly gets you most the way there. While the above reply may be sarcastic, it's correct: if you want garbage collection, you should be using a managed environment.
(I think garbage collection is way overrated. The biggest problems I encounter in a related area are resource leaks, not memory leaks, and garbage collection does a piss poor job at that, especially in .NET. There is too much terrible code out there where developers say "the garbage collector will handle it".)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
I've downloaded the Boehm GC but I don't know how to use it in BCB6.
Also I've downloaded the library LibGC from this website (http://www.codeproject.com/KB/cpp/agm_libgc.aspx). This library seems easy to be used.
However when I include the gc.hpp in the BCB project and try to compile, it shows me the following error:
[C++ Error] gc.hpp(101): E2238 Multiple declaration for 'Object::operator delete(void *)'
[C++ Error] gc.hpp(84): E2344 Earlier declaration of 'Object::operator delete(void *)'
Does anyone know how to fix theses errors ?
Last Visit: 31-Dec-99 18:00 Last Update: 30-Jul-16 8:39