Strange tabbed dialog message pump issue

I am running into a nasty issue that I don't quite understand.

My application has a tabbed dialog type control (Stingray Tab-Wnd control) 
contained in a CFormView object.  Within some of the tabs are 
CDialog-derived windows containing a grid control.   I initialize all tab 
windows when the form view opens.   The grid control also has an 
OnInitialUpdate method that gets called.   When a tab is clicked, if it's 
the first time, a call is made to the tab to fill the grid.

After the CFormView initialization is complete I active the first tab 
programatically and it fills it's grid.

If I click on a certain tab (Tab B)  immediately after the tab control 
appears or even better before it becomes visible (I know the area it will 
appear in) my application blows up intermittently.   I have tracked down the 
problem to the ConfigureList method of my grid control.  It blows up early 
in that method, but not on a particular command (an assertion does not get 
thrown).   This confuses me.   I discovered that the initialzation 
(OnInitialUpdate) of the grid cotnrol is not completing prior to this call 
being made resulting from the tab click event.

I do not have any multithreading going on in my code.   It appears that the 
message to the tab control/window is interupting the initialization 
sequence.   I've used some bool flags and put in some logging and have 
confirmed that the one grid is not getting initialized in time and never 
does once the process has been interupted.

I've tried several different things to fix this but since the init is hosed 
once the event has occured I think the best way to fix it is to not allow 
the tab control to receive messages until all tab/grid have been 
initialized.

Any thoughts on a way to do this or do you guys have any troubleshooting 
advice?   I know it's difficult without seeing the code but there is just 
too much to post.

Thanks much.


0
ericm1 (7)
8/11/2008 6:26:33 PM
vc.mfc 33608 articles. 0 followers. Follow

0 Replies
415 Views

Similar Articles

[PageSpeed] 15

Reply:

Similar Artilces:

Message Limits
Is there a limit to how many messages Outlook XP can import? If so, is there a way to turn off the limit? Would I be able to import half the messages then import the other half (thus avoiding the message limit)? Is it just an import limit or does Outlook have a general limit on messages it can store? Kol. ----------- "Relax, its only ONES and ZEROS !" What are you trying to import from and what kind of numbers are we talking about here? :-) It might be easier to answer your questions (and give you more precise answers) if there were more specifics to go on. -- Jocelyn Fi...

Find feature does not work with HTML messages (Content-type: text/html)
I have Outlook 2000 SP-3 running under Windows ME. When using the Find feature to locate all e-mails with a given word in the message, no items are found if the e-mails are of "text/html" content-type. The Find feature appears to work for any messages that have URLs embedded and are "multipart/alternative" or "text/plain" content-type. I noticed a similar post several months ago (see http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=%23qSBYIssDHA.2224%40TK2MSFTNGP09.phx.gbl). Is there a work-around for this problem, or should this be reported t...

Intelligent Message Filter- can the junk email feature be turned o
I am wondering if there is a reg hack or other method of running the Intelligent Message Filter but disabling the feature to send stuff to junk email? I have temporarily uninstalled it for customer since there were too many complaints about stuff going into to junk email. The filter capacity for the most part works pretty well and what is going into archieve looks like SPAM with only minor exceptions. I was looking at reinstalling the Intelligent Message Filter and not setting the second setting –Store Junk Email Configuration. Although I intially had the settings SCL lower I raised...

Outlook 97 'hangs' at "deliver messages"
Outlook 97 hangs with deliver messages window open. No mail is exchanged. Problem persists after deleting profile and creating new one. Any suggestions? ...

Disable recall message on the server
Hi, Is there a way to disable or turn off message recall on the server side? I do not care if it still shows up on the users outlook client, but management would like to make it so it never works on our server. We are using Exch 2003 sp1. Thanks, Debra In news:191B223A-D29E-406E-BE23-D378B9647B2A@microsoft.com, Debra <Debra@discussions.microsoft.com> typed: > Hi, > > Is there a way to disable or turn off message recall on the server > side? I do not care if it still shows up on the users outlook > client, but management would like to make it so it never works on...

Missing Sheet tab #2
The tab where I select Sheet1, Sheet2, Sheet3 etc is missing how can I get it back??? I am using Excel 2007 Thanks Kamal Try Changing your display resoulution up a step? And then open the file. Kamal wrote: > The tab where I select Sheet1, Sheet2, Sheet3 etc is missing how can I get > it back??? > > I am using Excel 2007 > > Thanks > Kamal > > ...

