Recent

Author Topic: Windows 10 "Developer mode"  (Read 1432 times)

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Windows 10 "Developer mode"
« on: July 09, 2019, 10:09:45 pm »
I've some problems with running my old application in "developer mode" on Windows 10. In "Sideload apps" application works ok.
In developer mode it seams my program run with some debug mode and it overwrites some checks and assertions, and thats why program crash, it's the first thing that comes to my mind. Can you help me how to disable that mode programmatically ?

jamie

  • Hero Member
  • *****
  • Posts: 7602
Re: Windows 10 "Developer mode"
« Reply #1 on: July 09, 2019, 10:41:06 pm »
I've run my Windows 10 in and out of DEV mode, I don't see any difference...

The DEV simply allows you to do more, lets restrictive.

Maybe you have some memory leaks that just isn't showing?
The only true wisdom is knowing you know nothing

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Re: Windows 10 "Developer mode"
« Reply #2 on: July 09, 2019, 11:10:04 pm »
yup, nevermind. Its some random errors, need to search... sometimes crash with NEW() and sometimes when creating form...

jamie

  • Hero Member
  • *****
  • Posts: 7602
Re: Windows 10 "Developer mode"
« Reply #3 on: July 10, 2019, 02:02:46 am »
You have memory corruption taking place, you are bleeding over the boundaries and corrupting the
memory manager.

   A good tool for this is the HeapTrc. although it most likely won't find your hole in the wall it will
boom the app to a complete exit if the memory table is messed up..

  That has been my experience. I really don't think it was designed that way but it seems to work that
way if you corrupt the memory table.

 Corrupting the table is rather easy, just write beyond the allocated lot or using FreeMem with a specified
size greater than what was allocated.
The only true wisdom is knowing you know nothing

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Re: Windows 10 "Developer mode"
« Reply #4 on: July 10, 2019, 02:57:36 pm »
I almost found the problem, that big evil Application.ProcessMessage and BeginUpdate...

 

TinyPortal © 2005-2018