Silverfrost Forums

Welcome to our forums

WINDOWS 8.1 and Microsoft Surface Pro Tablet

10 Mar 2014 12:46 #13824

Flexpland3d...

Although this is probably a Microsoft bug, it may be possible to provide a fix within ClearWin+.

Also I may be able to locate the point of failure within ClearWin+ provided you have a trace back that takes you back to a call from a salflibc.dll function. I would need the source code of your program together with details of the trace back with the offset into the final ClearWin+ function call.

At the moment it looks like the failure occurs within the ClearWin+ version of the message loop but this involves a vast amount of code.

2 Apr 2014 1:34 #13920

Your program works OK for me under Windows 8.

2 Apr 2014 6:32 #13921

Paul the problem is not to do with FTN95 or Clearwin as the simple C program below crashes when I try to move the window with pen or touch. So perhaps it is as you say a Microsoft problem, or a problem with the pen driver or a problem with SLINK

I have been unsuccessful in getting a trace back other than the one that showed ninput.dll.

I have reloaded windows 8.1 to no avail.

I have tried tracking the windows messages as they appear in the Windows Procedure - so for example when moving the window I would expect to see a WM_MOVE message. At the point I would expect to see the message the program crashes.

Here is the simple c program that crashes when trying to move the window. It has no menu but the crash still occurs when the pen is in the Non-Client area of the window.

#include <windows.h>
MSG Msg;   
WNDCLASS  wc;                      
DWORD WindowStyle;  
HWND whandle;                                   

LRESULT WINAPI MainWndProc( HWND, UINT, WPARAM, LPARAM );
int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE  hPrevInstance,LPSTR lpCmdLine,int nCmdShow);

int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE  hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{  

    WindowStyle =  WS_OVERLAPPEDWINDOW |WS_VSCROLL |WS_HSCROLL 
                   | WS_VISIBLE |WS_MAXIMIZE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
    wc.style =  CS_VREDRAW| CS_HREDRAW ;
    wc.lpfnWndProc = MainWndProc;
    wc.cbClsExtra = 0;
    wc.cbWndExtra = 0;
    wc.hInstance = hInstance;
    wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); 
    wc.hCursor = NULL; /* set by mouse movement */
    wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);; 
    wc.lpszMenuName =  NULL ;
    wc.lpszClassName = 'TouchClass';
    if (!RegisterClass(&wc)) 
        MessageBox(NULL,'Unable to Register Class','touchclass',MB_OK) ;
    
    whandle = CreateWindow(
        'touchclass',
        'Move window with pen test',    
        WindowStyle,
        50,100,900,500,
        NULL,
        NULL,
        hInstance,
        NULL
        );
     ShowWindow(whandle, SW_SHOW);             

    while(GetMessage(&Msg, NULL,0,0))
      {  
       TranslateMessage(&Msg);    
       DispatchMessage(&Msg);
      }               
      return 0;
}


LRESULT CALLBACK  MainWndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{   
 if(message == WM_DESTROY)
     {
     PostQuitMessage(0);
     return 0;
     } 
    return DefWindowProc(hWnd,message,wParam,lParam) ; 
}                  


 
9 Apr 2014 5:55 #13936

Paul

Today I downloaded Update 1 for Windows 8.1 (released on 8th April 2014 -KB2919355).

All the problems I had with the pen and touch are now fixed. All is working very well.

So, Paul you were correct in suggesting the fault was a Microsoft fault.

I guess it must have been something to with the driver .

Thanks for you help

Please login to reply.