Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
124 user(s) are online (72 user(s) are browsing Forums)

Members: 3
Guests: 121

VooDoo, trixie, Georg, more...

Headlines

Forum Index


Board index » All Posts (abalaban)




Re: OS4Depot hosting payment 2014-2015
Quite a regular
Quite a regular


Sent a small donation too. Thank you for keeping this (and others) site available!

Back to a quiet home... At last
Go to top


Re: Which graphic tablet?
Quite a regular
Quite a regular


@mbrantley

Oh, okay I'll see what I can do, on the other thinking about it again I wonder if I can detect which side of the pen hit the tablet or if it is only a difference on the pression value (the "eraser" side is always at max pression level).

Back to a quiet home... At last
Go to top


Re: Which graphic tablet?
Quite a regular
Quite a regular


@328gts & mbrantley

I don't remember the state of the latest public version, but doesn't the preference tool provide such a choice already? (Try using Exchange or hitting Ctrl-Shift-W).

In the end it would be possible to configure the action associated with any of the buttons supported by the tablet and/or the pen.

Back to a quiet home... At last
Go to top


Re: Which graphic tablet?
Quite a regular
Quite a regular


@sicky

My Wacom USB driver is known to work for a vast majority of USB Wacom tablets (a list is given in the Readme).

I have an upcoming version in the works (which should add support for latest Wacom models) but I have to finish other projects first. Don't expect to see this updated version in the coming days but if you are in hurry contact me privately to see what we can do.

Back to a quiet home... At last
Go to top


Re: POLL: What graphics card(s) do you currently use on AmigaOS 4.x?
Quite a regular
Quite a regular


I use a Sapphire Ultimate HD 4650 1GB Passively cooled in my X1000.
Nowadays I only rarely use my XE but it is equipped with a Radeon ATI 9200SE 128Mo so I didn't check that one.

Back to a quiet home... At last
Go to top


Re: Bluetopia? Buletooth stack for AmigaOS4.x maybe?
Quite a regular
Quite a regular


@delshay

I do not get what you are trying to say. The fact the device has a logo does not imply anything: they already paid the licence fee to stick this logo on them. As with the frequency used: that is the device maker's responsibility: neither the user, nor the stack developer can be liable for it (device should have obtained an FCC agreement or similar).

Moreover as for the Bluetooth fees according to Bluetooth SIG website (here) you should be member to develop anything based upon their specifications, but from the above mentioned webpage one can read that "Adopter membership" is free. Qualification process and listing product are not free (~$8.000 USD) however I was not able to determine if those are *required*.

Back to a quiet home... At last
Go to top


Re: CA certificates
Quite a regular
Quite a regular


@kilaueabart

Quote:
And just in case, be sure you set "ignore ssl erros" in preference.


That's a strange advise, if there is an SSL error then there is a reason. Please anyone keep in mind that doing that you might very well fall in insecure mode, do not provide any sensible information with such option activated! Or do this at your own risk, do no come back here complaining that your heart is bleeding

Note: that is just a word play, I am aware that the recent flaw on OpenSSL was not related to that.

Back to a quiet home... At last
Go to top


Re: Does HeartBleed affect Amigas?
Quite a regular
Quite a regular


@tbreeden
Quote:
Is there any way to configure Odyssey to do some sort of checking
for cert revocation?

As a test, try site https://revoked.grc.com, which has a revoked
certificate, but the revocation is not noticed in Odyssey.


Maybe you have activated the Odyssey option to ignore SSL errors?

Back to a quiet home... At last
Go to top


Re: Is GCC totally bugged, or am I just going crazy?
Quite a regular
Quite a regular


@broadblues

Quote:
[edit]
BTW when you added printf did you also add #include <stdio.h>? if so is there any other code that might have needed that header? That may be working correctly now that it has the correct function prototype etc?
[/edit]


That one is also a good one: not having correct function prototype or not including the header defining them before using functions may lead to such problem especially if your expected result is the function return value (remember that when GCC find a function without having its prototype first it assumes return value is int, if in the end that is not the case and the return value is bigger or smaller than an int then you might start having problems...)

Back to a quiet home... At last
Go to top


Re: Is GCC totally bugged, or am I just going crazy?
Quite a regular
Quite a regular


@tonyw

Wouldn't a program without enough stack crash?
Chris said his program does not crash, but just produce unexpected results while adding a never executed statement (i.e. if(false) printf();) it starts producing good results.

Back to a quiet home... At last
Go to top


Re: Is GCC totally bugged, or am I just going crazy?
Quite a regular
Quite a regular


@ChrisH

Another cause may be non initialized variables and depending on what was previously stored in the memory it works or not.

Another try may be to deactivate all code optimizations too in order to eliminate the, not so probable, possibility this is really a GCC bug...

I am spawning ideas, I am not pretending to hold the Truth

Back to a quiet home... At last
Go to top


Re: Is GCC totally bugged, or am I just going crazy?
Quite a regular
Quite a regular


@ChrisH

Quote:
i.e. A piece of code which is never called suddenly makes my program start working.

So either I am going completely mad, or GCC has some super weird bug.


That's clear you are trashing your stack and/or your heap. Adding statements to your program change the shape of your program and it does not crash anymore where it used to (but it will a bit later...or sooner depending where you added your statement). Good luck debugging your code that's one of the most difficult case to chase. Starting with my suggestion is then a good start (or running a code analysis program, like lint or similar).

