Access violation when using Post method?

Giganews Newsgroups
Subject: Access violation when using Post method?
Posted by:  Ron Mertens (r…@metalgrass.com)
Date: Mon, 19 Dec 2005

Hi guys.

I'm using a post method in my application (Loggin to Google Adsense
Server). This usually works fine, for most users. I suddenly have a user
that reports an error. I gave him a debug version, and got this -

Access violation at address 004062D0 in module 'AdSenseLog.exe'. Read of
address 00000004

Here's my code -

  Params := TStringList.Create;
  Params.Add...
  AddressStr := '...'
  TempStr := MainForm.IndyHttp.Post(AddressStr,Params);
  LogUnit.write_to_log('asdf);

The error occurs in the post line - I never get to that final log file.
I get an exception - access violation.

Any ideas what might cause this??

Regards,

Ron

Replies