combining tabs through drop downs
I'm not even sure if this is possible, or how easy/difficult it would be, but if someone could at least tell me where to look or what I need to start researching to be able to do this it would be great. Basically, I want to take a workbook that has 10 tabs - each of the tabs has similar formatting, but different info. What I want to do is combine it all onto a single tab and use a drop down to select what info is viewable. ie - rather than having tabs for june, july, and august, those would be drop down choices. Keeping in mind that the info for each is similar in formatting, but not e...

Tab control question about updates
Searched but couldn't see this discussed. I have a form with 5 tabs. Data can be loaded three ways, manually entered, imported from a text file, and imported from a Word template. On one of the tabs (the second) when the user enters information such as a social sec. number (SSN) that matches a file already in the system, a flag goes off and alerts the user. Works fine. On the import functions, the data is loaded and appears correctly, but when the user moves to the second tab where the SSN number appears, it does not set off the flag when the page opens. I can make it happen with a c...

can't delete dupicate appointments, message object is not valid
I just instaled Office XP, on to Windows 7. I then updated all of my contact details from my Windows PDA to outlook. I now have duplicate entries for birthdays, aniversaries etc........... The contacts that the birthdays, aniversaries belong to, have not been created as contacts, when i try to recreate the contact details my system tells me that they are all ready there but are not shown. & when try to detect & repair the instal the same thing happens again. Outlook 2002 and Windows 7? That is not supported and buggy - its hard to say how much of the problems are beca...

Outlook sending unknown hidden messages
Hello all, My Outlook is sending hidden messages (as indicated by the status bar) when I don't have any, or sometimes one message, in my Outbox. They shouldn't be read receipts from legitimate Email, because I usually haven't opened any mail that contains receipt requests (I get VERY little mail from unknown sources, so I would know). I first noticed this when sending one piece of mail, and the status bar said sending 1 of 2 messages. Sometimes when I send one message it will start with "Sending message 2 of 3," then go to 3 of 3, and only then do the one message I ...

Outlook not removing deleted messages from server
I have a gmail account and Outlook 2007 is configured to leave the messages on the POP3 server, but to remove the messages from the server when deleted from the "deleted items" folder. So, I downloaded all of my email (approx 17,000 messages), deleted some messages I don't want any more and emptied the "deleted items" folder, but the messages are not removed from the server. I've tried it several times in several different ways, always with the same result. I can delete the local copy on my PC, but the server copy is never removed. "sparx&qu...

Timeout issues on Sales Orders with many Products
Hi all, I'm experiencing timeout issues with Sales Orders that have 25-30 products on the Order Detail level. I haven't found any documentation on this particular issue. Has any ever seen this before? I'm a little loathe to start reindexing the tables, especially considering the SalesOrderDetail table has less than 300 rows. -Luke ...

Domain name issue migrating 5.5 to Exchange 2003
We are prepairing to migrate Echange 5.5 to Exchange 2003. This has come up as an issue: Our domain is cornerstone instead of cornerstone.com Our email address is "firstname.lastname@cornerstonegrp.com" instead of: "firstname.lastname@cornerstone.com" ...

MAPI Failure message using 2007 word
-- JOHN HASKINS I keep getting this error message when I try to send a document from Word 2007 to my Outlook Email Client, which is my default email setup. I followed the recommended steps that help feature suggested, but that did not work by saving the document then closing and also closing Outlook, which was when word would restart it would start a new MAPI Session. No Go! What much I do. All other applications and software allow me to send to my email client except Office. ...

Using Contact's Categories to set message categories
Is there any way to have a rule that sets an incoming message category to the categor(ies) that the sender of the message is assign to in my contacts list? In other words, I have 'George Washington' in my contacts list. George has a category of 'prez' assigned to him. When I get a message from George, I'd like that message to be assigned the category of 'prez' as well. I know I can manually setup a rule to do this for specific contacts, but it would be so much more useful to manage the rule's behavior by setting categories in the contact list. No. Here&...

