new - delete issue

Take a look at this:

DLL, loaded into address space of main thread.

In Main Thread:
    MYSTRUCT *p = MYDLL.GetStruc();

    .....

    AfxIsValidAddress( p, sizeof( MYSTRUCT ) ); // Doesn't Fail
>  delete p; // Fail

MYDLL GetStruct() exported function:
    MYSTRUCT* p = new MYSTRUCT
    ....
    return p;

Really strange, delete p in Main Thread fails.
It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
_free_dbg

Before performing "delete p" the pointer is OK, i've taken a look at memory 
and everythig is OK!!!!

Thanks
Ale

0
Ale (83)
10/9/2005 6:50:06 PM
vc.mfc 33608 articles. 0 followers. Follow

20 Replies
1023 Views

Similar Articles

[PageSpeed] 24

It fails on: HeapValidate( _crtheap, 0, pHdr(pUserData) );

Ale

"Ale" wrote:

> Take a look at this:
> 
> DLL, loaded into address space of main thread.
> 
> In Main Thread:
>     MYSTRUCT *p = MYDLL.GetStruc();
> 
>     .....
> 
>     AfxIsValidAddress( p, sizeof( MYSTRUCT ) ); // Doesn't Fail
> >  delete p; // Fail
> 
> MYDLL GetStruct() exported function:
>     MYSTRUCT* p = new MYSTRUCT
>     ....
>     return p;
> 
> Really strange, delete p in Main Thread fails.
> It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
> _free_dbg
> 
> Before performing "delete p" the pointer is OK, i've taken a look at memory 
> and everythig is OK!!!!
> 
> Thanks
> Ale
> 
0
Ale (83)
10/9/2005 6:54:05 PM
>Really strange, delete p in Main Thread fails.
>It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
>_free_dbg
>
>Before performing "delete p" the pointer is OK, i've taken a look at memory 
>and everythig is OK!!!!

Ale,

Allocating and freeing memory across module boundaries only works if
both modules use the same heap. To achieve this they have to be built
with the same compiler settings and use a common heap (DLL 'C'
run-time). You can't mix debug and release modules.

Dave
-- 
MVP VC++ FAQ: http://www.mvps.org/vcfaq
0
davidl7375 (2060)
10/9/2005 7:28:32 PM
Dave,

DLL and EXE already use the same compiler settings.
The heap pointer -in EXE module- returned by DLL to EXE is the same it has 
allocated. Having a look at memory -in EXE module- everything is OK...
I've performed this check during debugging and inside _free_dbg function...
So I should think the already use the same Heap.

The exported functions use __cdecl calling convention and have been exported 
via Definition file...

Thanks
Ale

"David Lowndes" wrote:

> >Really strange, delete p in Main Thread fails.
> >It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
> >_free_dbg
> >
> >Before performing "delete p" the pointer is OK, i've taken a look at memory 
> >and everythig is OK!!!!
> 
> Ale,
> 
> Allocating and freeing memory across module boundaries only works if
> both modules use the same heap. To achieve this they have to be built
> with the same compiler settings and use a common heap (DLL 'C'
> run-time). You can't mix debug and release modules.
> 
> Dave
> -- 
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> 
0
Ale (83)
10/9/2005 9:18:02 PM
Don't konw if this helps:

Calling GetProcessHeap() in both DLL and EXE it returns the same handle...

Ale

"David Lowndes" wrote:

> >Really strange, delete p in Main Thread fails.
> >It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
> >_free_dbg
> >
> >Before performing "delete p" the pointer is OK, i've taken a look at memory 
> >and everythig is OK!!!!
> 
> Ale,
> 
> Allocating and freeing memory across module boundaries only works if
> both modules use the same heap. To achieve this they have to be built
> with the same compiler settings and use a common heap (DLL 'C'
> run-time). You can't mix debug and release modules.
> 
> Dave
> -- 
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> 
0
Ale (83)
10/9/2005 10:08:01 PM
>Calling GetProcessHeap() in both DLL and EXE it returns the same handle...

Do you meet the criteria:

