Strange bug

Hi, I have a strange bug, in a class I wrote for printing...

There's a place where the class is calling a function to do the printing on 
a CDC,
and right after that it calls CDC::EndPage.

The very strange thing happens:

The function who draw, can do anything, except LineTo or MoveTo, because if 
I do even a single MoveTo,
the execution fails on CDC::EndPage (Unhandled exception at 0x00000000... 
Access violation...)

I tried to replace the printing function with a compact function who only 
does a MoveTo(1,1), and it is the same result.

But if I do the drawing without a sub-function, but directly before the 
EndPage, everything is just fine!

I also placed TRACEs to print out the m_hDC and m_hAttribDC of the CDC 
object, and it is fine when the EndPage is called.

I have ran a zillion tests, and there *seems* to be no memory leak, just 
this strange bug...

Any suggestions???

Thanks
Johnny Abba 


0
jhonny (7)
9/24/2007 11:26:47 AM
vc.mfc 33608 articles. 0 followers. Follow

12 Replies
779 Views

Similar Articles

[PageSpeed] 14

>Hi, I have a strange bug, in a class I wrote for printing...

Show us the bare minimum of your code that will reproduce this
problem.

From what you've said I can't think of any reason it should crash in
the way you say.

Dave
0
davidl7375 (2060)
9/24/2007 1:41:39 PM
I will need to post  100KB of code for that here...

Is there any tool that can help me trace the memory trouble for this?

The thing is, if I debug, and put a breakpoint on the EndPage line, then 
'watch' the CDC object, I can see all the values, including m_hDC, and they 
are all valid, but when it goes into EndPage (and then read the m_hDC from 
the object) it fails with access violation.
I have tried also to just do a CDC::GetSafeHDC, and it gives the same 
exception, although the watch shows the values.
Maybe something is making another thread gain control over that memory in 
some way? I'm no expert at the memory heaps management and all that...

"David Lowndes" <DavidL@example.invalid> wrote in message 
news:lifff39cnrcnl1nd1lsmb1d8s2fkff1v5h@4ax.com...
> >Hi, I have a strange bug, in a class I wrote for printing...
>
> Show us the bare minimum of your code that will reproduce this
> problem.
>
> From what you've said I can't think of any reason it should crash in
> the way you say.
>
> Dave 


0
jhonny (7)
9/24/2007 3:30:55 PM
Never mind, I found the problem. It was so stupid I can't believe it.
The whole complex class did not make a single dynamic memory allocation, 
almost no way for memory leaks to happen,
But in the dialog where I created the class, the whole class was dynamically 
created, and destroyed ahead of its time... The biggest mistake under my 
nose and I didnt see it...

I do not know if I should be laughing now, or hitting my head into the 
nearest wall...

"jhonny" <jhonny@discussions.microsoft.com> wrote in message 
news:uYClfAs$HHA.4584@TK2MSFTNGP03.phx.gbl...
>I will need to post  100KB of code for that here...
>
> Is there any tool that can help me trace the memory trouble for this?
>
> The thing is, if I debug, and put a breakpoint on the EndPage line, then 
> 'watch' the CDC object, I can see all the values, including m_hDC, and 
> they are all valid, but when it goes into EndPage (and then read the m_hDC 
> from the object) it fails with access violation.
> I have tried also to just do a CDC::GetSafeHDC, and it gives the same 
> exception, although the watch shows the values.
> Maybe something is making another thread gain control over that memory in 
> some way? I'm no expert at the memory heaps management and all that...
>
> "David Lowndes" <DavidL@example.invalid> wrote in message 
> news:lifff39cnrcnl1nd1lsmb1d8s2fkff1v5h@4ax.com...
>> >Hi, I have a strange bug, in a class I wrote for printing...
>>
>> Show us the bare minimum of your code that will reproduce this
>> problem.
>>
>> From what you've said I can't think of any reason it should crash in
>> the way you say.
>>
>> Dave
>
> 


