delphi - EAccessViolation exception!!! (detailed, With images) -
well, here again, trying resolve old problem.
briefly, av when try free modal form not have owner, , didnt have been freed before.
frmitensvenda := tfrmitensvenda.create(nil); frmitensvenda.vtipo := vtipo; frmitensvenda.vcontrole := strtoint(edit1.text); frmitensvenda.ednota.text := edit5.text; frmitensvenda.lbvend.caption := combobox3.text; frmitensvenda.lbnome.caption := combobox1x.text; frmitensvenda.limite := limite; if label10.caption <> '' frmitensvenda.vcli := strtoint(label10.caption); frmitensvenda.showmodal; frmitensvenda.close; frmitensvenda.free; if activate , close(without doing thing), no av happens. putting break-point before 'free' command, shows me variable inside form if put mouse cursor on it.
but if insert 1 item in grid, using breakpoint @ same place, when move cursor same line, doesnt show variables anymore, says 'inacessible value'.
and if proceed running code, next line has 'free' command av. makes me believe there piece of code on procedure doing unexpected code, can tell there no 'free' or similar command form in question there.
my solution(temporary) comment '.free' command, if run madexception got memory leak when close application (hey, better eaccessviolation thing me right now..)
sugestions?
ok, found answer, finally. problem global array. declared
vm1 : array[1..100] of currency;
assigned value @ position 0.
despair, there no error when variable assigned, when tried free form. simple when find it.. (!!!) well, @ least figured out. support!
Comments
Post a Comment