>From what I understand - you have modified VNC to allow you to see what is on one screen from another connect to same machine. So what you did was setup an infinitely fast "ethernet" between programs. They are waiting for nothing and using all the CPU, because you removed the time delays that a network connect provides. You also may want to look into the SetHook function if there is some form of timing loop.
Now if you were viewing the screen in a window on the same screen... you have formed a positive feed back loop, like when you place a microphone next to a speak. So the viewing program is changing the screen, the server sees the screen change and tells the viewer, and changes the screen, the server sees the screen change and tells the viewer, and changes the screen, the server sees the screen change and tells the viewer, and changes the screen, the server sees the screen change and tells the viewer, and changes the screen, the server sees the screen change and tells the viewer, and changes the screen, the server sees the screen... jackb > hi ,all ! > I write a mirror driver for windows,and I think it has worked . > And when I want to make it work together with winvnc ,there is the problem > : > > First , I modified the function SetHook of VNCHOOKS.dll > I make it simple return TRUE . > And I create another process which communicate to my mirror driver and > send updata rect message to vnc sever.Fortunatly,I get the right picture on > the > client side ,but taskman tell me it uses 100% CPU !!! Why ?? > And when I kill my process ,they(server and client) still uses 100% CPU. > And for a long time ( about 10 minitutes ) ,windows tell me the client > stack > overflow . > Why this happen ? > > > > > > > > > > > > > > _________________________________________________________________ > Cb7QOBTX MSN Explorer: http://explorer.msn.com/lccn > _______________________________________________ > VNC-List mailing list > [EMAIL PROTECTED] > http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list