0
jhonny (7)
9/24/2007 3:37:51 PM
OK! Now I'm confused!
The bug that I have fixed had nothing to do with the original bug.
I have made more tests, and done the following, where the error occurs:

HDC hDC=dcPrint.m_hDC;
TRACE(_T("%d\n"), hDC); // Prints a valid hDC! - I can do whatever with it, 
bitblt to the screen... its ok
::EndPage(hDC); // Lots of Exceptions!!!

First-chance exception at 0x01916dce in PrintTest.exe: 0xC0000005: Access 
violation writing location 0x00140000.
First-chance exception at 0x00000000 in PrintTest.exe: 0xC0000005: Access 
violation reading location 0x00000000.
..
..
..
Hundreds of that same line...
..
..
..
First-chance exception at 0x00000000 in PrintTest.exe: 0xC0000005: Access 
violation reading location 0x00000000.
First-chance exception at 0x7c90eaf4 in PrintTest.exe: 0xC0000005: Access 
violation writing location 0x00040ffc.
Unhandled exception at 0x7c90eaf4 in PrintTest.exe: 0xC0000005: Access 
violation writing location 0x00040ffc.

"jhonny" <jhonny@discussions.microsoft.com> wrote in message 
news:u8XKXEs$HHA.4752@TK2MSFTNGP04.phx.gbl...
> Never mind, I found the problem. It was so stupid I can't believe it.
> The whole complex class did not make a single dynamic memory allocation, 
> almost no way for memory leaks to happen,
> But in the dialog where I created the class, the whole class was 
> dynamically created, and destroyed ahead of its time... The biggest 
> mistake under my nose and I didnt see it...
>
> I do not know if I should be laughing now, or hitting my head into the 
> nearest wall...
>
> "jhonny" <jhonny@discussions.microsoft.com> wrote in message 
> news:uYClfAs$HHA.4584@TK2MSFTNGP03.phx.gbl...
>>I will need to post  100KB of code for that here...
>>
>> Is there any tool that can help me trace the memory trouble for this?
>>
>> The thing is, if I debug, and put a breakpoint on the EndPage line, then 
>> 'watch' the CDC object, I can see all the values, including m_hDC, and 
>> they are all valid, but when it goes into EndPage (and then read the 
>> m_hDC from the object) it fails with access violation.
>> I have tried also to just do a CDC::GetSafeHDC, and it gives the same 
>> exception, although the watch shows the values.
>> Maybe something is making another thread gain control over that memory in 
>> some way? I'm no expert at the memory heaps management and all that...
>>
>> "David Lowndes" <DavidL@example.invalid> wrote in message 
>> news:lifff39cnrcnl1nd1lsmb1d8s2fkff1v5h@4ax.com...
>>> >Hi, I have a strange bug, in a class I wrote for printing...
>>>
>>> Show us the bare minimum of your code that will reproduce this
>>> problem.
>>>
>>> From what you've said I can't think of any reason it should crash in
>>> the way you say.
>>>
>>> Dave
>>
>>
>
> 


0
jhonny (7)
9/24/2007 4:12:10 PM
"jhonny" <jhonny@discussions.microsoft.com> wrote in message 
news:u8XKXEs$HHA.4752@TK2MSFTNGP04.phx.gbl...
> Never mind, I found the problem. It was so stupid I can't believe it.
> The whole complex class did not make a single dynamic memory allocation, 
> almost no way for memory leaks to happen,
> But in the dialog where I created the class, the whole class was 
> dynamically created, and destroyed ahead of its time... The biggest 
> mistake under my nose and I didnt see it...
>
> I do not know if I should be laughing now, or hitting my head into the 
> nearest wall...
>

Laugh. It is much more fun :-)

Les
(PS we've all been there, done that, got the bruises to prove it - well at 
least *I* have) 


