ADM dialog hangs but on debugging it works fine. Can't spot the problem

Hello,
I have developed an automate plugin which submits a design on a server using libcurl library. There is a dialog(made using ADM) to submit a design which consists of a submit button and a progress bar. On clicking the submit button, the progress bar starts getting updated. When the progress bar is completely updated the dialog seems to hang. The dialog is supposed to close after submit. The obvious way to search for the problem was to debug the source code, but it appears that whenever the source code is debugged then it runs smoothly. But without any debug points the problem reverts. How can we spot the problem without debugging?
Please guide.

In developing plug-ins over the past years I have encountered a few cases where the presence of the debugger seemed to work around a problem.  The debugger necessarily changes the timing and resource allocations some.
In every case the problem turned out to be a legitmate bug - a mistake we had made in our code, and in some cases finding that bug required other measures beyond using the debugger to help us track it down.  We ended up implementing a very sophisticated logging facility that we use in all our products now.  It appends lines of text containing pertinent info into a log file that's created for each run.  The detailed logging commands compile-out in a Release build, so we just leave them in the source code all the time and they add no overhead.
Unfortunately, there's no easy answer for your dilemma, other than to advise you to implement your own logging facility - or at least the ability to add printf statements (or similar) into your code so you can trace the progress in sticky situations.
Though I saw your message and am a plug-in developer myself, you might find you can get more direct help in the SDK forum...
http://forums.adobe.com/community/photoshop/photoshop_sdk
Good luck!
-Noel

Similar Messages

Maybe you are looking for

  • My Adobe Cloud desktop app does not show login fields

    Hi Folks, Unfortunately when I open my adobe cloud desktop app, the cloud app shows up but the login fields do not appear and I cannot login anymore nor I can use my programs anymore. Does anyone has an answer to this issue? Thanks R

  • LCD 20" Cinema Display Not Working on MBP

    Hi people! Somehow, the Apple Cinema Display (LCD) of 20" isn't working when I plug it to the MBP (late 2011). The monitor remains black after pluging it. Sometimes is detected by the MBP, and sometimes it isn't. Quite random thing. Same hapens when

  • Permissions on Pages & Workesets?

    Hi All I was wondering if it is possible to set permissions on pages or worksets. So if a user has no permissions to a page then it will not appear in the navigation? Can this be done, and if so does anyone have any information on how to set this up?

  • How do you change the tempo on a track once you have started the editing process

    I dont know why but i cant figure out how to change the tempo of a track after i have set it before creating the project and begin the editing process on it. i just want to be able to slow the song down because some times i miss the desired tempo ran

  • Report Not Created/Displayed

    On two servers one running MX7.01 and the other MX 7.02 I am encountering situations where reports that have been functioing fine for many, many months are now behaving strangely. When a report is selected the CFREPORT (PDF Format) tag kicks off and