Board index » delphi » TIniFile.Create causes GPF - Help a Newbie?
mfri...@saturn.tlug.org (Mike Frisch)
![]() Delphi Developer |
Wed, 17 Jun 1998 03:00:00 GMT
|
mfri...@saturn.tlug.org (Mike Frisch)
![]() Delphi Developer |
Wed, 17 Jun 1998 03:00:00 GMT
TIniFile.Create causes GPF - Help a Newbie?QuoteIan Packer (ipac...@bloggs.win-uk.net) wrote: How about? IniFile := TIniFile.Create('contact.ini') I believe that is the correct syntax and works just perfectly here in Mike. -- |
Ian Pack
![]() Delphi Developer |
Wed, 17 Jun 1998 03:00:00 GMT
Re:TIniFile.Create causes GPF - Help a Newbie?Hello, I'm trying to use the TIniFile object and its causing a GPF when I try I have used the TIniFile succesfully previously and it seemed to Can anyone tell me what the problem is? PROCEDURE Initialise; Regards Ian Packer Email: ipac...@bloggs.win-uk.net |
Billy McDani
![]() Delphi Developer |
Wed, 17 Jun 1998 03:00:00 GMT
Re:TIniFile.Create causes GPF - Help a Newbie?Quoteipac...@bloggs.win-uk.net (Ian Packer) wrote: and change your IniFile.Create('contact.ini') line to IniFile := TIniFile.Create('contact.ini'); or skip the check for existence of the ini file since |
Michael Chap
![]() Delphi Developer |
Wed, 17 Jun 1998 03:00:00 GMT
Re:TIniFile.Create causes GPF - Help a Newbie?In article <4c21af$...@gwen.pcug.co.uk>, ipac...@bloggs.win-uk.net (Ian Packer) wrote: Quote>Hello, It would also be less hassle if you just used the FileExists function to ----------------------------------------------- |
Rune Mobe
![]() Delphi Developer |
Thu, 18 Jun 1998 03:00:00 GMT
Re:TIniFile.Create causes GPF - Help a Newbie?In article <4c21af$...@gwen.pcug.co.uk>, Quoteipac...@bloggs.win-uk.net (Ian Packer) wrote: the file? Most apps seems to go with the default values, and don't explicitly make the INI file. If you're making a setup application of some sort, then it won't help just my 2 cents which probably doesn't apply to your specific problem =\ Q: Where can you get Street Fighting Man, Like A Rolling Stone, |
Ron Zi
![]() Delphi Developer |
Thu, 18 Jun 1998 03:00:00 GMT
Re:TIniFile.Create causes GPF - Help a Newbie?Ian, your call of TInifile.create('file.ini'); returns a pointer. Your code doesn't get the pointer and could potentially corrupt memory. var Initest: Tinifile; I haven't tried your code, but it just seemed odd. Good Luck! Ron Zika |