0
9/24/2007 4:14:52 PM
It seems to happen only with virtual printer drivers.. strange... Is it my 
code or the drivers?

"jhonny" <jhonny@discussions.microsoft.com> wrote in message 
news:%230qGjXs$HHA.3400@TK2MSFTNGP03.phx.gbl...
> OK! Now I'm confused!
> The bug that I have fixed had nothing to do with the original bug.
> I have made more tests, and done the following, where the error occurs:
>
> HDC hDC=dcPrint.m_hDC;
> TRACE(_T("%d\n"), hDC); // Prints a valid hDC! - I can do whatever with 
> it, bitblt to the screen... its ok
> ::EndPage(hDC); // Lots of Exceptions!!!
>
> First-chance exception at 0x01916dce in PrintTest.exe: 0xC0000005: Access 
> violation writing location 0x00140000.
> First-chance exception at 0x00000000 in PrintTest.exe: 0xC0000005: Access 
> violation reading location 0x00000000.
> .
> .
> .
> Hundreds of that same line...
> .
> .
> .
> First-chance exception at 0x00000000 in PrintTest.exe: 0xC0000005: Access 
> violation reading location 0x00000000.
> First-chance exception at 0x7c90eaf4 in PrintTest.exe: 0xC0000005: Access 
> violation writing location 0x00040ffc.
> Unhandled exception at 0x7c90eaf4 in PrintTest.exe: 0xC0000005: Access 
> violation writing location 0x00040ffc.
>
> "jhonny" <jhonny@discussions.microsoft.com> wrote in message 
> news:u8XKXEs$HHA.4752@TK2MSFTNGP04.phx.gbl...
>> Never mind, I found the problem. It was so stupid I can't believe it.
>> The whole complex class did not make a single dynamic memory allocation, 
>> almost no way for memory leaks to happen,
>> But in the dialog where I created the class, the whole class was 
>> dynamically created, and destroyed ahead of its time... The biggest 
>> mistake under my nose and I didnt see it...
>>
>> I do not know if I should be laughing now, or hitting my head into the 
>> nearest wall...
>>
>> "jhonny" <jhonny@discussions.microsoft.com> wrote in message 
>> news:uYClfAs$HHA.4584@TK2MSFTNGP03.phx.gbl...
>>>I will need to post  100KB of code for that here...
>>>
>>> Is there any tool that can help me trace the memory trouble for this?
>>>
>>> The thing is, if I debug, and put a breakpoint on the EndPage line, then 
>>> 'watch' the CDC object, I can see all the values, including m_hDC, and 
>>> they are all valid, but when it goes into EndPage (and then read the 
>>> m_hDC from the object) it fails with access violation.
>>> I have tried also to just do a CDC::GetSafeHDC, and it gives the same 
>>> exception, although the watch shows the values.
>>> Maybe something is making another thread gain control over that memory 
>>> in some way? I'm no expert at the memory heaps management and all 
>>> that...
>>>
>>> "David Lowndes" <DavidL@example.invalid> wrote in message 
>>> news:lifff39cnrcnl1nd1lsmb1d8s2fkff1v5h@4ax.com...
>>>> >Hi, I have a strange bug, in a class I wrote for printing...
>>>>
>>>> Show us the bare minimum of your code that will reproduce this
>>>> problem.
>>>>
>>>> From what you've said I can't think of any reason it should crash in
>>>> the way you say.
>>>>
>>>> Dave
>>>
>>>
>>
>>
>
> 


0
jhonny (7)
9/24/2007 4:20:34 PM
>It seems to happen only with virtual printer drivers.. strange... Is it my 
>code or the drivers?

If it doesn't cause a problem with proper printer drivers, suspect the
driver - check for updates to whatever product you're using.

Dave
0
davidl7375 (2060)
9/24/2007 5:42:00 PM
I have tried printing with other applications, and they print fine. Even 
sample applications that use the doc/view architecture, and basically the 
same technique.
Only my class can't deal with that certain driver, so there must be 
something that I'm doing wrong, or wrong for the specific driver.
It is so strange that any printing API functions that are called after 
drawing to the DC, cause the access violation, but with only minimal 
drawing, it does not cause it.

