VM crashes when I call finalize()
Brought to you by:
setigamer
I am scrapping data from a site that relies heavily on cookies. I realized that in cURL the cookies do not get written to a specified file unless the finalize() method is called and another object of CURLGLUE is created to access the cookies contents and access other pages in the site. The bug that occurs when I do this is that the VM crashes when trying to release the resources it used to get curl running. Why does that happen ? Sample of the code I used that causes this problem:
cg.finalize();
CurlGlue cg = new CurlGlue();
// More cURL code below
// VM crashes while this code is running