Dialog Proces

Hi All,
I came across this situation today, all the Dialog work processes of the server were u2018runningu2019 and it was same for all the Update work processes .Semaphores could also be seen in front of respective work process (SM50).This occurs 2-3 times every month.
However restarting the server solves the problem.
Could any one of you suggest me what is required to be done in order to prevent this from happening in future.
Thanks In Advance.
AKS

issue resolved

Similar Messages

  • Dialog process (loading)

    Hello,
    We have upgraded the system to BW2004s. Now when loading fom cube to cube. We get 2 dialog processes. Before we got only 1 dialog process.
    Does anybody know how to select only 1 dialog proces during loading?
    regards,
    Jos.

    <b>Rules -</b>
    You cannot change the number of dialog processes directly. The number of dialog processes is calculated automatically from the total number of work processes minus all the other work processes.
    There must always be at least 2 dialog processes. The number of other work process types can only be increased if there are more than two dialog processes.
    <b>Transactions</b>
    SM50 - To check how many DIA processes are available for you.
    RZ04 - Is the transaction to configure the number of DIA processes need to be increased,done by BASIS ...
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a5ef8505211d189550000e829fbbd/content.htm
    Hope it Helps
    Chetan
    @CP..

  • How to debug a RFC function mod in background?

    Hi all,
    I am uploading a file thru a portal application & the output will go to a mail box. Everything happens in background.
    First the portal application will call a XI devlopment & then the data processed will call a RFC fun mod and the output is going to a mailbox.
    In the function modules, I am getting the errors. Since it is a protal application & it runs in backgrnd, I am unable debug the fun modules. I tried both external break point & internal breakpoints. But I am unable to debug the program.
    can anyone help me how to keep external breakpoints & debug it in background?
    Thanks,
    Vijay.

    HI ,
    you can do  Debugging  , what you need to do is  need not  use the login as Public  . there will be  another   group server  .
    i am sure you are  using  PUBLIC   in this  only the  front  end   will work   means  only   inside the sap objects will be  stopped  . for  Portal  other thigs  you need to take  other gropu server  .
    Your Basis Knows  it  well ....
    Normally , in SAP   You will have PUBLIC  ,SPACE, MESSAGE ,dialog  servers.
    Take the last  one  which will have   all  facilities  ,so that  it will stop  in the  break Points which  you kept.
    it means the Dialog  proces will take  care of the  screens and  also takes  Break Point  and  stops  it  in sap  .
    Reward  points  if it is usefull....
    Girish

  • Intermittant dialog draw proc CRASH

    Hi,
    I am developing Illustrator CS2 plugin for Mac using Xcode 1.5/OS 10.3.9. I have intermittant problem with display of certain dialog. I have overridden dialog's draw procedure with my own, which calls default draw and then adds some additional text and icon.
    Usually it dislays fine.
    Sometimes however, it starts to draw my text and then I get bad crash out of Illustrator. Some of crash log is below. Perhaps it is recursivly calling my display proc?
    Tried debugging. I put breakpoint in my draw proc. First time it is hit, nothing shows up in Illustrator. After continue, dialog pops up and breakpoint is hit again (why?). Continue again, and back in Illustrator we can hit OK to dismiss dialog. Now breakpoint is hit a third time, after continue all is normal.
    HELP please!
    Chunky
    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_INVALID_ADDRESS (0x0001) at 0xbf7ffaf0
    Thread 0:
    0 com.apple.CoreGraphics 0x936ade74 aa_moveto + 0xc
    1 com.apple.CoreGraphics 0x936928f8 CGPathApply + 0x224
    2 libRIP.A.dylib 0x9073bac8 ripr_Path + 0x538
    3 libRIP.A.dylib 0x907352dc ripc_GetClippingState + 0x5b8
    4 libRIP.A.dylib 0x907377a8 ripc_GetRenderingState + 0x2c
    5 libRIP.A.dylib 0x9073632c ripc_DrawGlyphs + 0x98
    6 com.apple.CoreGraphics 0x936aa270 drawGlyphs + 0x94
    7 com.apple.CoreGraphics 0x936ab4e0 CGContextShowGlyphsWithAdvances + 0xd0
    8 com.apple.QD 0x951d6ccc RenderGlyphRecordArrayWithCG + 0x650
    9 com.apple.QD 0x951d3500 ATSUDrawGlyphs(ATSGlyphVector*, unsigned long, unsigned long, FixedPoint*, CGContext*) + 0x58
    10 com.apple.QD 0x951d347c TTextLineLayout::DrawText(unsigned long, unsigned long, long, long) + 0x298
    11 com.apple.QD 0x951d31b8 ATSUDrawText + 0x98
    12 com.apple.HIToolbox 0x9288fbac TATSUTextLayout::DrawBox(_HIThemeTextInfo*, CGRect const&, CGContext*) + 0x278
    13 com.apple.HIToolbox 0x9288fce0 DataEngine::DrawThemeTextBox(__CFString const*, CGRect const*, _HIThemeTextInfo*, CGContext*) + 0xa4
    14 com.apple.HIToolbox 0x92895278 HIThemeDrawTextBox + 0x100
    15 com.apple.HIToolbox 0x928a91c0 _DrawThemeTextBox + 0x22c
    16 com.adobe.coretech.adm 0x0ee2d160 dyld_stub_binding_helper + 0x77e30
    17 com.adobe.coretech.adm 0x0edde400 dyld_stub_binding_helper + 0x290d0
    18 com.mycompany.myplugin 0x12516b10 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0xd0
    19 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
    20 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
    21 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
    22 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
    23 com.adobe.coretech.adm 0x0ee2af7c dyld_stub_binding_helper + 0x75c4c
    24 com.adobe.coretech.adm 0x0ee2fc08 dyld_stub_binding_helper + 0x7a8d8
    25 com.adobe.coretech.adm 0x0edb9248 dyld_stub_binding_helper + 0x3f18
    26 com.adobe.coretech.adm 0x0ee003c8 dyld_stub_binding_helper + 0x4b098
    27 com.mycompany.myplugin 0x12516c50 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0x210
    28 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
    29 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
    30 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
    31 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
    32 com.adobe.coretech.adm 0x0ee2af7c dyld_stub_binding_helper + 0x75c4c
    33 com.adobe.coretech.adm 0x0ee2fc08 dyld_stub_binding_helper + 0x7a8d8
    34 com.adobe.coretech.adm 0x0edb9248 dyld_stub_binding_helper + 0x3f18
    35 com.adobe.coretech.adm

    Rest of crash log which got cut off:
    36 com.mycompany.myplugin 0x12516c50 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0x210
    37 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
    38 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
    (many lines deleted)
    503 com.adobe.coretech.adm 0x0ee003c8 dyld_stub_binding_helper + 0x4b098
    504 com.mycompany.myplugin 0x12516c50 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0x210
    505 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
    506 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
    507 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
    508 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
    Thread 1 Crashed:
    0 ...ple.CoreServices.CarbonCore 0x947d668c _XHNDL_fullinfo_init + 0x14
    1 ...ple.CoreServices.CarbonCore 0x947d6788 _XHNDL_exception_setup_dispatch + 0x30
    2 ...ple.CoreServices.CarbonCore 0x947d6948 _XHNDL_server_handler + 0x108
    3 ...ple.CoreServices.CarbonCore 0x947d5988 TS_exception_listener_thread + 0xbc
    4 libSystem.B.dylib 0x92516990 _pthread_body + 0x28

  • Oracle Proc in edmx via add function import is not working

    I have a mandate to call a external oracle package from my local oracle db proc using Entity Framework. I have created a synonym for that. When I am trying to polpulate the oracle procedure data in my mvc screen using odp.net. The screen is closing automatically when I am trying to retive the column info by clicking "get column information" under "Add Function Import" in model browser.
    Following is my code snipet
    1. created a oracle stored proc to call the external proc
    CREATE OR REPLACE PROCEDURE USP_GET_DETAILS
    IN_ID IN NUMBER,
    OUT_RESULT OUT SYS_REFCURSOR
    IS
    OUT_FED_TAX_ID_NO VARCHAR2(50);
    OUT_PARTY_ID_NO NUMBER;
    OUT_PARTY_TYP_CD NUMBER;
    BEGIN
    PKG_GET_DETAILS.USP_GET_DETAILS_INFO (IN_ID, OUT_FED_TAX_ID_NO, OUT_PARTY_ID_NO);
    OPEN OUT_RESULT FOR
         SELECT OUT_FED_TAX_ID_NO, OUT_PARTY_ID_NO FROM DUAL;
    END USP_GET_DETAILS;
    2. added the proc "USP_GET_DETAILS" using "Update model using database" in my edmx file
    3. Now proc has been added to my edmx file under SSDL
    <Function Name="USP_GET_DETAILS" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="BCS_OWNER">
    <Parameter Name="IN_ID" Type="number" Mode="In" />
    </Function>
    4. added following code to my web.config file
    <oracle.dataaccess.client>
    <settings>
    <add name="BCS_OWNER.USP_GET_DETAILS.RefCursor.OUT_RESULT" value="implicitRefCursor bindinfo='mode=Output'" />
    <add name="BCS_OWNER.USP_GET_DETAILS.RefCursorMetaData.OUT_RESULT.Column.0" value="implicitRefCursor metadata='ColumnName=OUT_FED_TAX_ID_NO;NATIVEDATATYPE=Varchar2;ProviderType=Varchar2'" />
    <add name="BCS_OWNER.USP_GET_DETAILS.RefCursorMetaData.OUT_RESULT.Column.1" value="implicitRefCursor metadata='ColumnName=OUT_PARTY_ID_NO;NATIVEDATATYPE=Number;ProviderType=Decimal'" />
    </settings>
    </oracle.dataaccess.client>
    5. underModel Browser try to add the procedure under "Add Import Function", select "Complex Type". when i am clicking on "Get column information" button, the screen blank for some time and then auto closing the screen without displaying any column info. I would like to know if any thing wrong i am doing on my steps? please help?

    I managed to workaround this problem.
    I add the function with no return value. Then in the Model Explorer you go to the properties of the imported function and edit the return type property, the same dialog appears, but this time it works as expected(considering you have set all the values correctly on your config file).

  • Reader X - Save dialog box popup issue

    Hello,
    I found that in Adobe Reader X whenever you goto save a file using just the "Save" (ctrl+S) option it brings up the Windows file system box prompt, which allows the user to see other windows files, folders, etc.. This is a huge issue for us as we do not want our users to be able to save to different locations or change the current filename on accident.
    How can I prevent this Save dialog from showing?  It is the dialog I would expect to get from choosing a "save as" option, not just your standard "save" option. Also, we are opening PDF files from our own software developed in C#. So if there are any open parameters I can pass to disable this save dialog that would be helpful as well.
    Please advise or provide insight.
    Thanks!
    Seth

    Seth -
    This is the expected behavior for Reader X, it's somewhat unexpected, so let me explain the rationale behind it:
    With Reader X, Adobe introduced the concept of sandbox - this mechanism severly curtails the rights provided to the Reader process to prevent exploits from running. In your case, Reader process cannot write to user's disk without users' explicit approval. The Save as dialog that you see is seeking that approval. Certain folders such as the TEMP folder are white listed, you should see if you can incorporate those into your workflows.
    You can find details here:
    http://blogs.adobe.com/asset/2010/10/inside-adobe-reader-protected-mode-part-1-design.html
    http://blogs.adobe.com/asset/2010/11/inside-adobe-reader-protected-mode-part-3-broker-proc ess-policies-and-inter-process-communication.html
    -abhigyan

  • I need a code that allows me to show a "Please Wait" Dialog while performing a lengthy operation

    Hi,
    I have very basic knowledge of C++ and I don't understand completely how this works. I have been trying to use pthreads in order to be able to show a "Please Wait" Dialog while performing a lengthy operation. The problem is that the dialog
    box is showing up with a blank box where the label should go. Could you please modify the following code so that the program does what I am looking for? (note that I have pasted the sections of the program I think are useful for someone to provide an answer).
    void *run_optimization( void *ptr );
    void *run_optimization( void *ptr )
    Solution x = Optimizer(); // Lengthy operation
    const int * const SolArray = x.getDiscreteSolution();
    return 0;
    namespace RCM {
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
    Processing^ Proc = gcnew Processing();
    Proc->Show(); // this is the "Please Wait" Dialog
    pthread_t thread1;
    int ret1;
    ret1 = pthread_create( &thread1, NULL, run_optimization, NULL);
    pthread_join( thread1, NULL);
    Thank you!!
    EDIT:
    I have tried the following:
    void *run_optimization( void ^ptr );
    void *run_optimization( void ^ptr )
    Processing^ Proc = (Processing ^)ptr;
    Solution x = Optimizer(); // Lengthy operation
    const int * const SolArray = x.getDiscreteSolution();
    Proc->Close();
    return 0;
    namespace RCM {
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
    Processing^ Proc = gcnew Processing();
    pthread_t thread1;
    int ret1;
    ret1 = pthread_create( &thread1, NULL, run_optimization, (void *)Proc);
    Proc->Show(); // this is the "Please Wait" Dialog
    But I am getting the following error:
    error C2440: 'type cast' : cannot convert from 'RCM::Processing ^' to 'void *'

    Hi Shu!
    It runs in windows. I am using Visual Studio 2010 (and I can't use another version) which still doesn't have the threads integrated as I have read. So I am using POSIX threads for windows. 
    Regarding the other question, I don't really know what either of those (.net framework library or native API) mean. I am sorry but I am really new at this and really don't know much but I am doing my best because I have to get this done.
    I only know basic C++ but had to use C++/CLI windows forms because of a code I integrated in my program for running macros in excel and it was in C++/CLI.
    Thank you for your help!
    You cannot pass a managed handle to void* (as you have discovered).
    If you really want to use Posix threads, you probably need to make your Processing class a normal C++ class, not a C++/CLI ref class.
    But the .NET way to do this would be to use a BackgroundWorker:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker%28v=vs.110%29.aspx
    David Wilkinson | Visual C++ MVP

  • How to identify which process in process chain executes in Batch and Dialog

    Hi, We want to identify which processes in process chain is running in Batch mode or Dialog mode. Is there any where we can identify this from any table or transaction. (Eg Loading, DTP loading, Attribute change run, deletion of index, deletion of overlapping request, AND process, ABAP program , Master Data loading, Full Load, Delta load, Hierarchy Save, Start Process).
    Regards
    Vishwanath

    Hi Vishwanth,
                      In Process Chain proces runs in background only.
    refer here......
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7b/d4313b38bea774e10000000a114084/content.htm
    Thanks,
    Vijay.

  • EA2: bug in package run/debug dialog

    The PL/SQL block is not (re)generated correctly when switching between implementations of an overloaded func/proc:
    Whenever you run/debug a package from sql developer a dialog box is opened in which you can select a TARGET (any of the public function/procedures for the package).
    A pl/sql block to execute the the selected TARGET is then dynamically generated.
    If you have an overload procedure it is presented as
    FUNC1(1)
    FUNC1(2)
    FUNC2
    FUNC3
    If you switch between 2 overloads, the parameters to the left actually changes correctly. So it does notice the change
    However the PL/SQL below is unchanged. The variables are still valid for FUNC(1) instead of FUNC(2)
    Edited by: apodictus on Dec 11, 2010 10:08 PM

    I already noticed the bug is probably a bit more delicate then originally stated.
    I extended the original overload procedure for which I found the bug with a few more formal parameters.
    To my surprise after that alteration, the PL/SQL block was suddenly generated correctly.
    Might have been an initial invocation then...

  • Pass parameters to sql store proc?

    Is it possible to pass parameters from Crystal Report to sql store proc? I know it will prompt for paramters if the report is built based on a parameterized store proc. I am NOT talking about these parameters. I still want user to be able to select parameter values from dropdowns and use them as the procedure parameters.
    Reason for my question is I don't want the store proc to create a table having all records then crystal makes report by filtering. The all-record table could grow huge very quickly as more data is put in.
    Thank you very much.

    Hi Peter
    Follow these steps:
    A. Following steps applies to the main procedure:
    1. Create a main report which accepts the same fields as you want to pass to the stored procedure. (Note that this main report is not based off the procedure that you want to execute. Just get the data that you want to pass to the procedure. We will call the procedure in the subreport.)
    2. Now create the no. of dynamic parameters that you want your user to choose the data from in the main report. (Lets assume that the user will select a single value.)
    B. Following section applies to the subreport:
    1. Add a subreport to the main report. This subreport will be based off your procedure. This will automatically add up the stored procedure parameters to the subreport.
    2. Take care that in the procedure you define the datatype of the parameters same as the field's data type that you want to pass to the procedure. This will show up your stored procedure parameters while subreport linking.
    3. Now link the main report to the subreport with each parameter. Uncheck the "Select data based on" dialog box while linking each parameter.
    Hope this post solves your problem. i am sorry for sounding descriptive.
    Regards
    Nikhil Sabnis

  • 3.0 EA1 - run/debug dialog (pl/sql) doesn't keep values on next run

    Hello,
    first of all: nice tool - great job :)
    In 3.0 there seems to be a problem with the pl/sql run and debug dialog:
    DECLARE
    PARAM_1 NUMBER;
    PARAM_2 VARCHAR2(200);
    BEGIN
    PARAM_1 := *42; -- THESE VALUES ARE 'RESET' TO NULL WHEN EXECUTING THE 2nd, 3rd, ... time*
    PARAM_2 := *'whatever'; -- THESE VALUES ARE 'RESET' TO NULL WHEN EXECUTING THE 2nd, 3rd, ... time*
    MY_PACKAGE.MY_PROCEDURE(
    PARAM_1 => PARAM_1,
    PARAM_2 => PARAM_2
    END;
    Best regards,
    Daniel

    Yes, noticed this too. A loss of pre-3.0 functionality.
    Additionally, I even had situations where the dialog of a wrong package/proc would show.
    Hope these get resolved before production,
    K.

  • Key Event Windows dialog box

    I have executed a windows program using
    Runtime = Runtime.getRuntime( );
    Process proc = rt.exec(command);However the program brings up an " an ok message dialog box" which needs click in order for the program to run.
    I have used the Robot class to simulate a Enter key press using the
    robot.keyPress(keyEvent.VK_ENTER);However this does not work because the focus is on the command prompt and not on the windows message window. is there a way round this??
    cheers
    Javamug :)

    I have figured it out, so if any one else has this problem this is the solution.
    Unfortunatley the only way I could do it was by turning to the dark side and using a spot of black magic and voodoo, sorry I mean Windows scripting (.vbs)
    You first have to set the focus of the error title bar Appactive( ) and then use the Sendkeys( ) method to send a simulated enter key press, yuk!!!!!
    If anyone has a better solution please tell
    Regards
    Chris

  • Access elements inside a dialog box/window using applescripts

    Am new to applescript. I want to access elements inside a dialog box/window. I tried following code.
    tell application "System Events" set procs to processes set windowName to {} repeat with proc in procs try if exists (window 1 of proc) then repeat with w in windows of proc if w's name contains "App Name" then copy w's name to the end of windowName copy properties of w to the end of windowName end if end repeat end if end try -- ignore errors end repeat end tell return windowName
    But am only able to get the 4 elements from window: 1.Close 2.Minimize 3.Maximize 4.window title
    Nothing from inside the window/dilog.
    Can any one help me with this pls?

    Hi,
    Like this :
    tell application "System Events"
          tell process "App Name"
                tell (first window) to if exists then return UI elements
          end tell
    end tell

  • Acrobat Pro XI print dialog box opens in background, Web Browser

    Issue:  From web browser apps, I select Print > Adobe PDF > then, the Save PDF File As dialog box opens in the background instead of the foreground.
    Acrobat Pro XI / Acrobat Pro 11.0.2
    IE8 x32 / IE8 x64 / Firefox 20.0.1
    Win7 Ent x64 SP1
    Dell Latitude with I5 proc and Intel video
    Dual screens with extended desktop display via DVI
    In Distiller, I check the box for Preferences > Ask for PDF file destination.
    I was issued a new corporate laptop a few months back, specs are above.  Did not have this issue with Acrobat Pro X on my old Dell Latitude running Win7 Ent x64 SP1.  So, I have multiple new moving parts in what could be the root cause.
    Any ideas?
    Thank you,
    Doug

    CowboyInAZ wrote:
    "Acrobat is a fincky application..."
    One thing I've learned since OSX 10.2 is that Mac is finicky about printer drivers too.
    I had a Lexmark and it would freeze all the time after I switched to Panther. It was a discontinued model so when I moved up to 10.3 there were no new drivers. The old ones installed OK but they would cause it to freeze up and if it did print, it took about ten minutes to get through a page of text.
    I got a new printer and one tht had current drivers available for Mac and the problem was solved.
    It seems we fight a never-ending battle with hardware and software racing to stay ahead of each other.
    Yes I've owned three printers since owning my first Mac an SE 30 I started out with a Apple ImagewriterII (made C-Itoch).  I had to switch when I bought a 7100/66 which used the PowerPC processor instead of the 68030 processors. Then I had a HP DJ 650cse which used a Black Cartridge only. No color. I had to change again When I bought my G4-500. I am still using it today. Its the best printer I've had so far. I fear when I buy a new Intel Mac, and comes with X.6 (Snow Leopard) I will have to swap again. I've seen the new HP DeskJets and the won't last as long this one.  They look like cheap toys and (gulp!) they use heads built like in epson not the Cartridges.  The Cartridges were more expensive. But each time you bought one you got a new set of print heads. No longer.

  • Modal dialog in Premiere Pro (using AE SDK)

    Hello all,
    I have a plugin that does some long, intensive processing inside a single render call. I show my own progress bar in a modal dialog while this happens.
    This is working fine in After Effects, but it's causing a crash in Premiere Pro. I get a few messages through the WndProc but then they just stop coming. I've attached some code below. Does anyone have any idea what might be going on there?
    many thanks for any help,
    Hugh
    Here's the code that creates the dialog:
    //assume host window is foregrounded
    hostWindow = GetForegroundWindow();
    // also tried HWND hwnd; PF_GET_PLATFORM_DATA(PF_PlatData_MAIN_WND, &hwnd);
    hDlg = CreateDialog(theDLL, MAKEINTRESOURCE(IDD_PROGRESS), hostWindow, reinterpret_cast<DLGPROC>(DlgProc));
    SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG_PTR)this);
    CenterDialog();
    ShowWindow(hDlg, SW_SHOW); UpdateWindow(hDlg);
    SetForegroundWindow(hDlg); BringWindowToTop(hDlg);
    hProgress = GetDlgItem(hDlg, IDC_PROGRESS1);
    SendMessage(hProgress, PBM_SETRANGE, 0, MAKELPARAM(0, total));
    and here's the window proc:
    static LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
    ProgressDialog *myOwner = (ProgressDialog*)GetWindowLongPtr(hWndDlg, GWLP_USERDATA);
    switch(Msg)
    case WM_INITDIALOG:
            case WM_WINDOWPOSCHANGING:
    return TRUE;
    case WM_NCLBUTTONDOWN: //prevent user moving the dialog box
    if (HTCAPTION == wParam) return TRUE;
    else return FALSE;
    case WM_COMMAND:
    switch(wParam)
    case IDOK:
    return TRUE;
    case IDCANCEL:
    myOwner->cancelled=true;
    return TRUE;
    break;
    return FALSE;

    Here's the code that is called periodically inside my processing to run the message pump, in case that's helpful:
    SendMessage(hProgress, PBM_SETPOS, pos, 0);
    HWND hProgText = GetDlgItem(hDlg, IDC_TEXT_PROG);
    std::stringstream myStr;
    myStr << "Frame " << pos << "/" << total;
    SetWindowText(hProgText, myStr.str().c_str());
    MSG Msg;
    SendMessage(hostWindow,WM_ENTERIDLE,0,0L);
    while (PeekMessage(&Msg, hDlg, 0, 0, TRUE)) {
    if (!IsDialogMessage(hDlg, &Msg)) {
    TranslateMessage(&Msg); DispatchMessage(&Msg);

Maybe you are looking for

  • Problem in Calculation

    Hi Experts, I am doing a report on opening and closing stock with subcontractors and i am facing a problem in calculation of two fields manually. for eg: I am having MATNR  (Finished goods)  and its corresponding  MATNR (raw materials)  in another fi

  • How do I remove an extra Apple ID from my iPod?

    Somehow, my child added a seperate Apple ID to my iPod Touch & now every time I try to update it asks for the password to the account & of course my child has forgotten it. How do i remove it so i can use mine?

  • PDF Files in Android

    Hi, Firstly would like to say that the last update for DPS was good as it now supports PDF article in Android devices. For having PDF files to be loaded in iOS, we could use the HTMLResource method. But we faced a little problem as we are trying to f

  • Gaming resolution

    I'm trying to play Splinter Cell Mac Version on my G5 but my monitor keeps on coming up with the out of frequency message. What resolution do I need to set my monitor to so I can play. I'm running at 1280x960 on a 17" LCD.

  • CANNOT OPEN iPHOTO LIBRARY AFTER UPGRADE

    I had a routine upgrade message last night so hit Install.  My iPhoto logo changed from the yellow with palm tree to a new one with a blue background and a flower.  There was an error message during the update of my library (24000 images) and now say