Is there any tool that can help me trace the things going on in memory? 
Maybe I'll find out this way how to override the drivers' bug...

"David Lowndes" <DavidL@example.invalid> wrote in message 
news:lltff3dlm2nk13b9sfaui3pit3iimok7rs@4ax.com...
> >It seems to happen only with virtual printer drivers.. strange... Is it 
> >my
>>code or the drivers?
>
> If it doesn't cause a problem with proper printer drivers, suspect the
> driver - check for updates to whatever product you're using.
>
> Dave 


0
jhonny (7)
9/24/2007 7:05:38 PM
>I have tried printing with other applications, and they print fine. Even 
>sample applications that use the doc/view architecture, and basically the 
>same technique.
>Only my class can't deal with that certain driver, so there must be 
>something that I'm doing wrong, or wrong for the specific driver.

If your code is fine with a selection of normal printer drivers (try a
postscript one and a PCL one for a spread) then I'd really suspect the
other driver. I've had a few wild crash reports with one of my
applications and they were all resolved by newer printer drivers.

>It is so strange that any printing API functions that are called after 
>drawing to the DC, cause the access violation, but with only minimal 
>drawing, it does not cause it.

If you can produce a minimal example of what's required to repro the
problem, I'm sure others would have a look over the code and possibly
be willing to give it a try on their printers.

>Is there any tool that can help me trace the things going on in memory?

There are memory leak tools, but I'm not aware of anything that will
help you in this situation with a 3'rd party driver that you don't
have the source for.

Dave
0
davidl7375 (2060)
9/24/2007 10:51:44 PM
I seriously doubt that you need to post 100KB of code to show us the "bare minimum" asked
for.  I suspect that you need to show the place where you create the DC, where you do your
StartDoc, StartPage, MoveTo/LineTo, EndPage and EndDoc.  In fact, if you can do these
WITHOUT getting the access fault, then it is likely not in the EndPage or the
MoveTo/LineTo.

Your comment about virtual printer drivers does raise some red flags.  But without the
code snippet, or knowing what the virtual printer driver does, it is going to be hard to
guess.

Did you stop in the debugger to see the backtrace?  Kind of important.  If GetSafeHDC is
giving an error, there is always the possibility you have clobbered memory somewhere, but
the problem description at this point is far too vague to allow us to make suggestions.  

Are you using threads?  If you aren't, the chances that some thread will "gain control" of
memory is vanishingly small.

If removing code makes the problem go away, then the code removed is what is causing the
problem.
					joe

On Mon, 24 Sep 2007 17:30:55 +0200, "jhonny" <jhonny@discussions.microsoft.com> wrote:

>I will need to post  100KB of code for that here...
>
>Is there any tool that can help me trace the memory trouble for this?
>
>The thing is, if I debug, and put a breakpoint on the EndPage line, then 
>'watch' the CDC object, I can see all the values, including m_hDC, and they 
>are all valid, but when it goes into EndPage (and then read the m_hDC from 
>the object) it fails with access violation.
>I have tried also to just do a CDC::GetSafeHDC, and it gives the same 
>exception, although the watch shows the values.
>Maybe something is making another thread gain control over that memory in 
>some way? I'm no expert at the memory heaps management and all that...
>
>"David Lowndes" <DavidL@example.invalid> wrote in message 
>news:lifff39cnrcnl1nd1lsmb1d8s2fkff1v5h@4ax.com...
>> >Hi, I have a strange bug, in a class I wrote for printing...
>>
>> Show us the bare minimum of your code that will reproduce this
>> problem.
>>
>> From what you've said I can't think of any reason it should crash in
>> the way you say.
>>
>> Dave 
>
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15973)
9/25/2007 2:44:28 AM

