memory - Delphi 5 application partially loaded in task manager, takes forever to actually display -


i have application written in delphi 5, runs fine on (windows) computers.

however, program begins load (you can see in task manager, uses 2.5-3 mb of memory), stalls number of minutes, hours.

if leave long enough, formshow event occur , application window pop up, seems other application or windows setting preventing using memory needs run (approx. 35-40 mb).

also, on of client's workstations, if have ms outlook running, can close , application pop up. know going on here, and/or how fix it?

since nobody has given better answer i'll take stab @ how solve this:

there's in initialization locking somehow. without seeing code not know i'll address how go finding it:

you need log accomplish during startup. if have kind of screen showing find window title useful sounds don't--that means need write log file. let lost, kill task , see got.

note means need cleanly write data despite abnormal program termination. how go this:

a) append, write line, close.

b) write line, flush file handle.

c) write file consist of large number of blanks--ensure larger actual log be. write line. in case of abnormal termination retain original larger file size.

i write timestamp on every log item can see if it's processing slowly.

if examining log shows problem is, fine. if, happens, it's not enough put bunch more logging between last item did logged , next 1 didn't--i've been known log every line when hunting cryptic problem happened on else's system.

if finding line isn't enough pinpoint problem dump value of relevant variables.

finally, if such intense scrutiny makes bug go away start looking uninitialized variable. (while memory stomp option doubt it's culprit here.)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -