PureBasic in VirtualBox?

Everything else that doesn't fall into one of the other PB categories.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

PureBasic in VirtualBox?

Post by Dude »

Is PureBasic meant to work inside a virtual machine environment, such as VirtualBox?

I have a clean install of Windows XP (32-bit) set up in a virtual machine, and I installed PureBasic 5.51 (32-bit) into it and tried to run the code by PureLust here: http://www.purebasic.fr/english/viewtop ... 13&t=67312

This was the result (to do with porc.exe): https://i.imgur.com/UPw89X3.png

So, is this a PureBasic bug, or a virtual machine bug, or what?

[Edit] I noticed the PureBasic error log (in the screenshot) says it's a resource error.
Last edited by Dude on Wed Dec 28, 2016 1:59 am, edited 1 time in total.
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic in VirtualBox?

Post by Keya »

i cant comment on your specific error with that PORC.EXE crash sorry (although C000001D = illegal instruction, so you might want to attach to it with a debugger and see what instruction its crashing on - unsupported? or just EIP gone AWOL?), but i use PB x86 and x64 on both VirtualBox and VMWare on Windows+Linux+Mac no problems :) my main dev system is my Virtualbox VM with XP32 and currently 5.42LTS x86 (must update that soon!)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic in VirtualBox?

Post by Mistrel »

Out of curiosity, can you compile OK with 5.42?
PureLust
Enthusiast
Enthusiast
Posts: 486
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: PureBasic in VirtualBox?

Post by PureLust »

Hi Dude,

as I mentioned in the last post of my thread, it looks like, that the new routine behind ElapsedMilliseconds() causes some Problems on older PCs - and maybe on virtual-machines also.
I do remember an issue with timing on VMWare a few years ago too.

Could you try to replace ElapsedMilliseconds() with GetTickCount_() in my example-code and see if it works?
If so, it looks like that there is definitely a problem with the new routine behind ElapsedMilliseconds() where Fred never run into on his environment.

But if Fred can easily setup an VirtualBox-environment where he can reproduce it, maybe he can fix it. :D
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic in VirtualBox?

Post by Mistrel »

The porc.exe sounds like some application called as part of the build process. I don't think his program is ever actually run.
dougmo52usr
User
User
Posts: 67
Joined: Mon Jul 18, 2016 6:43 pm

Re: PureBasic in VirtualBox?

Post by dougmo52usr »

I'm running virtualbox on linuxmint and purebasic is installed on a win7pro vm. No problem with purebasic ide in my configuration.

I tried the code and of course the tight repeat/until loop made my program unresponsive, so I got rid of the repeat/until and changed to a button event per the following just to check out the ElapsedMilliseconds() call.

Code: Select all

Procedure TestElapsedTimer()
  Static OldTimer
  Protected ActTimer = ElapsedMilliseconds()
  If ActTimer < OldTimer
    Debug "ERROR at "+FormatDate("%hh:%ii:%ss", Date())+" -  old Timer ->  "+Str(OldTimer)+" / "+Str(ActTimer)+"  <- new Timer   ("+Str(ActTimer-OldTimer)+"ms)"
  Else
    Debug "ElapsedTime = "+StrD(ActTimer-OldTimer)
  EndIf
  OldTimer = ActTimer
EndProcedure

Procedure OnBtnTest(EventType)
  TestElapsedTimer()
EndProcedure
__________________________________________________
Code tags added
17.01.2017
RSBasic
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic in VirtualBox?

Post by Keya »

Mistrel wrote:The porc.exe sounds like some application called as part of the build process. I don't think his program is ever actually run.
yes its the Peles Resource Compiler, Purebasic-Win also uses it (in \Compilers\ directory)

btw Dude what happens when you go to command prompt and run porc.exe with no parameters (it should output some basic help information), does it still crash?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: PureBasic in VirtualBox?

Post by Dude »

Keya wrote:what happens when you go to command prompt and run porc.exe with no parameters
Still get the crash. :(

Also it's nothing to do with the source code, because I get the same error when simply trying to compile and run this:

Code: Select all

Debug "hi"
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic in VirtualBox?

Post by Keya »

Dude wrote:
Keya wrote:what happens when you go to command prompt and run porc.exe with no parameters
Still get the crash. :(
weird! anyway i uploaded the porc.exe and porc.dll from my PB5.42-x86\Compilers\ which i run fine on my XP32, you might wanna compare CRC etc with yours - kinda sounds like a corrupt copy of the file or something - a reinstall probably cant hurt, maybe try other versions also - maybe it's a 5.51 thing (slack me i havent had the chance to upgrade from 5.42 yet!)
https://www.sendspace.com/file/hv2xw4 (75kb)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic in VirtualBox?

Post by Mistrel »

If it's wrapped up in a virtual machine, maybe you can get it to Fred.
Post Reply