jhonny wrote:

> It seems to happen only with virtual printer drivers.. strange... Is it my 
> code or the drivers?

I had been through something like this with the adobe PDF writer, so my 
guess. You need to name the print job.

<http://groups.google.com/group/microsoft.public.vc.mfc/browse_frm/thread/761d92d497d009af/bf6a7ce1aab37dad?lnk=st&q=PDF+bloomquist+name+mfc&rnum=1#bf6a7ce1aab37dad>

I don't know if this helps, but I thought I would say.

Best, Dan.

0
public21 (290)
9/25/2007 4:42:50 AM
Well the problem is with the "Virtual PDF Printer" driver, but other 
applications do not have problems with it.
Adobe PDF works fine...

Reproducing the problem is very simple, I'm using the CPrintInfo in the same 
way that the doc/view is using, then printing, and EndPage after printing 
goes wild...

"David Lowndes" <DavidL@example.invalid> wrote in message 
news:rafgf3dehfl8gqq8qs2qd59e8gndqe0irc@4ax.com...
> >I have tried printing with other applications, and they print fine. Even
>>sample applications that use the doc/view architecture, and basically the
>>same technique.
>>Only my class can't deal with that certain driver, so there must be
>>something that I'm doing wrong, or wrong for the specific driver.
>
> If your code is fine with a selection of normal printer drivers (try a
> postscript one and a PCL one for a spread) then I'd really suspect the
> other driver. I've had a few wild crash reports with one of my
> applications and they were all resolved by newer printer drivers.
>
>>It is so strange that any printing API functions that are called after
>>drawing to the DC, cause the access violation, but with only minimal
>>drawing, it does not cause it.
>
> If you can produce a minimal example of what's required to repro the
> problem, I'm sure others would have a look over the code and possibly
> be willing to give it a try on their printers.
>
>>Is there any tool that can help me trace the things going on in memory?
>
> There are memory leak tools, but I'm not aware of anything that will
> help you in this situation with a 3'rd party driver that you don't
> have the source for.
>
> Dave 


0
jhonny (7)
9/25/2007 6:31:18 AM
Reply:

Similar Artilces:

bug in rules?
Sorry if this is stupid...I have a very simple rule set up to put mail sent through a particular account into a folder. This works fine, except it also puts a copy in my Inbox. So, I end up with two copies of each mail - one in the Inbox, one in the other folder. My rule: Apply this rule after the message arrives Through the XXX account Move it to the XXX folder What am I missing here? Is this a bug? I'm using Outlook 2002. Any help? Thanks Doug >My rule: > >Apply this rule after the message arrives >Through the XXX account >Move it to the XXX folder > >What a...

Daylight saving time Strange behaviour
Hi, I have created an application where I am using CTime( int nYear,int nMonth,int nDay,int nHour,int nMin,int nSec,int nDST = -1); Constructor to change the dates to UTC before saving them to database. I have set my timezone to Easterntime(US&Canada) which is 5 hrs behind GMT. I entered the following date, 01\11\2006 12:00:00PM.When its converted to UTC,the date its showing is 01\11\2006 4:00:00PM. In 2006,DST ended on 29\10\2006,thus ideally it should show 01\11\2006 5:00:00PM. This behaviour is shown for dates ranging from 30\10\2006 to 4\11\2006. Analysing the issue,I checked my...

