> so what can i do for > > char *getwd(char *buf); > > ? >
You must know C programming first, and understand how getwd works. By typing 'man getwd', you will learn that you must not use that function, it is dangerous and so deprecated. Then you will read that buf must be a pointer to a memory allocation of PATH_MAX bytes. You must find the value of this constant inside the standard C header files. SizeOf(gb.String) is 4 (on 32 bits system). It is the number of bytes used by Gambas to store a pointer to a Gambas string. This is the reason why you get a crash. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user