Page 57 of 104

Posted: Sun Dec 02, 2007 12:18 pm
by mback2k
Hello everybody. First of all, I want to say thank you, gnozal, for all your work with jaPBe.

I am having the following problem: My program has the string "Updater" inside it's name and so Vista always asks for Administration privileges. I tried to use "Request user mode on Vista", but Vista still asks for Administration privileges.

After searching through the web, I found out that the Windows Manifest has to look something like the following to stop Vista asking for the privileges:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
 xmlns="urn:schemas-microsoft-com:asm.v1"
 manifestVersion="1.0">
<assemblyIdentity
 processorArchitecture="x86"
 version="5.1.0.0"
 type="win32"
 name="PureBasic"/>
 	<description>PureBasic</description>
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
        </requestedPrivileges>
       </security>
  </trustInfo>
 <dependency>
 <dependentAssembly>
 <assemblyIdentity
  type="win32"
  name="Microsoft.Windows.Common-Controls"
  version="6.0.0.0"
  publicKeyToken="6595b64144ccf1df"
  language="*"
  processorArchitecture="x86"/>
 </dependentAssembly>
</dependency>
</assembly>
Source topic: http://www.purebasic.fr/german/viewtopi ... 154#143154 (german)

Would it be possible to add that "trustInfo"-part to jaPBe? Or is it something the PB compiler has to do?

Thanks in advance,
mback2k

Posted: Mon Dec 03, 2007 11:33 am
by gnozal
When 'Request user mode on Vista' is checked in project options, jaPBe uses the following manifest :

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="CompanyName.ProductName.YourApp"
    type="win32" />
  <description>Your application description here.</description>	<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
        </requestedPrivileges>
       </security>
  </trustInfo>
</assembly>
Is it correct ? Some Vista guru advice needed ...
And please note that the manifest options [ Enable XP / Request USER / Request ADMIN ] are mutually exclusive. In the newest build (680), jaPBe now only allows the user to select one of these options.

Posted: Mon Dec 31, 2007 1:06 pm
by gnozal
Update

Changes :
- scintilla updated to 1.75 (not much tested, but I can still rollback)
- new profiler option in preferences ('debugger' tab)

Posted: Sun Jan 06, 2008 2:31 pm
by JCV
hi gnozal,

I encounter error when trying to type the following.

Try typing
Import "disa
Import "disaaa
Import "disssss
Got this and I need to delete the error logs to be able to open japBe again.
Image

Posted: Mon Jan 07, 2008 9:47 am
by gnozal
JCV wrote:hi gnozal,
I encounter error when trying to type the following...
Weird.
Can't reproduce this. What OS / jaPBe build are you using ?
JCV wrote:Got this and I need to delete the error logs to be able to open japBe again
What error logs ?

Posted: Mon Jan 07, 2008 11:09 am
by JCV
gnozal wrote:What error logs ?
I got this from CrashedFile1.pb (I delete this file to be able to use jaPBe again)
Import "
; jaPBe Version=3.7.12.681
; Build=0
; FirstLine=0
; CursorPosition=2
; ExecutableFormat=Windows
; DontSaveDeclare
; EOF
Im using XP SP2. PB 4.2B1 I reinstall my jaPBe but still the same. :O Weird
I dont experience on PB Editor.

Posted: Mon Jan 07, 2008 5:22 pm
by gnozal
Thank for the info JCV.
Maybe I found something : could you try http://freenet-homepage.de/gnozal/jaPBe_Debug.zip and see if it fixes the problem ?
If not, please report the error module and error line.
Thanks

Posted: Mon Jan 07, 2008 5:39 pm
by JCV
gnozal wrote:Thank for the info JCV.
Maybe I found something : could you try http://freenet-homepage.de/gnozal/jaPBe_Debug.zip and see if it fixes the problem ?
If not, please report the error module and error line.
Thanks
No fatal error now (using jaPBe_Debug) . I dont know what magic did you do. :D

I just notice on the other exe it will always crash when I type
Import "anythinghere"

Posted: Mon Jan 07, 2008 5:51 pm
by gnozal
Update

Changes :
- fixed crash when 'Import' is on 1st line

Posted: Mon Jan 07, 2008 5:57 pm
by JCV
Thank you!

Posted: Tue Jan 08, 2008 2:30 am
by chen
Hi,

I just downloaded jaPBe after some months of stopping development and
I have a problem to run it...

It install without problems but when I run it I receive always the message

"PB IDE preference file not found! Please start Purebasic.exe at least
one time."

Of course I've started PB IDE several times... but it does not work.

I checked jaPBe preferences and the IDE path is ok... then what else
I need to adjust..

thanks..

Posted: Tue Jan 08, 2008 8:41 am
by gnozal
chen wrote:Hi,
I just downloaded jaPBe after some months of stopping development and
I have a problem to run it...
It install without problems but when I run it I receive always the message
"PB IDE preference file not found! Please start Purebasic.exe at least
one time."
jaPBe looks for Purebasic.prefs in :
- PB directory for PB4.00-PB4.02
- %APPDATA%\Purebasic\ for PB4.10-PB4.20 [#CSIDL_APPDATA] because of Vista
If your %APPDATA%\Purebasic\ is empty, simply copy your preference file to this directory.

Posted: Wed Jan 09, 2008 12:51 am
by chen
gnozal wrote:jaPBe looks for Purebasic.prefs in :
- PB directory for PB4.00-PB4.02
- %APPDATA%\Purebasic\ for PB4.10-PB4.20 [#CSIDL_APPDATA] because of Vista
If your %APPDATA%\Purebasic\ is empty, simply copy your preference file to this directory.
Sound weird but I dont have Purebasic.prefs anywhere... not in the directory
I installed Purebasic not even in my computer..... :oops:

But PB IDE runs without problems...

Im running PB 4.20 in Windows XP ...

Posted: Wed Jan 09, 2008 8:41 am
by gnozal
chen wrote:Sound weird but I dont have Purebasic.prefs anywhere... not in the directory
Did you check APPDATA ?
(Open console, type 'SET' + Return, look at APPDATA value)
chen wrote:I installed Purebasic not even in my computer..... :oops:
!?

Preference page bug..

Posted: Wed Jan 09, 2008 9:19 am
by Fangbeast
Gnozal, just loaded jaPBe v3 for the first time and opened the prferences page and something strange happened.

On the first tab, there is an option ticked:

"Hide Declare-Files"

As I pass my mouse over it, it changes to:

"Load a File Only Once"


Somehow, I don't think this was supposed to happen:):)

Did you have two gadgets on top of each other accidentally?