Excel 2007 sorting bug?
If an Excel 2007 sheet (#1) has formula referenced cells to another sheet (#2), and if the column in sheet (#2) containing the referenced cells is then A-Z sorted on the value then the original references in sheet #1 get lost as they are now pointing to different cells. Is this an Excel 2007 bug? Why after the sort does the relative position not move so keeping the correct references?. I have not used $ in the cell address. Beemer No, this is not a bug. If you have cells on Sheet1 pointing to other cells on Sheet2 with a direct reference like =Sheet2!B1, then if you change the c...

Strange Outlook Attachment Problem....Please help...
We have been running into an issue with several of our end user Outlook attachment decoding. We have an AIX (IBM unix) server that sends out reports automatically via email. These reports can be either a .pdf, .rtf, or plain text file. The problem is when some users (ones who have outlook 2000) receive these emails, they get the full ASCII uuencode file in the body of the email message (no matter what file type pdf, rtf or txt) and not as an attachment. I have tried multiple updates, and nothing seems to work out. My research on the net just tells me to use mime encoding. That�s not p...

Managing spam emails
Hello, I have recently started using Outlook 2k3 and have a couple of questions about handling spam emails. I know you can just right-click on the Junk folder and delete all the messages inside. But, I like to at least preview the message list in the Junk folder before deleting everything, so that I can make sure that messages I want aren't being misdirected there and deleted by mistake. I know that often, just opening a spam email will activate an invisible "web bug" in web-based email that alerts the spammer that you've opened their message, and then they send you...

Word 2007 Bug
Hi, I periodically get a strange error with Word 2007. While working on a document, it starts using a full CPU core (50% CPU on a dual core machine). While this is happening, Word refuses to respond, although it sometimes remembers keyboard shortcuts etc. This has happened infrequently starting around October/November last year. Immediately before this happens, I sometimes see letters repeated (eg when typing normally, I get a string of 10 of a letter in a row). There's nothing special about the document I'm currently working on; it's based on a template that I...

Can anyone reproduce my Chart error? Is this an Excel BUG?
Try plotting two lines in a XY-chart: Each line should consist of 2 (X,Y) points. The X values of both lines should be set 0 and 5. The Y values should be calculated from other cells as: Y=S1*X+K1 and Y=S2*X+K2. Where S1 and S2 are the slopes and K1 and K2 are the interceptions. Set S1=1, S2=2, K1=0.001 and K2=0.001. Plot the lines in a XY-Chart. The next step is important: Set the X-Axes scaled from 0 to 0.1 and the Y-axes scaled from 0 to 0.1. The BUG: Now try changing S1 to S1=4. It is clear that something is wrong.The lines should have different slope but they have the same!! Go ba...

Bug in Econnect taSopLineDelete when multi-bin Enabled.
I encountered a bug in econnect store procedures. I am running GP 10 SP2 and econnect SP2, with multi-bin enabled. I identified the root cause of the bug is in taSopLineDelete, and also affects the procedure taSopLineIvcInsert. The Site bin allocation quantity is not correctly updated after either deleting a SOP line item or updating a SOP line Item when the SOP line has been allocated from the same bin multiple times. An example is like that For SOP Document# 1, Item "ABC" has order quantity 10. at that time, at Bin A-1, only quantity 3 available, so 3 is allocated from bin...

Money Bug 03/04: Stock Changes it's name but Maoney wont let that happen.
I have seen this in Money 2003 and now 2004. A company, such as DELL changes it's name but not is it symbol. When I download transactions Money asks if the new name is the same investment as the old name (obviously it is as they have the same symbol). I say yes it is the same. Money asks "Are You Sure Dell Computers is the same as Dell Inc". Regardless of how I answer this confirm It asks the first question again, and again and again and again until I admit that Dell Inc is NOT Dell Computer. Only then can I continue the reconcile. Every time I upgrade I wish I did not. I...

bug - type 1-4531 in any cell
In Excel office 2k if you type 1-4351 in any cell the returned value is Jan-51, 2-4531 =Feb-51 etc. you cannot change the format of the cell to display numbers!!! The workaround for this bug is to put an open quote mark in front of the number i.e. '1-4531, as this is the type of number I use regularly it is extremely annoying, has this already been reported and if so is there a fix for it? Hi Set the cell format to Text before you type into the cell. -- Andy. "Paidi" <Paidi@discussions.microsoft.com> wrote in message news:46A56411-7E75-47FC-B908-90DFD9491766@m...

I think I've found a bug in Excel 2003
I think I've found a bug: You have two Excel 'books' open in one window. One sheet is protected, the other is not. What I want to do is to paces a reference from one sheet into another (in order to have the second sheet dynamically update). The bug comes up if the sheet your are pasting to is locked. When you go to the window menu to select the second (i.e. locked) sheet, the window changes, but everything is locked out, and the option to switch back to the original window is no longer available. Only what to exit is to crash out of program. -- Dab Cut off: yourhead...

A strange problem
Hi there, I am compile the program on a english machine, the program can run normally, then I try to run the machine on a chinese machine, but it crashed. I try to debug the program on the chinese machine, such as it crashed at m_CurDateTime = COleDateTime::GetCurrentTime, after press F11, I found in fact it stepped into another function, and the class is not COleDateTime. Program can run on chinese machine normally but crashed on english machine if compile the program on chinese machine. How to solve this type problem? Many thanks for your help. Jack Try look the function HRESULT IDa...

Is this MS bug or my bug
I got the following first chance exception in debug mode when program exit, if I run in release mode, it seem to be fine. it's running in win2003 VC7.1 environment. the callstack is like: kernal32.dll! 77e4af90() comctl32.dll! 70ae2072() comctl32.dll! 70ae20af() ..... walbumd.exe! ATL:: CTrace::TraceV(..) ntdll.dll! 77f685df() .... Walbumd.exe!CWnd::DefWindowProcA(...) Walbumd.exe!CThreadLocal<_AFX_THREAD_STATE>::GetData() Line 177+0xd 00000001() please see attached image file for detail. This bug is annony, I dont know how to get ride of it. Thanks zhi ma At what point does ...

Strange Outlook 2003 issue
I have a client running Exchange Server and Outlook 2003. The issue she has (and it only seems to be the one user), is this: When sending some emails, whether to a group or an individual user; internal or external; the email goes into both Sent and deleted items at the same time with a header that says 'This email has not been sent'. When we check with the recipient they have received the email. There does not seem to be any consistency with this, we have tried sending to the same sender and all ok, we have tried sending with and without attachments...nothing seems to make any d...

Windows 7 media player 12 hopelessly bugged? Can't rip.
I have just installed windows 7 and media player 12 comes with it. Media player seems to work ok, but when I tried to rip a song I discovered a rather severe bug. I can't rip anything, if I press the rip button it fails instantly. I discovered the likely problem is that under the location where songs are saved on my computer (under options, and ripping settings), there is no path listed in the storage location. The path is blank. You cannot type one in there, it simply won't work. Pressing the "change location" button does absolutely nothing at all! Nice ...

XML bug, what versions, etc
>-----Original Message----- >Ian wrote: > >> How can I find out for certain which version my .NET >> installation is using, and if I am indeed using version 3, >> how can I upgrade it to version 4 to get the service pack >> 2? If this is what I have to do anyway. > >..NET doesn't use MSXML at all. >Post more info about your issue. the following is the XML node concerned. <iData desc=""> (subnodes of iData) </iData> But is has the DTD attribute list: <!ATTLIST iData periodicity (S | C) "S" dropManaged...

Strange Onscreen Keyboard problem
Hello gurus ;) i'm working on an application that needs onscreen keyboard for reasons that i will not mention here. I have found some interresting code at the following location: http://www.codeproject.com/samples/onscreenkeyboard.asp The keyboard found there builds well and run fine (no problem for notepad). But when i try to use in my application where it is used for entering username and password on a prompted dialog box, then it does not seem to work properly. My dialog box is system modal. What is does is that it displays only the latest character entered in the edit field of th...

