Search found 13 matches

by JJ
Thu Aug 29, 2013 7:50 am
Forum: Coding Questions
Topic: PB5.20b14 ParseDate() returns -1
Replies: 1
Views: 707

PB5.20b14 ParseDate() returns -1

Hello,

As discuss in other topic (http://www.purebasic.fr/english/viewtopic.php?f=4&t=56091&p=422624&hilit=parsedate#p422624), I find a difference between Pb5.11 and Pb5.20 if you don't describe all parameters of the date to parse, the ParseDate() returns -1.

Perhaps it's normal, but I prefer that ...
by JJ
Wed Aug 28, 2013 8:17 pm
Forum: Coding Questions
Topic: PB5.20b14 WebGadget Error: Invalid memory under XP
Replies: 1
Views: 1033

PB5.20b14 WebGadget Error: Invalid memory under XP

Hello,

I have only 2 Pc to do this test. One with Seven x64 and the other with XP.
Under Seven both the x86 and x64 version ob PB works fine. But under XP If you start 2 threads with one window and one WebGadget by thread. When the second thread create the WebGadget I have an Invalid memory access ...
by JJ
Mon Jul 01, 2013 5:07 pm
Forum: Coding Questions
Topic: PB5.20bx: WebGadget() and Thread->Invalid memory access
Replies: 1
Views: 847

PB5.20bx: WebGadget() and Thread->Invalid memory access

Hello,

I find a trouble between previous version of PB and the new PB5.20, with WebGadget() in a thread.

The trouble commes when you launch the thread more one time. The second Thread will crash with the message:"Invalid memory access.(read error at adress 0)" when the thread want to create the ...
by JJ
Wed Jan 30, 2013 12:06 am
Forum: Coding Questions
Topic: [PB5.1b5] ParseDate() trouble
Replies: 1
Views: 689

[PB5.1b5] ParseDate() trouble

The function ParseDate() send a diferent result in PB5.1b5 than older final version like PB5.00
Debug ParseDate("%yyyy-%mm-%dd %hh:%ii:%ss","2003-12-02")
Debug ParseDate("%yyyy-%mm-%dd","2003-12-02")

With older version the both are accepted, but in PB5.1b5 the first line retunrs -1 invalid date ...
by JJ
Thu Apr 08, 2010 5:36 pm
Forum: PureFORM & JaPBe
Topic: PureLVSORT library : sorting ListIconGadgets (and more)
Replies: 438
Views: 321489

Re: IMA with MultiThreading & MultiCPU

I think this 2 procedure PureLVSORT_SelectGadgetToSort() and PureCOLOR_SetGadgetColorEx() must used callback procedure.
If I don't use this procedure, my application runs fine. Many other procedure in the library PureColor works fine too in this context.

I make the test with semaphore to protect ...
by JJ
Wed Apr 07, 2010 10:17 pm
Forum: PureFORM & JaPBe
Topic: PureLVSORT library : sorting ListIconGadgets (and more)
Replies: 438
Views: 321489

Re: IMA with MultiThreading & MultiCPU

Yes, I compile with the switch theadsafe. If I try to run the application with switch threadsafe off, the "Invalid memory error" comes immedialtely.

I make the test on diferent PC
PC with only one core Mobile centrino under XP SP2: No trouble
* Pentium 4 (monocore with multitreading active ...
by JJ
Fri Apr 02, 2010 7:51 am
Forum: PureFORM & JaPBe
Topic: PureLVSORT library : sorting ListIconGadgets (and more)
Replies: 438
Views: 321489

IMA with MultiThreading & MultiCPU

Hello,

I have a trouble with a the function PureLVSORT_SelectGadgetToSort() and PureCOLOR_SetGadgetColorEx() when I use it in a thread.
To test it, launch the simple application, and when it runs, move a window. On many PC multiCPU under XP you will have a invalid memory error on the instruction ...
by JJ
Mon Oct 05, 2009 8:50 pm
Forum: PureFORM & JaPBe
Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Replies: 1545
Views: 690734

Re: jaPBe 3.9.9 [IDE for PB 4.xx]

Thanks Gnozal,

(build 806) works fine.
by JJ
Thu Oct 01, 2009 11:07 pm
Forum: PureFORM & JaPBe
Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Replies: 1545
Views: 690734

Re: jaPBe 3.9.9 [IDE for PB 4.xx]

With the latest version of jaPBe, if I used Unicode-UTF-8 (65001) in project Option\Code page. I have a syntax error line : 1. To test it a sample source like:
line 1>
line 2> end
If I changed in Unicode-UTF-7 (65001) It's Ok, and with Unicode-UTF-8 (65001) I have the syntax error line 1.
Could you ...
by JJ
Sat Feb 24, 2007 3:38 pm
Forum: Coding Questions
Topic: Linked list pointer trouble
Replies: 10
Views: 4619

@JJ
This is how you should be performing the actions you needed:

Structure TestStruct
Text.b[10000]
EndStructure

Procedure SetStructList(val, Test.TestStruct())
AddElement(Test())
; Uncomment the following line(s) to see memory reserved twiced (use the task manager to see the trouble)
; 100 ...
by JJ
Fri Feb 16, 2007 9:53 pm
Forum: Coding Questions
Topic: Linked list pointer trouble
Replies: 10
Views: 4619

Of course the memory usage grows. You call AllocateMemory() 10000 times, but not one FreeMemory()

pcfreak:
I think you misunderstand this: *Test.TestStruct() defines a linkedlist OF pointers.
So the elements in the list are pointers, not the list itself.

When you call AddElement() on such a list ...
by JJ
Fri Feb 16, 2007 8:02 pm
Forum: Coding Questions
Topic: Linked list pointer trouble
Replies: 10
Views: 4619

hi.

if you want to post quicklinks (without URL-tags) you have to leave spaces around them.
( http://www.purebasic.fr/english/viewtopic.php?t=25151&highlight=linked+list )


I don't get the point really... not your's but the code's
there seem to be some problems, but where is it exactly....?
my ...
by JJ
Fri Feb 16, 2007 1:06 am
Forum: Coding Questions
Topic: Linked list pointer trouble
Replies: 10
Views: 4619

Linked list pointer trouble

Hi,

I study the answer made to Uvosa by Fred (http://www.purebasic.fr/english/viewtopic.php?t=25151&highlight=linked+list) and I believe that a trouble exist in the PB 4.02 with linked list and pointer.

Structure TestStruct
Text.b[10000]
EndStructure

Procedure SetStructList(val, *Test ...