Back to a quiet home... At last
Go to top


Re: Is GCC totally bugged, or am I just going crazy?
Quite a regular
Quite a regular


@ChrisH

What you describe is also often relevant of a bad stack shape. Especially if you are doing intensive use of printf family functions double, triple, and even quadruple check concordance of your format string and your arguments (count *and* type).

Of course René's suggestion is the first to check (i.e. flushing output either by explicit call to flush, either by adding '\n' at the end of your other printf calls.

Back to a quiet home... At last
Go to top


Re: Cubic IDE and console.api
Quite a regular
Quite a regular


@jaokim

Have you tried to look into the example drawer? IIRC there was almost sample for every thing in CubicIDE (once upon a time when CubicIDE was still active I have started to port it natively to AmigaOS 4 and I was almost done when it became evident CubicIDE would not be updated anymore
If you wish I can try to have a look into my files if I can find anything.

Back to a quiet home... At last
Go to top


Re: Way is there 3 prefs programs for Language settings?
Quite a regular
Quite a regular


@joerg

Yes of course, it's an abstraction layer but last time I tried to use it, it was easier to use and straight forward (and not the least using Amigaish API).

Back to a quiet home... At last
Go to top


Re: Way is there 3 prefs programs for Language settings?
Quite a regular
Quite a regular


@LiveForIt

May I know why you have dismissed the standard Amiga library Codesets? (http://sourceforge.net/projects/codesetslib/?source=directory)
It is even available for all the Amiga flavors out there...

Back to a quiet home... At last
Go to top


Re: IScoket->Connect(...) not working from proc = IDOS->CreateNewProcTags(...)
Quite a regular
Quite a regular


@LiveForIt

In your code I can't see where you are opening bsdsocket.library and obtaining its interface. You quoted some threading code so despite your other code does not seem to use it I assume you do in your actual program, so this may be your problem, and even then remember sockets are *not* shareable across processes by default, you'll need to either write a socket server either enable the sharing functionnality in bsdsocket (see Autodocs). Also remember that each process *must* open/close its own libraries/interfaces.

Back to a quiet home... At last
Go to top


Re: I'm trying to do a forward declaration of a simple class.
Quite a regular
Quite a regular


@LiveForIt

Quote:
Only if its declared it as public or private object, the return value and parameters are created / copied when you call the Method.

You don't need to inline, methods like I did, and that's probably how its possible to create objects, in any methods.


Yep after re-reading again you are right I thought they were attribute members.

Quote:
So there is "copy constructor", that might solve some tricky cases.

Well what you see is that if you count number of “New” called, and compare it whit number of “Delete” calls, they do not match up.

I was suppressed by this unexpected behavior, that when I know some thing fishy was going on.

If it was handled whit the “new” and “operator=” then I most like never have run into this problem.


I don't see how the "copy constructor" has anything to do with new/delete. Consider the following use case

SomeClass piMyVar1 = new SomeClass();
if(
NULL != piMyVar1)
{
    
piMyVar1->SetParameter1(someValue);

    
SomeClass iMyVar2(*piMyVar1); // copy constructor

    
delete piMyVar1piMyVar1 NULL// deletion

    
iMyVar2.GetParameter1(); // still able to access iMyVar2

    // ... some work
// when exiting this block iMyVar2 becomes out of scope and cannot be referred to anymore

Back to a quiet home... At last
Go to top


Re: I'm trying to do a forward declaration of a simple class.
Quite a regular
Quite a regular


@LiveForIt

Ok you are learning C++. Try not to make assumption on what you are reading, you may make false one.

For example what Broadblues is telling is true about the cross inclusion of a plain instance (or a reference) of both classes in your first example. If Class A includes an instance of Class B which itself includes an instance of Class A then you have an infinite recursion requiring infinite memory storage just to start instantiating a single object.

About the copy it is exactly how C works when passing in parameters to functions or returning a value : it is copied on the stack, or in registers depending on the ABI, but anyway it is copied, if you don't want a copy then pass a pointer (or better in C++ pass a reference).

I am not sure what you want to say when you write "C++ is evil it does a memory copy of the return value before returning by default, and then free the object, (Instead of creating a object and lett operator= handel it. )" but first make sure that you understand what a "copy constructor" is, how it works and how it differs from the assignment operator.

That is true that this value copying can take time especially for huge objects that is exactly why reference exists, and combined with the 'const' modifier it prevents you from unwanted modification.

Note that returning a reference to a volatile variable is not the solution either unless you first make a deep copy of your object.

Back to a quiet home... At last
Go to top


Re: I'm trying to do a forward declaration of a simple class.
Quite a regular
Quite a regular


@LiveForIt

You can't do that. Forward declaration of class (in other word incomplete type declaration) is only allowed when you are using pointer to that class.
If you are declaring or using an instance then the compiler needs the full declaration (because it needs to know the size of the memory needed for that variable)...

If you need to cross reference the object (which is tiedous at destruction time) then you need to split the classes in separate files (don't forget the #ifndef CLASS_X at the top of each file).

Back to a quiet home... At last
Go to top



TopTop
« 1 2 (3) 4 5 6 ... 43 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project