try/except triggers madexcept with ini.writestring

delphi package - automated exception handling
Post Reply
petesouthwest
Posts: 42
Joined: Mon Dec 05, 2005 11:50 am

try/except triggers madexcept with ini.writestring

Post by petesouthwest »

Hi

When I run my app on a network writing to the ini file triggeres madexcept even though I have used try/except.

This is my code:

Code: Select all

Ini := TIniFile.Create(ExtractFilePath(Application.ExeName)+'config.ini');
     try
     ini.writestring('Data',name',form1.cmbRoom.Text);
     ini.writestring('setup','memory',value);
     finally
     Ini.Free;
     end;
I read the previous thread concering try/except, but not sure how it relates to my code.

Thanks
Pete
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Where is the try..except block? I don't see one!
petesouthwest
Posts: 42
Joined: Mon Dec 05, 2005 11:50 am

Post by petesouthwest »

sorry, buring candle at both ends often means I ask stupid questions and make myself look an idiot :oops: :oops: :oops: :oops: :oops:
Post Reply