The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

new Windows version!!!! by mhiper32003-01-13 16:03:54
  Why in the blue blazes are you coding in win98? by gblues2003-01-13 18:25:54
    I could take down 2000 easily enough. by Avium 2003-01-13 19:40:19
I had to by pass the printer drivers on windows to send certian escape sequences to the printers. The API call to get a spooler file requires a 'lpsz' or long pointer to a null terminated string as part of the structure.

Me being the nice guy that I am allocated the printer structure with a pointer to a 256 char array for windows to put the file name into. This program would always trash the system. Debugging was rather annoying...Run. Reboot. Change code. Run. Reboot. ...

This was a complicated routine so the lpsz was one of the last things I checked. When I finally checked the memory location I found something interesting. The valid pointer which I correctly allocated was being wiped out with an invalid one which constantly pointed to the same location.

The four bytes that wiped out my valid pointer were always : 0x43, 0x3a, 0x5c, 0x57. In other words : 'C:\W'. Wonderful API documentation.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)