Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3424110 By: nobody
I have prebuilt static libraries for *nix and for Windows which I got http://gnuwin32.sourceforge.net/packages/pcre.htm I am trying to use recomp, regexec and regfree to do some quick and dirty text parsing. Here is a rough snippet of code regex_t reg; regmatch_t regm[1]; res = regcomp(®, "are", 0); res = regexec(®, "how are you", 1, regm, 0); regfree(®); Debugging through it, shows that both calls to regcomp and regexec are successful and "are" is correctly spotted. Disaster strikes when I call regfree though. On RHEL, it seg faults and on Windows XP it asserts. Now I can see why it would do that assuming regcomp returned res != 0 but everything is fine. Anybody have any ideas??? :( ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=74807 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users