Both modules (DLL & EXE) are built with the same compiler options (you
can't mix debug/release builds), and are using the shared (DLL) 'C'
run-time library.

Your symptoms are a classic example of this not being so.

Dave
-- 
MVP VC++ FAQ: http://www.mvps.org/vcfaq
0
davidl7375 (2060)
10/9/2005 10:19:38 PM
I'm using Multi-threaded runtime - static - library in both modules.
So, I need to use Multi-threaded DLL - shared - runtime library in order to 
sync the heap!? But, doing so, I've to ship runtime DLLs too!!!!
I've readen a lot about shared DLL, and It might issues problems!!!!
But, if a can read from Heap at the same Address the DLL use, why I cannot 
delete it!?? Is it a Sync problem!?

And, switching to DLL, linke cannot find __argw and __argc

Thanks
Ale

"David Lowndes" wrote:

> >Calling GetProcessHeap() in both DLL and EXE it returns the same handle...
> 
> Do you meet the criteria:
> 
> Both modules (DLL & EXE) are built with the same compiler options (you
> can't mix debug/release builds), and are using the shared (DLL) 'C'
> run-time library.
> 
> Your symptoms are a classic example of this not being so.
> 
> Dave
> -- 
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> 
0
Ale (83)
10/9/2005 11:01:01 PM
Absolutely!  You cannot use static linking if you want to accomplish this.  In fact, you
should avoid static linking whenever possible (in over a decade of writing MFC apps, I
have not once used static linking; when my clients have tried to use it, they get huge
numbers of problems, particularly when third-party libraries are called both from the .exe
and from the .dll.  
				joe

On Sun, 9 Oct 2005 16:01:01 -0700, Ale <Ale@discussions.microsoft.com> wrote:

>I'm using Multi-threaded runtime - static - library in both modules.
>So, I need to use Multi-threaded DLL - shared - runtime library in order to 
>sync the heap!? But, doing so, I've to ship runtime DLLs too!!!!
>I've readen a lot about shared DLL, and It might issues problems!!!!
>But, if a can read from Heap at the same Address the DLL use, why I cannot 
>delete it!?? Is it a Sync problem!?
>
>And, switching to DLL, linke cannot find __argw and __argc
>
>Thanks
>Ale
>
>"David Lowndes" wrote:
>
>> >Calling GetProcessHeap() in both DLL and EXE it returns the same handle...
>> 
>> Do you meet the criteria:
>> 
>> Both modules (DLL & EXE) are built with the same compiler options (you
>> can't mix debug/release builds), and are using the shared (DLL) 'C'
>> run-time library.
>> 
>> Your symptoms are a classic example of this not being so.
>> 
>> Dave
>> -- 
>> MVP VC++ FAQ: http://www.mvps.org/vcfaq
>> 
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15972)
10/10/2005 12:03:39 AM
Ok Joe, that's really new for me, i've always used static link :: everywhere...
Good, isn't it!? :O)

But, before I'll get into an infinite searching loop:
Using shared Runtime Library linker does not find __argw and _argc variable, 
whitch linker option have i to set !?

Thanks
Ale


"Joseph M. Newcomer" wrote:

> Absolutely!  You cannot use static linking if you want to accomplish this.  In fact, you
> should avoid static linking whenever possible (in over a decade of writing MFC apps, I
> have not once used static linking; when my clients have tried to use it, they get huge
> numbers of problems, particularly when third-party libraries are called both from the .exe
> and from the .dll.  
> 				joe
> 
> On Sun, 9 Oct 2005 16:01:01 -0700, Ale <Ale@discussions.microsoft.com> wrote:
> 
> >I'm using Multi-threaded runtime - static - library in both modules.
> >So, I need to use Multi-threaded DLL - shared - runtime library in order to 
> >sync the heap!? But, doing so, I've to ship runtime DLLs too!!!!
> >I've readen a lot about shared DLL, and It might issues problems!!!!
> >But, if a can read from Heap at the same Address the DLL use, why I cannot 
> >delete it!?? Is it a Sync problem!?
> >
> >And, switching to DLL, linke cannot find __argw and __argc
> >
> >Thanks
> >Ale
> >
> >"David Lowndes" wrote:
> >
> >> >Calling GetProcessHeap() in both DLL and EXE it returns the same handle...
> >> 
> >> Do you meet the criteria:
> >> 
> >> Both modules (DLL & EXE) are built with the same compiler options (you
> >> can't mix debug/release builds), and are using the shared (DLL) 'C'
> >> run-time library.
> >> 
> >> Your symptoms are a classic example of this not being so.
> >> 
> >> Dave
> >> -- 
> >> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> >> 
> Joseph M. Newcomer [MVP]
> email: newcomer@flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
> 
0
Ale (83)
10/10/2005 12:42:01 AM
Joseph,

> Absolutely!  You cannot use static linking if you want to accomplish this.
In fact, you
> should avoid static linking whenever possible (in over a decade of writing
MFC apps, I
> have not once used static linking; when my clients have tried to use it,
they get huge
> numbers of problems, particularly when third-party libraries are called
both from the .exe
> and from the .dll.

Interesting. I always use static linking and have never once had any
problem. This is in stark contrast to my VB apps that had many problems with
compatibilities of DLLs or one sort or another.

What kind of problems have your clients seen? (Note: I do not use
third-party libraries--just MFC.)

-- 
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm


0
jwood (1291)
10/10/2005 12:59:34 AM
I would add something...

Using HeapAlloc( GetProcessHeap(), ... ) instead of operator new, it works. 
I think it's a case, I'll use shared DLL anywhere...

And, does opertor new use seralization!?

Ale

"Joseph M. Newcomer" wrote:

> Absolutely!  You cannot use static linking if you want to accomplish this.  In fact, you
> should avoid static linking whenever possible (in over a decade of writing MFC apps, I
> have not once used static linking; when my clients have tried to use it, they get huge
> numbers of problems, particularly when third-party libraries are called both from the .exe
> and from the .dll.  
> 				joe
> 
> On Sun, 9 Oct 2005 16:01:01 -0700, Ale <Ale@discussions.microsoft.com> wrote:
> 
> >I'm using Multi-threaded runtime - static - library in both modules.
> >So, I need to use Multi-threaded DLL - shared - runtime library in order to 
> >sync the heap!? But, doing so, I've to ship runtime DLLs too!!!!
> >I've readen a lot about shared DLL, and It might issues problems!!!!
> >But, if a can read from Heap at the same Address the DLL use, why I cannot 
> >delete it!?? Is it a Sync problem!?
> >
> >And, switching to DLL, linke cannot find __argw and __argc
> >
> >Thanks
> >Ale
> >
> >"David Lowndes" wrote:
> >
> >> >Calling GetProcessHeap() in both DLL and EXE it returns the same handle...
> >> 
> >> Do you meet the criteria:
> >> 
> >> Both modules (DLL & EXE) are built with the same compiler options (you
> >> can't mix debug/release builds), and are using the shared (DLL) 'C'
> >> run-time library.
> >> 
> >> Your symptoms are a classic example of this not being so.
> >> 
> >> Dave
> >> -- 
> >> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> >> 
> Joseph M. Newcomer [MVP]
> email: newcomer@flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
> 
0
Ale (83)
10/10/2005 1:10:02 AM
> This is in stark contrast to my VB apps that had many problems with
> compatibilities of DLLs or one sort or another.

It's what I've readen about it...

Ale

> -- 
> Jonathan Wood
> SoftCircuits
> http://www.softcircuits.com
> Available for consulting: http://www.softcircuits.com/jwood/resume.htm
> 
> 
> 
0
Ale (83)
10/10/2005 1:14:02 AM
>I would add something...
>
>Using HeapAlloc( GetProcessHeap(), ... ) instead of operator new, it works. 

And presumably using a corresponding HeapFree?

In this case you're meeting the requirements as both sides are using
the same common memory allocation mechanism.

Dave
-- 
MVP VC++ FAQ: http://www.mvps.org/vcfaq
0
davidl7375 (2060)
10/10/2005 8:56:55 AM
Ale wrote:

> Take a look at this:
> 
> DLL, loaded into address space of main thread.
> 
> In Main Thread:
>     MYSTRUCT *p = MYDLL.GetStruc();
> 
>     .....
> 
>     AfxIsValidAddress( p, sizeof( MYSTRUCT ) ); // Doesn't Fail
> 
>> delete p; // Fail
> 
> 
> MYDLL GetStruct() exported function:
>     MYSTRUCT* p = new MYSTRUCT
>     ....
>     return p;
> 
> Really strange, delete p in Main Thread fails.
> It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
> _free_dbg
> 
> Before performing "delete p" the pointer is OK, i've taken a look at memory 
> and everythig is OK!!!!
> 
> Thanks
> Ale
> 

Ale:

I have to say I disagree with the direction you are being pushed in 
here. If you want to use static linking you should use it. You just need 
another exported function in the DLL:

void DeleteStruct(MYSTRUCT* p)
{
   delete p;
}

Use this function to delete the object from the main thread. In any 
case, IMHO, it is not a good practice to delete an object in a different 
place from where you created it.

HTH,

David Wilkinson

0
no-reply8010 (1791)
10/10/2005 9:37:36 AM
I use HeapFree() to free blocks in EXE module...
I think GetProcessHeap(...) is the solution...

What can you tell me about linker error using shared DLL !?

Thanks a lot
Ale

"David Lowndes" wrote:

> >I would add something...
> >
> >Using HeapAlloc( GetProcessHeap(), ... ) instead of operator new, it works. 
> 
> And presumably using a corresponding HeapFree?
> 
> In this case you're meeting the requirements as both sides are using
> the same common memory allocation mechanism.
> 
> Dave
> -- 
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> 
0
Ale (83)
10/10/2005 9:43:01 AM
>What can you tell me about linker error using shared DLL !?

What's the exact error you get?

Dave
-- 
MVP VC++ FAQ: http://www.mvps.org/vcfaq
0
davidl7375 (2060)
10/10/2005 10:53:48 AM
So, if I need to get data from a DLL - e.g. a struct:

EXE calls a DLL exported function that return a struct pointer.

DLL allocates memory for the struct and save this pointer in a list, than 
return pointer to EXE.

EXE do something...

The EXE call another exported function that delete all pointers in that list.

Is it correct!? This is a really new way to follow up!!!!!

Ale

"David Wilkinson" wrote:

> Ale wrote:
> 
> > Take a look at this:
> > 
> > DLL, loaded into address space of main thread.
> > 
> > In Main Thread:
> >     MYSTRUCT *p = MYDLL.GetStruc();
> > 
> >     .....
> > 
> >     AfxIsValidAddress( p, sizeof( MYSTRUCT ) ); // Doesn't Fail
> > 
> >> delete p; // Fail
> > 
> > 
> > MYDLL GetStruct() exported function:
> >     MYSTRUCT* p = new MYSTRUCT
> >     ....
> >     return p;
> > 
> > Really strange, delete p in Main Thread fails.
> > It fails an ASSERT : _ASSERTE(_CrtIsValidHeapPointer(pUserData)); into 
> > _free_dbg
> > 
> > Before performing "delete p" the pointer is OK, i've taken a look at memory 
> > and everythig is OK!!!!
> > 
> > Thanks
> > Ale
> > 
> 
> Ale:
> 
> I have to say I disagree with the direction you are being pushed in 
> here. If you want to use static linking you should use it. You just need 
> another exported function in the DLL:
> 
> void DeleteStruct(MYSTRUCT* p)
> {
>    delete p;
> }
> 
> Use this function to delete the object from the main thread. In any 
> case, IMHO, it is not a good practice to delete an object in a different 
> place from where you created it.
> 
> HTH,
> 
> David Wilkinson
> 
> 
0
Ale (83)
10/10/2005 11:21:03 AM
Here is what I get:

unresolved external symbol ____wargv
unresolved external symbol ____argc

Why!?

Ale

"David Lowndes" wrote:

> >What can you tell me about linker error using shared DLL !?
> 
> What's the exact error you get?
> 
> Dave
> -- 
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> 
0
Ale (83)
10/10/2005 11:23:01 AM
Ale wrote:

> So, if I need to get data from a DLL - e.g. a struct:
> 
> EXE calls a DLL exported function that return a struct pointer.
> 
> DLL allocates memory for the struct and save this pointer in a list, than 
> return pointer to EXE.
> 
> EXE do something...
> 
> The EXE call another exported function that delete all pointers in that list.
> 
> Is it correct!? This is a really new way to follow up!!!!!
> 
> Ale
> 
> "David Wilkinson" wrote:
> 
> 

>>I have to say I disagree with the direction you are being pushed in 
>>here. If you want to use static linking you should use it. You just need 
>>another exported function in the DLL:
>>
>>void DeleteStruct(MYSTRUCT* p)
>>{
>>   delete p;
>>}
>>
>>Use this function to delete the object from the main thread. In any 
>>case, IMHO, it is not a good practice to delete an object in a different 
>>place from where you created it.
>>
>>HTH,
>>
>>David Wilkinson
>>


Ale:

Please don't top-post.

I would say rather: keep track of the returned pointers in the EXE and 
call the DeleteStruct() function for each pointer in the list.

But, really, this pattern is only really necessary when the DLL 
represents a "plugin" that returns a polymorphic base class pointer. In 
your case why do you not just export a function

void FillStruct(MYSTRUCT* p)
{
   // fill the struct
}

and use it from the EXE like so

MYSTRUCT myStruct;
FillStruct(&myStruct);

Never use "new" unless you have to.

HTH,

David Wilkinson
0
no-reply8010 (1791)
10/10/2005 12:03:39 PM
"David Wilkinson" wrote:

> Ale wrote:
> 
> > So, if I need to get data from a DLL - e.g. a struct:
> > 
> > EXE calls a DLL exported function that return a struct pointer.
> > 
> > DLL allocates memory for the struct and save this pointer in a list, than 
> > return pointer to EXE.
> > 
> > EXE do something...
> > 
> > The EXE call another exported function that delete all pointers in that list.
> > 
> > Is it correct!? This is a really new way to follow up!!!!!
> > 
> > Ale
> > 
> > "David Wilkinson" wrote:
> > 
> > 
> 
> >>I have to say I disagree with the direction you are being pushed in 
> >>here. If you want to use static linking you should use it. You just need 
> >>another exported function in the DLL:
> >>
> >>void DeleteStruct(MYSTRUCT* p)
> >>{
> >>   delete p;
> >>}
> >>
> >>Use this function to delete the object from the main thread. In any 
> >>case, IMHO, it is not a good practice to delete an object in a different 
> >>place from where you created it.
> >>
> >>HTH,
> >>
> >>David Wilkinson
> >>
> 
> 
> Ale:
> 
> Please don't top-post.
> 
> I would say rather: keep track of the returned pointers in the EXE and 
> call the DeleteStruct() function for each pointer in the list.
> 
> But, really, this pattern is only really necessary when the DLL 
> represents a "plugin" that returns a polymorphic base class pointer. In 
> your case why do you not just export a function
> 
> void FillStruct(MYSTRUCT* p)
> {
>    // fill the struct
> }
> 
> and use it from the EXE like so
> 
> MYSTRUCT myStruct;
> FillStruct(&myStruct);
> 
> Never use "new" unless you have to.
> 
> HTH,
> 
> David Wilkinson

Ok, why I do not use Fillstruct(&myStruct) !?
I don't know why!!!!
I've to pay more attention to the operator new usage...

Thanks David
Ale
0
Ale (83)
10/10/2005 1:25:07 PM
"David Lowndes" wrote:

> >Here is what I get:
> >
> >unresolved external symbol ____wargv
> >unresolved external symbol ____argc
> 
> Is it perhaps more like:
> 
> nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol
> ___argc 
> 
> Try looking for PSS ID Number: 166504 "PRB: MFC and CRT Must Match in
> debug/release and static/dynamic".
> 
> Dave
> -- 
> MVP VC++ FAQ: http://www.mvps.org/vcfaq

Dave, I apologize...
I had MFC scatically linked, sorry, I didn't notice it...

Thanks really much
Ale
0
Ale (83)
10/11/2005 12:44:02 AM
Reply:

Similar Artilces:

Outlook Issue #7
I am using Outlook2003SP1 with Exchange 2003. When I first start outlook and open either a message or a calendar request when I press the button(s) or select from the menu any of these functions; send, reply, forward, reply to all, accept, decline, print, permissions, follow up, previous, next basically any function nothing happens. The only things that seems to work is the close, change font and move to folder buttons/functions. Once I close the item and open it up again everything works. I have to do this for either messages or calendar items. I have tried creating a different mail prof...

Must buy new computer...Ideas?
Hello to all! Finally my over 10-1/2 year old Dell desktop's extreme slowness has seriously gotten on my nerves and I'm now looking for a new one. (Surprisingly, it's working pretty well otherwise...) Maybe this isn't the right forum? But beside the usual things like RAM and HD GBs, are there things I should be sure to have...or be careful NOT to have on a desktop? After n ot looking into computers for over a decade I feel like a Martian in the Earth. lol! Also, is it possible to transfer to the new one ALL my stuff, including programs, etc.? Do you thin...

Frequent RWW connection timeout issue.
Afternoon, I have deployed a brand new server running the SBS2008 and everything for the most part has been going really well until users have issues using the RWW to connect to their machines. I have been able to restore service by rebooting the server however this solution isn�t a logical option as it brings everything down. REMOTE.COMPANYDOMAIN.COM LOGIN PAGE IS SUCCESSFUL! NEVER FAILS! EMAIL LINK- IN RWW SUCCESSFUL! NEVER FAILS! *_Connect_to_Computer-_Works_selectively-_* ActiveX login prompts, user enters ID and Password. Within a few seconds it errors saying that the...

Default properties for new folders
How does one set the default properties applied when creating new email folders? Currently, when I create a new folder, it is created with the AutoPreview turned on by default. I'd like to change that do that it is left off by default. It's something of a pain to create a new folder and then go in to customize it's properties. You can do this by editing the Messages view; View-> Arrange By-> Current View-> Define Views... You might want to define a new view yourself and apply that view on first use of that folder. -- Robert Sparnaaij [MVP-Outlook] www.howto-o...

OWA 2003 Timeout issue
We are getting some unusual behavior on our OWA2003 clients whil testing. The timeout is working properly, but when a user is kicked, only th active pane is displaying the logon page, not the entire window. So fo instance i f I clicked on a folder in the left pane, the right pane would displa the l ogin screen saying "Your session expired..." but the left pane woul still b e displayed. Has anyone else encountered this? Browsers are IE6 an client s vary from Win2k to XP Pro. Thanks -- tlabri ----------------------------------------------------------------------- tlabrie's...

Excel memory issues
We have several excel spreadsheets on a network drive that when opened by any client they receive several errors relating to memory, such as: Not enough memory Not enough system resources to display completely Any ideas? We have increased RAM on server and workstation and page file, but the users are still receiving the errors. Did you increase the memory on the client's machine? You never mentioned if they have enough harddrive space. "Neil Shirley" wrote: > We have several excel spreadsheets on a network drive that when opened by > any client they receive s...

New Email Messages
I just installed Outlook 2007 on my new PC and for some reason the new messages I received can only be received when I press the SEND/RECEIVE BUTTON. My Outlook at work receives these new mail messages as they are received. So how can I configure the system to make that happen? -- The Trail Hiker!! There are two settings within the accounts 1) Send on starting 2) Auto send/receive every xx minutes - set this for 10 minutes "hiker0531" <hiker0531@aol.com> wrote in message news:87259C7A-5C07-4846-BF61-DE3F98345D21@microsoft.com... >I just installed Outlook 2007 on my n...

Prevent new comments on old posts in sharepoint blogs
How do I stop comments on certain posts in a SharePoint blog? I have removed permissions to the specific post to the lowest possible access and people can STILL post a comment. If I uncheck one more item in the list of permissions, the users can no longer see the post. Any suggestions? ...

Unable to open "New" window to write email.
I am using Microsoft Outlook in Office 2003. It has been working great until today. When I click "New" to write a new email I get an error window : The messaging interface has returned an unknown error. If the problem persist, Restart Outlook. I have tried this several times, even restarted the computer to no avail. Anyone have a solution???? ...

New Location/New setup
Currently I'm downsizing our office, and moving to a new location. I'm running MS Server2003 as well as Exchange 2003. Once moved, I will no longer require the server (since I am setting up a home office). Are there currently any steps or procedures available to correctly shutdown one office...and basically setup a home office with no exchange server. Also I will be removing the current pc's from the Domain, and setting up a few in a workgroup. I would like to receive emails from the other employees for time being until I completely cancel this email account. I already have a...

A Short Video on Adding/Editing New Customers
If capturing customers at the POS is important to you, take a couple of minutes and watch this video. This application also allows for edit of Global customer information in HQ installations. http://www.retail-pos.com/ReverseLookup.wmv Contact us for detailed info and demo. sales(at)retail-pos.com www.retail-pos.com It would be nice if you could encode the videos with a more common codec, and not in wmv format. This requires the GTM3 codec (GoToMeeting). Windows Media Player 11 doesn't automatically download the codec, and I'm not going through the trouble to download and in...

Weird Meeting request issue
We run Exchange 5.5 When anyone sends a meeting request to UserA it bounces back saying that UserB isn't recognized. UserB was an account, but got deleted a while back ago. I can't find any trace of UserB in my system at all. When employed, UserB might of had some rights to UserA's mailbox. If someone sends a regular message to UserA he gets it find. Its just an issue with meeting requests. Any help with this matter would be great. Thanks. "David Warner" <dwarner@kitchenetc.com> wrote in news:OPDiQqD5DHA.1292@TK2MSFTNGP11.phx.gbl: > When anyone sends...

How do I activate the new mail button
When I start Outlook, the "New", "forward", "reply" and "reply to all" buttons are not active which means I can not send mail. I have no problems receiving mail. Also, on web pages with email links, when I click on them, the Outlook application is not launched which is almost certainly related to this. I think I'm missing something very simple here! Are you in a mail enabled folder? Do you have an active email account installed? --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the (insert...

Create an Entity and Publish- issue
Hi I am trying to create and publish a custom entity thru SDK. The entity is created, however while publishing it leads to an exception[“An entity contains two views with the same name. Remove one of the views and try to publish”] PFA Sample code which I am Executing.(Same Example of SDK). I would appreciate, if you could help me with this issue. CODE : try { // Create the entity. EntityMetadata timesheetEntity = new EntityMetadata(); timesheetEntity.SchemaName = "new_timesheet"; timeshe...

Style available all sheets new or old
I need a custom style that is available in all spreadsheets, new or old. I can set style and save it in book.xlt in xlstart, but that only works for new workbooks, and doesn't work with old spreadsheets when I call them up. I want to be able to select a group of cells, or column or row and apply a setting for negative numbers to have brackets. I am using Excel 2000. I even tried saving the style in personal.xls, but that doesn't work as it is hidden. Do I have to use a macro? And if so what would it be? Thanks One way: Public Sub MergeStyles() ActiveWorkbook....

Sub Form Assigning New Values to Old Records
I am using a subform within a form to have users update certain fields in the record where the rest remiain locked. On the Main form when the list box (which is bound to a query) is used to select the record set to display in the subform it sometimes takes an old record and assigns a new value to the record. For example it changes the Period field from 9 to 10. Taking a record created in period 9 and assigning a period ten to it which is the selection I make in the list box. Addtionally, it looks like it is taking the first record in the related table to assign this new value to. ...

Adding new pages
Any thing I do on new pages happens simultaneously on any previous page. Can someone help me please? Can you be more specific? What stencils are you using and what are you trying? John... Visio MVP Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm Need VBA examples? http://www.mvps.org/visio/VBA.htm Common Visio Questions http://www.mvps.org/visio/common_questions.htm "Joanie" <anonymous@discussions.microsoft.com> wrote in message news:4C3642E4-4F2B-4A65-8C00-E9041CE74A37@microsoft.com... > Any thing I do on new pages happens simultaneously on any previ...

Which table will refresh by adding new Account / Contact
Hi, I am new to CRM and trying to update CRM Accounts and Contacts from our Sales Management system. I am using Micorosft Bulk Import utility. I am in preparation of CVS files but not sure what columns do I need in CVS file to complete one Account/Contact record. Could anybody please help. I am .NET expert developer, please let me guide If I could develop CRM by using .NET not CVS Regards Hi Adnan, Microsoft do provide CRM SDK for CRM enhancment using .net. You can download from following url http://www.microsoft.com/downloads/details.aspx?familyid=9C178B68-3A06-4898-BC83-BD14B74308C5...

onscreen keyboards, focus issues
I know there have been a lot of threads of discussion about people creating onscreen windows, issues about focus changes between edit controls and the onscreen keyboard, etc. I got a question today on this, said "there's been a lot of discussion on the newsgroup". Thought I'd go look for it. Can't find a trace of discussion, even with google. Found one article on www.codeproject.com about building an onscreen keyboard. Anyone remember anything else on this topic, or have pointers I can forward to the party involved? joe Joseph M. Newcomer [MVP] email: newcomer@fl...

A couple issues after reformatting
Last Wednesday I was on the computer and up popped one of those messages that said I had a virus, do I want to run my anti-virus program, I said no, and I guess it didn't like that answer because all the sudden there were all these porn sites for me to click on. Well I am not one to hunt down viruses, so the easiest thing for me was to backup all my files, graphics..etc and then I did a total system recovery. No biggie to me. So for the past few days I have been slowly reinstalling everything, taking my time with all. All seems to be well except for these few issuses: ...

New User has admin rights
I just created a new user and assigned her the role of Sales Manager. This role is working correctly for other users with it assigned, but she has admin rights? This is the only role she has assigned.... Any ideas? TIA Metcalf ...

New trend, new business, new year a new beginning
New trend, at start of new year. "If you want things to work different, you must try a different...whatever..." Does that seem obvious? Brighten up with this "reading" and attack the money issue with more gusto! I am finishing my year 2005 with some regrets and some joy. For some the year passed has not been "tip top" in their view. But I believe it has just been very well as the page I shall bring you that has this statement which I believe wholeheartedly: "THINGS ARE UNFOLDING AS IT SHOULD" (paraphrased) I invite you to read the whole "poem&quo...

Creating new row in other table
Dear All, Please teach me, how to make a new row/list in other table by entering number in other table. Sample, In the table A and in the field "Details", I put the number 2 and it automatically creates two rows in table B. Can this be done in MS Access? Thank you for your help. Regards, Maulwy Why? What business need are you attempting to solve with this approach? It's generally considered not very good database design to be creating 'empty' rows in a second table. Why do you want empty rows? And if the number you enter in TableA is a 'limit&...

AP
What would be the best tool to add a new field in the AP invoice screen to deploy to a client? Extender? Modifier? the ideal would be to add a field for "Job No." that is text info so the user can get some info out on certain jobs that they are paying bills for. thanks -- Linda W. Linda, You can use any tool, really, to accomplish this: - Modifier with VBA. You can add the fields to the window with Modifier, then use VBA and ADO or DUOS to store and retrieve the data. - Modifier with Dexterity. You can add the fields with Modifier, then trigger off the form with Dex...

DPM 2010 RC - EUR Issues - Error ID 3123
I have been presented with the following situation: ---------------------------------------------------------------------- Servers OS: 2008 R2 Clients: Vista, Windows 7 Existing DPM: 2010 RC PROBLEM: Unfortunately the network was recovering from a forced-removal of the previous DPM 2007 SP1 Server. The Server was simply removed from the network without de-installation. DPM 2010 RC was subsequently installed and appeared to be working correctly except for EUR (End user Recovery). According to the admin the EUR AD wizard was run successfully. Users are not able to view previo...