flushing

Using ActiveRecord/NHibernate, can I Delete and Refresh without a Flush?

I have the following Unit Test method: void TestOrderItemDelete() { using (new SessionScope()) { var order = Order.FindById(1234); var originalItemCount = order.OrderItems.Count; Assert.IsTrue(originalCount > 0); var itemToDelete = order.OrderItems[0]; itemToDelete.DeleteAndFlush(); // ite...

Ensuring a file is flushed when file created in external process (Win32)

Hi all, Windows Win32 C++ question about flushing file activity to disk. I have an external application (ran using CreateProcess) which does some file creation. i.e., when it returns it will have created a file with some content. How can I ensure that the file the process created was really flushed to disk, before I proceed? By this ...

Is there a way to do on demand flushing of WCF trace?

Just like there is a command to flush IIS7 logs: netsh http flush logbuffer I'm wondering is there a similar command to flush WCF trace log on demand. ...

I am not able to flush stdin.

How to flush the stdin?? Why is it not working in the following code snippet? #include <string.h> #include <stdio.h> #include <malloc.h> #include <fcntl.h> int main() { int i=0,j=0, sat; char arg[256]; char * argq; argq = malloc(sizeof(char)*10); printf("Input the line\n"); i=read(0, a...

Can I output/flush data to screen while processing ajax page?

I need to display on my page a list of records pulled from a table. Ajax works fine (I query the database and put all the data inside a on the main page) but if I have lots of records (say 500+) it will hang until data is fully loaded, THEN it will be sent back to the page and correctly displayed. I would like to be able to display the...

How to flush output after each `echo` call?

Hi all! I've a php script that only produces logs to the client. When I echo something, i wan't it to be transfered to client on-the-fly. (Because while the script is processing, the page is blank) I had already played arround with ob_start() and ob_flush(), but they didn't worked. What's the best solution? PS: it is a little dirty to ...

How often does python flush to a file?

I was wondering how often python flushes to a file. Also wondering how often python flushes to stdout. I believe python flushes to stdout after every new line but that being said, if you overload stdout to be to a file does it flush as often as stdout or how often it flushes to a file? Anyways thanks! And sorry for the pretty simple que...

Nhibernate Update does not persist change to database

I have a problem getting my change(s) to data object retrieved using NHibernate to persist back into the database. I get no exceptions so it's difficult to know where to look. Any suggestions? string name = "somenewname"; string repositoryId = "somerepositoryid"; ISession nhbSession = GetNhbSession(session); nhbSession.Transaction.Begi...