Page 1 of 1
Windows 2008 compatibility
Posted: Fri Dec 14, 2012 3:55 pm
by tutiplain
Hi all,
Anyone know if Purebasic-generated executables (.exe files) can execute on a windows 2008 server environment? We had a PB-made program running on a win 2003 server and it worked just fine (this program only uses GUI and Network routines). After we upgraded to Windows Server 2008, running the program causes it to crash, and a "Program has stopped working" message to be displayed. We tried re-compiling with PB 5.00 (it was originally made in 4.41), both 32- and 64-bit versions, to no avail.
Any info you can provide will be greatly appreciated.
Re: Windows 2008 compatibility
Posted: Fri Dec 14, 2012 4:26 pm
by luis
I don't see why not since it's based on Vista (right?).
For the program, doesn't crash running inside the PB-IDE with the debugger ?
Try enabling the purifier too.
There is not much to say, you have at least to find where it crashes, then if you have a problem in understanding why you can always come back to the forum an try to ask here!
Re: Windows 2008 compatibility
Posted: Fri Dec 14, 2012 8:59 pm
by rsts
You might compile it with on-error lines support and see if that will narrow it down.
Re: Windows 2008 compatibility
Posted: Sun Dec 16, 2012 3:08 am
by sec
My .exe runs in 32bit mode on win 2008 datacenter 64bit w/o problem. .exe does server stuff, registry, file...
You can to add some breakpoint in your code to seew which part not working. I had make brwakpoint by messageresquester().
Re: Windows 2008 compatibility
Posted: Sun Dec 16, 2012 5:33 pm
by BorisTheOld
tutiplain wrote:We tried re-compiling with PB 5.00 (it was originally made in 4.41), both 32- and 64-bit versions, to no avail.
In situations like this it's my experience that the problem lies in user code and that the bug has always been there - it just didn't show up in other versions of Windows.
It's highly unlikely that exe files suddenly stopped working just for you. So you have to ask yourself why it is that this program fails while your other programs work fine (I assume).
These sort of bugs cause a lot of grief and are not easy to find. Doing it right the first time is a much better approach to program design.
Re: Windows 2008 compatibility
Posted: Mon Dec 17, 2012 1:11 pm
by tutiplain
Thanks for your replies. Using MessageRequester for breakpoints seems like a good strategy to narrow down the problem. I'll see what I can dig up.
Re: Windows 2008 compatibility
Posted: Mon Dec 17, 2012 2:54 pm
by luis
tutiplain wrote:Using MessageRequester ...
You could also use an
ASSERT macro (even if it is better suited for the development process).