General Category > Ongoing Anim8or Development

Saving Screen Location and Restarting in Full Screen Crashes on Win98

<< < (2/3) > >>

Trevor:
Yeah, Im pretty used to it now anyway.

I did however just try a traceinit and it reveals the same info as WinXP that MvGulik posted
begin: InitInstance()
       creating main window.

I therefor assume the crash is the same as mine except that I provided the Invalid page fault text.

As for why its an invalid page fault is a mystery? and why it doesnt work in Vista?
Maybe vista is able to bypass the IPF and so skips the reg setting...???

What we could do is just continue for now and I will test each solution and fix my own reg.
If we reach a point where it is fixed for XP but 9x still fails, then we can add an exception for 9x.
I have a feeling though that we could fix both with the same solution.

As I say though, Im pretty used to the way an8 starts.

Trev

Steve:
The only thing new between "creating main window" and "main window created" is that I set one extra bit in the window style parameter when creating the window:

    lStyle |= WS_MAXIMIZE;

My guess is that this bit doesn't do the same thing in Win98 or has a different value, but I can't find any good documentation on Win98 so who knows.

I'll wait on disabling this for Win98 as you suggest.

Trevor:
I just thought id re-read the last post to make sure I didn't mis-read it myself.

"Smirkyguy: I think I finally figured out how to make maximized windows work correctly.  It'll be in the next build.


XP: Anim8or(1139) crashes on start-up with Reg:WindowMaximized=1.
(Vista: No crash, but no maximized window on start-up either.)"

Ok, So, I read this as being that lStyle |= WS_MAXIMIZE; is not working in 9x,Xp,Vista.

The thing is that I recognise that API from somewhere...

Ok, So, that API does exist in 9x despite what MS say at MSDN.
It also works the same for all OS's that use it (Apparently)

I did find that some people were having difficulty in using it but it seemed none crashed like an8 does. They simply ignored the WS_MAXIMIZED API because it wasn't called right.

Im off out so will quickly look later.

Trev

After a quick read I think something like this is whats expected. Im not sure what language your in or your implementation of it, but from what I read, a lot of people seem to have bother with it.

If RegKeyMax = true
HWND WINAPI CreateWindow(
  _In_opt_  LPCTSTR lpClassName,
  _In_opt_  LPCTSTR lpWindowName,
  _In_      DWORD WS_MAXIMIZE,
  _In_      int RegKeyX,
  _In_      int RegKeyY,
  _In_      int RegKeyWidth,
  _In_      int RegKeyHeight,
  _In_opt_  HWND hWndParent,
  _In_opt_  HMENU hMenu,
  _In_opt_  HINSTANCE hInstance,
  _In_opt_  LPVOID lpParam
);

else

HWND WINAPI CreateWindow(
  _In_opt_  LPCTSTR lpClassName,
  _In_opt_  LPCTSTR lpWindowName,
  _In_      DWORD WS_TILEDWINDOW ,
  _In_      int RegKeyX,
  _In_      int RegKeyY,
  _In_      int RegKeyWidth,
  _In_      int RegKeyHeight,
  _In_opt_  HWND hWndParent,
  _In_opt_  HMENU hMenu,
  _In_opt_  HINSTANCE hInstance,
  _In_opt_  LPVOID lpParam
);


I Should correct myself, WS_MAXIMIZE is not an API but an ENUM. It still exists in all Windows OS's though (3x -> 8)

MvGulik:

--- Quote from: MvGulik on December 01, 2014, 04:33:28 am ---(Vista: No crash, but no maximized window on start-up either.)
--- End quote ---
Oops.
After re-testing this one on 1140, I realized that on the Vista computer I did not have the "Save Window Location" active.

After activating the "Save Window Location" setting, Vista has the same behavior as with XP for maximized windows.

Trevor:
MvGulik can I just confirm that you experiance the crash? Does XP/Vista give a reason? (Invalid Page Fault)
I know that Vista and 7 dont make it clear anymore. they normally just say, XXX stopped responding and will be shut down, click for solution, ignore.

It would be good to clear it up.

Trev

P.S. heh, I thought this was a completly new topic that I didnt even know I posted in, untill I realised it was a moved converstaion :P

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version