Page 44 of 104

Posted: Tue Jan 09, 2007 4:29 pm
by JoRo
The main difference between PB and Japbe it the debugger window!!!
This does not exist in PB, but is there the main window.

Well I have tested the debugger typs- all the same,
I have tested the debugger settings in Japbe, all the same

the error appears during the compilation, before the executable is created.
And the reason must be the size of the source.

Posted: Tue Jan 09, 2007 4:34 pm
by gnozal
JoRo wrote:The main difference between PB and Japbe it the debugger window!!!
This does not exist in PB, but is there the main window.
In PB you see a debugger window if you choose the external debugger.
JoRo wrote: Well I have tested the debugger typs- all the same,
I have tested the debugger settings in Japbe, all the same
the error appears during the compilation, before the executable is created.
And the reason must be the size of the source.
I don't know.
Never had this problem. My currently biggest source only has 17000 lines.

Posted: Tue Jan 09, 2007 4:48 pm
by JoRo
As I said, I had had this problem with an older versoin of Japbe and even with the PB compiler. But this problem had not appeared, when I build the exe. That was for a time the worst case, and I had to code without debugger. I have the error handler enabled. So, it is not too worst.

And I am wondering, why do you not use the error handler. The problem I have, and others have, are so found in seconds!!!

Posted: Tue Jan 09, 2007 4:51 pm
by gnozal
JoRo wrote:And I am wondering, why do you not use the error handler. The problem I have, and others have, are so found in seconds!!!
I don't know what you mean with 'error handler' ?
What can I do if the debugger crashes ?

Posted: Tue Jan 09, 2007 5:01 pm
by JoRo
I mean
OnErrorGosub(@errorprocedure())

OnErrorGosub(@..) is explained in the PB docu.

You can define the output, with lines and lib, so you get exact the position in the source code, where the error occurs.

Coding for the error handler....about 5 to 10 minutes.

But so far you are right: PB also should use the error handling.

I use it in my Terraingenerator GeoControl, and I have got it extrem stable with this.

What is your suggestion, what should I do?

