|
From your testing, it indeed looks like there is a limit on the filepath size. I can't, for the life of me, find any documentation on this limit though. It doesn't look like Microsoft is even aware of it.
It looks like you're stuck dealing with the problem and keeping the filepath for you custom log shorted than 86 characters...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yeah. We have created a custom log for one of the applications and came across this behaviour by chance. Now the customer wants any microsoft document on this but we cant find any.
C++beginer
|
|
|
|
|
Well, about the only thing you can do to get that is to open a support incident with MS, probably for some $, and see what they can give you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I just got back from holiday, to find my Windows XP PC has somehow started getting this error (BAD_POOL_CALLER 0x000000C2).
I can only assume it did a windows update or something before I turned it off and went away.
The first parameter of the error is 0x43, which the KB says is something to do with a corrupt pool header. I get the error just after the windows loading bar, I think when it tries to load the login.
Does anybody have any ideas as to what is causing it? Im pretty sure its not a hardware problem memory wise, as I ran memtest and it passed.
|
|
|
|
|
From what I've seen Googling the message, it looks like you've either got a driver problem or a hardware problem.
You can TRY to get a crash dump and run it through WndDbg. See this[^] for a bit of an explaination.
You can also try to strip the machine down to nothing but a power supply, motherboard, RAM, and the Windows hard drive and see what happens. If it works, try adding one device back to the machine. Keep going until it fails again.
Or, you're last resort is to reinstall Windows.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I'd like to be able to recap the program' cpu usage, memory size, etc. from within the program. How would one go about fining the info necessary? Need to do it now on Windows system but Linux and MAC will probably be needed also. My code is actually in C but using VC++2003.
Appreciate any help.
Thanks,
RON C
|
|
|
|
|
What do you mean by "recap"? Are you looking for a CPU/Memory usage history? Tracking this from inside your code will most assuredly skew the results because of the logging overhead. But, you can use the Performance Counter API[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave,
Thanks for the response.
I do want a usage history and from within my code. Can I start another program to do the measurement and pass the info to my program? I'd really like to access to Task Manager values but not to have to run it.
I'll look at Performance Counter API to see if I can easily insert it.
RON C
|
|
|
|
|
The seperate program would be Performance Monitor. It'll also log values to a file for you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Just getting into the docs right now.
Thanks again.
RON C
|
|
|
|
|
Matrox PowerDesk's "Automatically save/restore windows positions" feature can destabilize some windows applications.
Selecting this feature causes many appications to fail in various ways, including the Microsoft Visual Studio (both 2003 and 2005) (blank property pages and crash) and any applications relying on MS mmx.exe, which includes all Administrative Tools. It also causes Norton Ghost to fail. Probably others.
To replicate - Select (turn ON) PowerDesk "Automatically save/restore windows positions". Open Administrative Tools >> Event Viewer. When Event Viewer is closed (Exit), an exception is thrown - "mmc.exe - Application Error" "The exception unknown software exception (0x.......) occured in the application at location 0x...."
Applies to :
DualHead2Go, Asus laptop, nVidia GeForce Go 6200, XPPro
Setup for dual monitoring (2 X 1024x768).- Screen Resolution 2048x768, Desktop Divider - W2, H1
Brooks
|
|
|
|
|
Is there a question in here, or is it posted as a "public service announcment"?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Its a "public service announcment".
Note it may effect users of other Matrox systems using PowerDesk, and it is a generic Windows issues, not limited to VS.
I also posted it to Microsoft VS feedback (via "connect").
And, of course, to Matrox, who acknowleges it.
It woukd be interesting to know how this bug occurs so we could avoid evoking it somehow with our apps.
Brooks
|
|
|
|
|
Ah! I stopped using Matrox cards about 10 years ago...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
My comments are neither product endorsement or criticism. My use of Matrox in this situation is not my choice, but driven by customer platform requirements, just as the use of XPPro is; some of my customers use other operating systems. For the purposes at hand, the Matrox and XPPro work just fine. The bug has a workaround. I was only trying the help others who might encounter it.
Brooks
|
|
|
|
|
And I think that is a nice thing to do.
I have to admit, though, that I also was wondering. Like Dave, I haven't touched Matrox in several years, mainly because they failed to "keep up" with the competition, when it comes to 3D-Performance. Nevertheless, Matrox-Cards, in my experience, give one of the clearest signals ever. They do the 2D-part perfectly.
Anyone here remember the ET4000? Thats another graphics card that was of extraordinary quality. I still have one in the 486DX66-PC I managed to salvage from my physician's practise (I am not sure whether "practise" is correct here - in German, it would be "Praxis".).
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Sebastian Schneider wrote: Anyone here remember the ET4000?
I remember that beast! I used to have one myself, but I can't remember on what board though. That thing blew away any other VGA chipset of the time. Too bad they couldn't hold onto that performance lead though. They could have been the 3rd company in the nVidia/ATI war today.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
PS:
To replicate - Visual Studio -
Select (turn ON) PowerDesk "Automatically save/restore windows positions". Launch VS (2003 or 2005), create an MFC application with the Wizard - all defaults, build, run, its OK. Select project in Solution Explorer. Note Property Page is BLANK. Left click project and select Properties, the Propety page appears, close Property page - CRASH VS.
To replicate - Windows Generic -
Select (turn ON) PowerDesk "Automatically save/restore windows positions". Open Administrative Tools >> Event Viewer. When Event Viewer is closed (Exit), an exception is thrown - "mmc.exe - Application Error" "The exception unknown software exception (0x.......) occured in the application at location 0x...."
Applies to :
DualHead2Go, Asus laptop, nVidia GeForce Go 6200, XPPro
Setup for dual monitoring (2 X 1024x768).- Screen Resolution 2048x768, Desktop Divider - W2, H1
Brooks
|
|
|
|
|
Hi All,
Im developing a Windows application in C# running on XP/512MB RAM/40GB HD. My application uses complex graphics and hence is pretty heavy! It has loads of images to be displayed and all of those are loaded from resource files. Initially i was skeptical whether i would face any problems in loading these images. But fortunately i did not face any problem in that regard.
But when i started building the application, because of its highly Graphical Interface, i started getting a WIN32 Exception which implies that the number of handles created by the application exceeds the limit.
After having a look at the Task Manager, here goes the statistics, My applications uses 250MB of memory, 240 handles created, 10,000 User Objects created, 7 Threads running, 62 GDI Objects created.
After the application creates 10,000 user objects, the exception is thrown by the framework.
Can anybody help me in throwin some light whether XP has any restrictions in creating unser objects. And if so, then what is the alternative to the problem? Meaning, how to restrict the creation of user Objects. Or if i double the RAM, will the number go up?? Or any other alternative!!
Thanks in Advance!
Rajesh
|
|
|
|
|
10,000 User objects?!?! What the (explitive deleted) are you doing to cause this? 3D modelling apps don't generate that kinds of load! A count this high is very unusual. WOW!
Your app is most assuredly leaking something somewhere. Or, you're preloading TONS of stuff you shouldn't have to. There is no way to increase this limit. I don't care how much RAM you shove in the machine, you're app definitely has problems.
You might want to step through your code with TaskManager or Performance Monitor open to see where this is comming from. You're probably not calling .Dispose() on an object that you repeatedly create, but never properly destroy when you're done with it.
-- modified at 13:00 Monday 18th September, 2006
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Each .NET Windows Forms control is a Windows window, which is a user object. Any application which uses a large number of controls is likely to suffer from problems. I suspect you're using a lot of PictureBoxes or similar.
The solution unfortunately is to manage the drawing surface of a control directly. That is, defining your own control that derives from Control, and overriding its OnPaint method to draw its surface, and any other methods needed to allow the user to interact with the control. You should normally perform all painting in the OnPaint method; from other methods you should update whatever data structures describe the current display and call Invalidate to tell Windows that the control needs repainting; Windows will then call OnPaint when the application is idle.
For better performance, you normally Invalidate only the rectangle (or region if a shaped region) that actually needs to be redrawn. In the OnPaint method, use the PaintEventArgs ClipRectangle member, or the Graphics object's IsVisible method, to work out what needs to be redrawn. Reducing the amount of drawing done will normally speed up the drawing and give a more responsive application.
|
|
|
|
|
When you right click on a program and click on properties, there is a section to create your own keyboard shortcut to the program. However I have never been able to get this to work. I have set internet explorer to CTRL+SHIFT+ALT+E - yet pressing that does nothing at all. How are these things supposed to work (if at all)?
|
|
|
|
|
Web Administrators:
I need your assistance. I do not know how to create a File DSN on a Windows 2003 Server installation. I have created the equivalent of a SQL Server database on the server utilizing the UDDI component on the server.
Could somebody who knows how to create a File DSN please provide me with step by step instructions as to what to do? Do I utilize the DNS component in Administrative Tools or do I do something with the IIS server component?
I would really appreciate some assistance with this issue.
New_Phoenix
|
|
|
|
|
Hi,
I want to know about java proxy server. is java proxy server is like a jana
proxy server.
Is java proxy server is better then jana proxy server.Can I use java proxy
server in window server 2003 enterprise ediion.
thanks.
nilesh
|
|
|
|
|
Remote Desktop requires that the machine being connected to have port 3389 open (http://www.microsoft.com/windowsxp/using/mobility/rdfaq.mspx), but what about the machine connecting to the remote server?
I'm trying to connect to a remote machine and I am suspecting that router on my side is blocking outgoing traffic - wonder if I need to open certain port on my side. But for starter, I can determine which port Remote Desktop client opens (and name of Remote Desktop client). I ran fport trying to identify "Remote Desktop Client" and corresponding open port but found nothing.
Norman Fung
|
|
|
|