Upgrade SP2 -> Strange behavior
We upgraded the Project server integration environment to SP2. Error: Failed to upgrade SharePoint Products and Technologies. An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. In application eventviewer there was this error: Could not find stored procedure: MSP_TimesheetQ_Read_Control_Message If we look into the published database, a lot of stored procedures disappeared. (all stored procedures who start with: MSP_TimesheetQ, MSP_Dal and several others) We had a backup of the databases from before the upgrade, and t...

Excel Bug
Ok here is whats going on, 227.82 227 0.75 0.05 0.02 227.82 False inputed 227.82 then sum 227+.75+.05+.02=227.82 then the last cell is an IF THEN statement If cell1 - cell5 = 0 then display True (ie 227.82-227.82=0 then "True") Tell me why excel insists that this statement is false?? See... http://www.cpearson.com/excel/rounding.htm "Joey Bag O" <Joey Bag O@discussions.microsoft.com> wrote in message news:424ADF8D-8D8E-41FA-BC61-6613C0FDA2D0@microsoft.com... > Ok here is whats going on, > 227.82 227 0.75 0.05 0.02 227.82 False > > inputed 227.82 &...

Gettign strange server message
This is a multi-part message in MIME format. ------=_NextPart_000_0014_01CB152C.FB9484F0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit It seems that many times when I close my web browser I'm getting an unusual error message dialog. See attached image file. Thanks for your time. -- JamesKB ------=_NextPart_000_0014_01CB152C.FB9484F0 Content-Type: image/jpeg; name="whenclosingbrowsermessage.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=&...

