in reply to Re: [Win32] "Free to wrong pool ..." error
in thread [Win32] "Free to wrong pool ..." error
The problem seems only to arise when it's the external library that allocates the memory.use warnings; use Inline C => <<'EOC'; #include <malloc.h> void foo() { char * string; string = malloc(10 * sizeof(char)); free(string); } EOC foo(); print "All done without error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [Win32] "Free to wrong pool ..." error
by BrowserUk (Patriarch) on Feb 09, 2009 at 11:52 UTC | |
by syphilis (Archbishop) on Feb 10, 2009 at 05:45 UTC | |
by ikegami (Patriarch) on Feb 10, 2009 at 06:25 UTC | |
by BrowserUk (Patriarch) on Feb 10, 2009 at 14:39 UTC |