Outlook 2007 adding contacts issue #2
Hello! I apologize in advance if this has been answered, but I couldn't find it anywhere... today I added contacts to outlook 2007...never had used it before on Vista ever...and closed out went to lunch... came back, I cannot add any new contacts. All options to add a greyed out... If I select file new.....adding contacts is there but greyed out... any ideas on what to change? Thanks! lori, Go to your contacts page and type CTRL + N. The new contact page will open. Or on your contacts page, click New on the button that appears just below the File menu item. Or on your contacts pa...

How to Tab over to a specific cell... not the adjacent one?
In order to make a form more user friendly, I would like to allow the user to use the "Tab" key to jump from one input field to another (unlike moving to the adjacent cell). Is this possible? Thanks in advance for your suggestions. Regards, SK Lock all cells> unlock desired cells>lock worksheet>test -- Don Guillett SalesAid Software donaldb@281.com "SK" <sk_nj_junk@yahoo.com> wrote in message news:060101c42bc0$e4c1fc50$7d02280a@phx.gbl... > In order to make a form more user friendly, I would like > to allow the user to use the "Tab" k...

VS2003
Hello, I have a dialog resource and have created CDialog and a CFormView classes for this dialog. If I right-click a control in my dialog I can create a variable for the control, but how do I specify which class the variable belongs to, ie. my CDialog or CFormView class? I don't see how I can tell the add variable class wizard to which class the variable should be added. I'm converting a Dialog based app to a doc-view type app and am experimenting with CFormView, which is why I have CFormView and CDialog classes referencing the same dialog resource. Thanks for any help. -R...

Code to send SMS text message?
Hi, I would like to send an SMS text message to a cel phone via code within Excel 2007. Has anyone done this? What code / services / products do I need to accomplish this? Does anyone have an example? Thanks in advance. --Dan What gateway are you using? What you would need to do is to snd a internet message to a gateway provider which would then send the messae out on the wireless land. Most likely you are using a webpage interface from your PC to interface with the gateway. So opening up an internet explorer and goiong to an URL is probably the method to use. ...

Tab stops moving after saving / emailing file
I have numberous files with headers that contain text separated by multiple tabs - in other words, 3-4 lines of text appearing like two columns but there are 3-4 tabs in between the text on each line. When I email the files, the recipient often sees the text appearing like some of the tabs have been deleted and the justification is all off. When I open the file again, my copy still looks fine. Both users, the recipient and I, are using Word 2007 but I'm in Windows XP and the recipient uses Windows 7. Could this be the cause or does anything else come to mind. I'm tr...

Recovering a message
I am fairly new to exhchange in general and am now migrating from 5.5 to 2003. I have turned on message tracking in 2003 but I don't see where we could actually recover the message itself. How do I keep copies of messages in an admin folder and then recover them when we need them. Lets assume that disk space is not a 'major' issue. Message tracking isn't what you want, then - you want journaling (a copy of all inbound/outbound mail for a particular store is directed to a mailbox). What is it you're trying to do? This is going to make your backups a lot more complicate...

Powerpoint 2007 Excel import change tab
Hi, The situation is as follows: Powerpoint template needs to import data from specific fields from within a tab in excel. This tab name changes depending on the client. Using the "paste Special" i can get the info imported fine. The part i have a problem with is changing the name of the tab to import different data.Powerpoint doesn't have an option under "Prepare>Edit Links To file" If anyone can suggest a solution even a macro to prompt the user to enter the name of the new sheet they want to pull the data from. The Execl file does not change ...

message classes
Is it possible to change the message class of a message via inbox rule so that it could change from something (such as "Report.IPM.Note.DR") to just IPM.Note. I am trying to use inbox rules to move. redirect or forward these "delivery receipts" and nothing seems to work while unattended (not logged into mailbox). So I'd like to somehow change the message class then send it. any ideas? ...

Outlook welcome message
Is there a way to create a welcome message that is sent to users using Outlook 2002 for this first time? I know that there is a Welcome message in Outlook express. ...

where the hell are my inbox messages???
Got new mic 2007. cd worked striaghtforward. Cannot get to see all my messages its really strange it shows 3 messages from 2004...??. Nothing from 2007!!!!! any ideas... looked at the tools for ''views'' nothing strange there... (can see all on hotmail) I dont expect to buy new cd and have all this frustration!!!. mircosoft has gone over the top now!!! this is tooooo complicated... pls help Please explain clearly - not very bright!!! What do you see when you look at Tools - Account Settings - Data Files? Is the pst file listed the same one you were usin...