Strange behavior.
Hi, I recently find that the Excel formula doesn't work properly sometimes. For example, after having a summation of a column at a certain cell, I then change the cell values within that column, the result doesn't reflect the change automatically. I somehow can get around this by restarting the computer. Does anybody know why this happens? Leo You might want to check to see Excel is set on automatic or manual calculation. If it is on manual, this would explain your problem. To check: Click on Tools in your menu bar Select Options Click on the Calculation tab Select Automati...

Is it possible to fix this WINDOWS bug?
I've been playing around with this for a few days... this doesn't seem to be specific to my application or even my PC... seems to be a general WINDOWS XP / 2003 bug... just wondering if there is any work around? BUG: try resizing a window from the left (ie... grab the left frame with the mouse and move it right and left fast) -- yeah, I know this isn't something most people do LOL... but you'll notice that the painting in this scenario is horrible... scroll bars jump around, etc. It seems like Windows first moves the window and then resizes it in 2 steps resulting in th...

XML Serialization bug? #2
Take a class: public class AClass { public bool FurtherActionsRequired; public bool FurtherActionsRequiredSpecified; } this class serialized to XML produces the following XML output: <?xml version="1.0" encoding="utf-8"?> <AClass xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FurtherActionsRequiredSpecified>false</FurtherActionsRequiredSpecified> </AClass> Why does FurtherActionsRequired not get serialized to XML? Is this a bug? Adam Adam, Was my last ex...

Bug with Combo Box?
Hi, I have noticed that either on a web page or a desktop application form, Combo box always appear at the top of each control either you change the z index or not. Is that a bug with Combo box or what? Is there any way to send the combo box behind some control (button, static) ? Thanks in advance. Fahad Ashfaque fahad_ashfaque@yahoo.com Change the Z order doesn't work? "Fahad Ashfaque" <fahad_ashfaque@yahoo.com> д����Ϣ���� :05dc01c39f4d$9294cf70$a301280a@phx.gbl... > Hi, > I have noticed that either on a web page or a desktop > application for...

Void trans. Money 2006 doesn't recog.goes to same transaction/bug?
In my checking acct. I entered a check number and it had to be voided. When I try to to go to a new withdrawal, it starts with the number that was just voided instead of going to the next check, is this another bug? I tried closing the program and restarting but does the same thing. They fix this in 2007 also? Seems the more I work with 2006, seems to be bug infested and they want you to buy 2007 to fix it? Bruce I just tried this in M07 and M04. I entered # 2111. Then I voided it. Then I went to enter another new transaction. In both versions, It started the transaction by auto-fil...