Posted: Tue Jan 09, 2007 5:10 pm
by gnozal
JoRo wrote:I mean
OnErrorGosub(@errorprocedure())
Yes, I know OnErrorEtc()...
It is even used in jaPBe :wink:
What I don't understand, is how it would help when the debugger crashes.
Like I said, jaPBe only sends a message : PostThreadMessage_(CompilerThreadID, PB_MSG_ID, #PB_MSG_Start_Compilation, flags) ; the rest is done by the PB compiler. And if the compiler doesn't send an error code when the debugger crashes, what can I do ?
JoRo wrote:What is your suggestion, what should I do?
As far as I understand, I think you have a PB problem rather than a jaPBe issue. Maybe you should post a well documented bug report.

Posted: Tue Jan 09, 2007 10:49 pm
by oryaaaaa
"UNICODE 2byte crush"
gnozal, I debug jaPBe source.
because most Japanese users are reporting this crush. (maybe china user too)

I think debugger launch problem is purebasic side.
before debug jaPBe source, no problem. Please try Re-Install PureBasic.

Posted: Wed Jan 10, 2007 8:36 am
by gnozal
oryaaaaa wrote:"UNICODE 2byte crush"
gnozal, I debug jaPBe source.
because most Japanese users are reporting this crush. (maybe china user too)
Good, I hope you find the bug, because I can't reproduce it (you probably need a japanese OS).

Posted: Thu Jan 11, 2007 4:28 pm
by gnozal
Update

Changes :
- added jaPBe_DeleteCurrentTab() and jaPBe_LockCurrentTab() to plugin SDK
These functions will be usefull for the next PureFORM release.

Posted: Fri Jan 12, 2007 5:20 pm
by oryaaaaa
WindowCallback.pbi (Line: 1051)

Code: Select all

Case #SCN_CHARADDED
  If Sources()\SourceType=#SourceType_PureBasic
    Pos=SCI_GetCurrentPos()
    i=SCI_LineFromPosition(Pos)
    ColoringLine(#True,-1,i);mu゚ rein, sonst klappt Calltips, etc. nicht!
    ;SCI_SetLineState(i,#True)
    Debug *msg\ch ; 12354
    Select *msg\ch
      Case 13; ret
        ;{ Automatic Indentation
        SCI_BeginUndoAction()
        Pos=SCI_GetCurrentPos()
        line=SCI_LineFromPosition(Pos)-1
        If AutoInsert
          ChangeIndentation(line,2)
        ElseIf line>-1
          g=SCI_GetLineIndentation(line)
          If g>0
            ;a$=Space(g)
            ;SCI_AddText(g,@a$)
            SCI_SetLineIndentation(line+1,g)
            SCI_GotoPos(SCI_PositionFromLine(line+1)+g)
          EndIf
        EndIf 
        SCI_EndUndoAction()
        ;}
      Case '#' ; gnozal : Context Sensitive Constant Autocomplete
        If ContextSensitiveAutocomplete And AutoCompletation
          AutoCompletion2()
        EndIf
      Default
        If AllowedChars(*msg\ch)=#False ; Array index out of bounds (Max:256) Crash (12354)
          ;{ After every word a new undoaction
          If SpaceAdded=#False
            SpaceAdded=#True
            If *msg\ch=32 
              ;{Space - Aktuelle Zeile Ident
              Pos=SCI_GetCurrentPos()
              If Pos-1=OldIndetationPos
                ChangeIndentation(SCI_LineFromPosition(Pos),0)
              EndIf
              OldIndetationPos=-99
              ;}
            EndIf
            SCI_BeginUndoAction()
            SCI_EndUndoAction()
          EndIf
          ;}
          ;{ auto-completions
          If SCI_AutoCActive()
            SCI_AutoCCancel()
          EndIf
          ;}
        Else
          ; after every word a new undoaction
          SpaceAdded=#False
          OldIndetationPos=SCI_GetCurrentPos()
          
          ;{ Auto-completions
          ;Debug Str(WordUnderCursorPos)+" "+Str(Pos)+" "+Str(WordUnderCursorEnd)
          If WordUnderCursorEnd=Pos-1; And WordUnderCursorPos<>WordUnderCursorEnd
            ;Debug "DO AUTOCOMPLETE"
            AutoCompletion(WordUnderCursorPos,WordUnderCursorEnd,WordUnderCursorType)
          Else
            If SCI_AutoCActive()
              SCI_AutoCCancel()
            EndIf
          EndIf
          ;}
        EndIf
        
    EndSelect
  EndIf
FIX

Code: Select all

Default
  If AllowedChars(*msg\ch &$FF)=#False
   ;{ After every word a new undoaction

Posted: Sat Jan 13, 2007 5:07 pm
by Q*bert
Is it possible to assign a shortcut key to a plugin?

I would like to assign the PureForm plugin to a shortcut, but the shorcut doesn't seem to save when I set it in "Confg Tools".

Posted: Mon Jan 15, 2007 8:58 am
by gnozal
Q*bert wrote:Is it possible to assign a shortcut key to a plugin?

I would like to assign the PureForm plugin to a shortcut, but the shorcut doesn't seem to save when I set it in "Confg Tools".
Works here.
You have to validate the new setting by using the 'Replace' button.

Posted: Mon Jan 15, 2007 8:59 am
by gnozal
oryaaaaa wrote:WindowCallback.pbi (Line: 1051)
FIX

Code: Select all

Default
  If AllowedChars(*msg\ch &$FF)=#False
   ;{ After every word a new undoaction
Thanks, I will update the code for the next version.

Posted: Mon Jan 15, 2007 5:17 pm
by gnozal
Update

Changes :
- fixed crash with japanese OS (thanks oryaaaaa)
- enhanced Project/Tailbite dialog

Posted: Mon Jan 15, 2007 6:15 pm
by Flype
thank you for the update gnozal.

another request.

please, could you add an Shortcut key for TailBite ?

maybe [Maj + F5] or [Ctrl + F5].