vitamin
2008-Aug-27 06:08 UTC
[Wine] Re: Please die if you wait "too long" RtlpWaitForCriti
Dee Ayy wrote:> On Mon, Aug 25, 2008 at 12:44 AM, vitamin <wineforum-user at winehq.org> wrote: > > > Try: > > > > Code: > > $ wine cmd > > c:> echo "some stuff" | myexe > > > > Interesting way to run wine. However, I get the same response.Then either your program is buggy or Wine's cmd doesn't fully implement what you want. Making a simple test app points ... to your app being buggy: Code: #include <stdio.h> int main(void) { char buff[100]; fgets(buff, sizeof(buff), stdin); printf("got \"%s\"\n", buff); return 0; } $ i386-mingw32-gcc test_pipe.c -o test_pipe.exe $ echo "something" | wine test_pipe.exe got "something " $ wine cmd CMD Version 1.1.3 C:\>echo "something" | test_pipe.exe got ""something" " C:\>
On Wed, Aug 27, 2008 at 1:08 AM, vitamin <wineforum-user at winehq.org> wrote: Code like what you posted works. What does not work apparently is tee and 3>&1 1>&2 2>&3 Yes there were bugs and something I don't understand. 1) My logic bug: There was no need to call the following before my code block -- I thought I was being cautious. (The MTAPI says to call it after). My app seems to be working fine now without this initial HeapFree. if (g_pTrades != NULL) ::HeapFree(hHeap, 0, g_pTrades); 2) I don't understand why there is a problem having what I thought was a safety HeapFree call since I'm checking that g_pTrades != NULL.
Apparently Analagous Threads
- Re: Please die if you wait "too long" RtlpWaitForCriti
- Please die if you wait "too long" RtlpWaitForCriticalSection
- Re: Please die if you wait "too long" RtlpWaitForCriti
- Re: Please die if you wait "too long" RtlpWaitForCriti
- Re: Please die if you wait "too long" RtlpWaitForCriti