Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Sir,can you help me?

Sir,can you help me?

Scheduled Pinned Locked Moved System Admin
questionhelp
15 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    momer
    wrote on last edited by
    #1

    Hi! I had download the source code of mass storage device driver for windows98 from Microsoft websit.And builded it with 98ddk on windows98 system,and then installed it on win98 system. It can work correctly all the time. If I suddenly remove the device from pc when copying file from pc to device or from device to pc on win98 system,the blue screen occur,and i have to restart my system. But if do the same on win2000 or winxp there is no blue screen. Now i wanna modify the driver source code to avoid the blue screen when suddently remove the device while it is exchanging data with pc on win98 system. My question is: 1,If my hope has the possibility to come true? 2,If has,then which part of source code of this drive should i have to modify,and what couses the blue screen? I know that in the source code it just abort all the pipes when device remove sudently but nothing else. Thanks! momer All the blesses we are enjoy are the fruit of labor,toil,study and self-denail.

    T C S 3 Replies Last reply
    0
    • M momer

      Hi! I had download the source code of mass storage device driver for windows98 from Microsoft websit.And builded it with 98ddk on windows98 system,and then installed it on win98 system. It can work correctly all the time. If I suddenly remove the device from pc when copying file from pc to device or from device to pc on win98 system,the blue screen occur,and i have to restart my system. But if do the same on win2000 or winxp there is no blue screen. Now i wanna modify the driver source code to avoid the blue screen when suddently remove the device while it is exchanging data with pc on win98 system. My question is: 1,If my hope has the possibility to come true? 2,If has,then which part of source code of this drive should i have to modify,and what couses the blue screen? I know that in the source code it just abort all the pipes when device remove sudently but nothing else. Thanks! momer All the blesses we are enjoy are the fruit of labor,toil,study and self-denail.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      there no need for cross-posting the forums... if you don't get any answer, it may be because : 1. you don't let people the time to answer 2. the question is not well formulated 3. no one knows...


      TOXCCT >>> GEII power
      [toxcct][VisualCalc 2.24][3.0 soon...]

      M 1 Reply Last reply
      0
      • T toxcct

        there no need for cross-posting the forums... if you don't get any answer, it may be because : 1. you don't let people the time to answer 2. the question is not well formulated 3. no one knows...


        TOXCCT >>> GEII power
        [toxcct][VisualCalc 2.24][3.0 soon...]

        M Offline
        M Offline
        momer
        wrote on last edited by
        #3

        Hi!toxcct, Thank you very much! My quetion is: If there has the possibility to avoid the blue screen when suddenly remove the pen disk from pc while copying file from pc to pen disk on win98 system? thanks! momer

        T 1 Reply Last reply
        0
        • M momer

          Hi!toxcct, Thank you very much! My quetion is: If there has the possibility to avoid the blue screen when suddenly remove the pen disk from pc while copying file from pc to pen disk on win98 system? thanks! momer

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          yeah, i understood the question... i only said that there was no need to ask it many times on many forums at a time. well, for your question, i am not sure about the answer, that's why i didn't let you my thought. i actually think that there's nothing you can do again that blue screen under Windows95/98/ME... but i may be wrong.


          TOXCCT >>> GEII power
          [toxcct][VisualCalc 2.24][3.0 soon...]

          M 1 Reply Last reply
          0
          • M momer

            Hi! I had download the source code of mass storage device driver for windows98 from Microsoft websit.And builded it with 98ddk on windows98 system,and then installed it on win98 system. It can work correctly all the time. If I suddenly remove the device from pc when copying file from pc to device or from device to pc on win98 system,the blue screen occur,and i have to restart my system. But if do the same on win2000 or winxp there is no blue screen. Now i wanna modify the driver source code to avoid the blue screen when suddently remove the device while it is exchanging data with pc on win98 system. My question is: 1,If my hope has the possibility to come true? 2,If has,then which part of source code of this drive should i have to modify,and what couses the blue screen? I know that in the source code it just abort all the pipes when device remove sudently but nothing else. Thanks! momer All the blesses we are enjoy are the fruit of labor,toil,study and self-denail.

            C Offline
            C Offline
            code frog 0
            wrote on last edited by
            #5

            This is by design. Ultimately if you do this enough times it will ruin the USB "Pen" drive. The operating system mounts a virtual file system and needs to unmount it to leave the memory on the "Pen" drive in a useable state. Things that trigger a Blue Screen that are obvious (like this) probably should not be repeated. This is not a software problem it's hardware.

            I only read CP for the articles. Code-frog System Architects, Inc.

            M 1 Reply Last reply
            0
            • C code frog 0

              This is by design. Ultimately if you do this enough times it will ruin the USB "Pen" drive. The operating system mounts a virtual file system and needs to unmount it to leave the memory on the "Pen" drive in a useable state. Things that trigger a Blue Screen that are obvious (like this) probably should not be repeated. This is not a software problem it's hardware.

              I only read CP for the articles. Code-frog System Architects, Inc.

              M Offline
              M Offline
              momer
              wrote on last edited by
              #6

              Hi! Code-frog, Thank you very much! If I do the same on win2000 and winXP it never trigger a Blue Screen. I know that Win2000 and WinXp have their own USB pen disk drivers. I can not understant that it's a hardware problem but not a software. So what couses the difference phenomena on win98 and win2000(WinXp)? Thanks! momer

              D 1 Reply Last reply
              0
              • T toxcct

                yeah, i understood the question... i only said that there was no need to ask it many times on many forums at a time. well, for your question, i am not sure about the answer, that's why i didn't let you my thought. i actually think that there's nothing you can do again that blue screen under Windows95/98/ME... but i may be wrong.


                TOXCCT >>> GEII power
                [toxcct][VisualCalc 2.24][3.0 soon...]

                M Offline
                M Offline
                momer
                wrote on last edited by
                #7

                "i actually think that there's nothing you can do again that blue screen under Windows95/98/ME... but i may be wrong." yeah,i think maybe you are wrong. Couse the usb pen disk driver can do more work after the pen disk removed suddenly. So what about your opinion? thanks! momer

                1 Reply Last reply
                0
                • M momer

                  Hi! Code-frog, Thank you very much! If I do the same on win2000 and winXP it never trigger a Blue Screen. I know that Win2000 and WinXp have their own USB pen disk drivers. I can not understant that it's a hardware problem but not a software. So what couses the difference phenomena on win98 and win2000(WinXp)? Thanks! momer

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  It's really a moot point. "Surprising" the driver with an unexpected removable of the device will result in data corruption. You just don't do it. If the volume on that stick is not dismounted properly, you stand a LARGE chance of corrupting the contents of the stick. Then, a Blue Screen of Death will be the least of your problems. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  M 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    It's really a moot point. "Surprising" the driver with an unexpected removable of the device will result in data corruption. You just don't do it. If the volume on that stick is not dismounted properly, you stand a LARGE chance of corrupting the contents of the stick. Then, a Blue Screen of Death will be the least of your problems. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                    M Offline
                    M Offline
                    momer
                    wrote on last edited by
                    #9

                    Hi! Dave, Thank you very much! Yes,except testing my driver I never remove the device whilt it exchage data with pc,but I can never sure about that my customer never do it. I wish my customer can use my pen-disk on win98 system just like they use it on win2000 or winXp system. So,sir,pls give me your suggestion. Thanks! momer All the blesses we enjoy are the fruit of labor,toil,study and self-denail.

                    D 1 Reply Last reply
                    0
                    • M momer

                      Hi! Dave, Thank you very much! Yes,except testing my driver I never remove the device whilt it exchage data with pc,but I can never sure about that my customer never do it. I wish my customer can use my pen-disk on win98 system just like they use it on win2000 or winXp system. So,sir,pls give me your suggestion. Thanks! momer All the blesses we enjoy are the fruit of labor,toil,study and self-denail.

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #10

                      No ideas, cause I haven't written for 9x systems in a VERY long time, and never a device driver. You're talking about writing a device driver for a system that hasn't been supported by Microsoft in ages. Help on this is going to be extremely difficult to come by, if for no other reason, no one has anything to test the code on! RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                      M 1 Reply Last reply
                      0
                      • M momer

                        Hi! I had download the source code of mass storage device driver for windows98 from Microsoft websit.And builded it with 98ddk on windows98 system,and then installed it on win98 system. It can work correctly all the time. If I suddenly remove the device from pc when copying file from pc to device or from device to pc on win98 system,the blue screen occur,and i have to restart my system. But if do the same on win2000 or winxp there is no blue screen. Now i wanna modify the driver source code to avoid the blue screen when suddently remove the device while it is exchanging data with pc on win98 system. My question is: 1,If my hope has the possibility to come true? 2,If has,then which part of source code of this drive should i have to modify,and what couses the blue screen? I know that in the source code it just abort all the pipes when device remove sudently but nothing else. Thanks! momer All the blesses we are enjoy are the fruit of labor,toil,study and self-denail.

                        S Offline
                        S Offline
                        Saksida Bojan
                        wrote on last edited by
                        #11

                        When i had Win98 a lot of driver shows blue screen, to remove without blue screen, you should go to safe mode.

                        M 1 Reply Last reply
                        0
                        • D Dave Kreskowiak

                          No ideas, cause I haven't written for 9x systems in a VERY long time, and never a device driver. You're talking about writing a device driver for a system that hasn't been supported by Microsoft in ages. Help on this is going to be extremely difficult to come by, if for no other reason, no one has anything to test the code on! RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                          M Offline
                          M Offline
                          momer
                          wrote on last edited by
                          #12

                          Thank you very much!

                          1 Reply Last reply
                          0
                          • S Saksida Bojan

                            When i had Win98 a lot of driver shows blue screen, to remove without blue screen, you should go to safe mode.

                            M Offline
                            M Offline
                            momer
                            wrote on last edited by
                            #13

                            Yeah,I know it. But my problem is how to modify my driver code to avoid the blue screen,and no need to go to safe mode. Thanks!

                            D 1 Reply Last reply
                            0
                            • M momer

                              Yeah,I know it. But my problem is how to modify my driver code to avoid the blue screen,and no need to go to safe mode. Thanks!

                              D Offline
                              D Offline
                              Dave Kreskowiak
                              wrote on last edited by
                              #14

                              It's up to you to debug your driver code and find out why it's causing the BSOD. There's no one thing you can do to fix it. You have to find the bug and correct it, or implement the code to handle the situation that causes it. But, it all starts with you and the kernel debugger... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                              M 1 Reply Last reply
                              0
                              • D Dave Kreskowiak

                                It's up to you to debug your driver code and find out why it's causing the BSOD. There's no one thing you can do to fix it. You have to find the bug and correct it, or implement the code to handle the situation that causes it. But, it all starts with you and the kernel debugger... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                                M Offline
                                M Offline
                                momer
                                wrote on last edited by
                                #15

                                Well,Thank you very much. I think I should follow your words and have a try. Thanks!

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups