Re: Possible to use pinvoke to call DLL built with cygwin

2006-11-01 Thread Sammy Yu
Hey guys, I really appreciate all the help. I made some changes to the cygload.cc program by adding a changing the main method into a init_cygwin_lib method and building it as a shared library. My C# application now calls this init_cygwin_lib, but when it does the application just mysteriously

Re: Possible to use pinvoke to call DLL built with cygwin

2006-11-01 Thread Larry Hall (Cygwin)
Sammy Yu wrote: Hey guys, Thanks for the quick response. I've tried calling the cygwin_dll_init method but I'm still getting the same error. I think it's because of the 4K scratch space on stack size limitation mentioned here: http://sourceware.redhat.com/cygwin/faq/faq-nochunks.html. Is th

Re: Possible to use pinvoke to call DLL built with cygwin

2006-11-01 Thread Sammy Yu
Hey guys, Thanks for the quick response. I've tried calling the cygwin_dll_init method but I'm still getting the same error. I think it's because of the 4K scratch space on stack size limitation mentioned here: http://sourceware.redhat.com/cygwin/faq/faq-nochunks.html. Is this correct? Bein

RE: Possible to use pinvoke to call DLL built with cygwin

2006-11-01 Thread Dave Korn
On 01 November 2006 20:10, Larry Hall (Cygwin) wrote: > Sammy Yu wrote: >> One of the >> components built is a DLL which I want to invoke from a C Sharp >> application. However, the application crashes whenever I call this DLL >> via pinvoke in C Sharp. > You need to initialize the DLL. Loa

Re: Possible to use pinvoke to call DLL built with cygwin

2006-11-01 Thread Larry Hall (Cygwin)
Sammy Yu wrote: Hi guys, I'm trying to port an application onto Windows that was originally developed for UNIX using rpc, pthreads, and AF_UNIX sockets. I have used cygwin to compile this application successfully. One of the components built is a DLL which I want to invoke from a C Sharp app

Possible to use pinvoke to call DLL built with cygwin

2006-11-01 Thread Sammy Yu
Hi guys, I'm trying to port an application onto Windows that was originally developed for UNIX using rpc, pthreads, and AF_UNIX sockets. I have used cygwin to compile this application successfully. One of the components built is a DLL which I want to invoke from a C Sharp application. Howeve