Ted Lyngmo

Member since: Wednesday, 06 September 2017
Last login: 1 week ago
Profile viewed: 288 views

No Rank
Points: 0

Ted Lyngmo replied to the topic 'Out of memory when compiling' in the forum. 1 week ago

As Emailx45 implied, maybe something can be done in the way you bring all the code together.

How much of that code base can be separeted from the rest? Think DLL or if that won't work, something softer that makes you talk internaly.

Have you separated UI / db / processing stuff? Do you have X departments delivering stuff? CI? CD? With that codebase (and that you even have to think about it) makes me believe that there's some separation work that can be done. Individual developers should not really need to notice that the product is big i.m.o.

Br,
Ted

Read More...

Ted Lyngmo replied to the topic 'Cause for recompilation of untouched files' in the forum. 1 week ago

I hope it's not the compiler that's taking descisions like that.

There must be some dependency analysis involved before the compiler gets its orders. Do you have some of the project on a network drive? Many build systems rely on timestamps to decide if a file it's dependent on has changed (or "is newer") since the last time (stamped on the final binary) was used. With a slight time skew, all bets are off.

gmake has quirks which makes it unsuitable for filesystems like MVFS (ClearCase) where every file may seem to have changed backwards in time suddenly.

Or ... do you include some central header file(s) in every other file in the project and that happens to be touched between builds somehow? Do you have a "NiftyFunctions.hpp" - with signatures that changes often?

Br,
Ted

Read More...

Ted Lyngmo replied to the topic 'raised exception class EListError with message 'Item not found'.' in the forum. 2 weeks ago

Resource management is tricky. You provide no insight as to why/how/when that's going on in your code, but I'm pretty sure that some resource is being used that isn't available. If gestures aren't available, the app has no business acting as if they where.

Read More...

Ted Lyngmo replied to the topic 'Blocked?' in the forum. 2 weeks ago

"basically no sql expressions"

I don't mean to make fun anyone person - but I think I know enough SQL see fun when it's staring me right in my one good eye.

Sorry, carry on ...

Next chapter: Nearly no regular expressions ...

Read More...

Ted Lyngmo replied to the topic 'First attempt at 10.2 and 64 bit...' in the forum. 2 weeks ago

I don't think porting should be a big issue if the application is small.

Code please.

Read More...

Ted Lyngmo replied to the topic 'Best class wrapper for for file operation' in the forum. 3 weeks ago

Standard:

std::fstream
Delphi/C++ Builder specific:
System::Classes::TFileStream
It's hard to say which one is best for what you're trying to do.

Read More...

Ted Lyngmo replied to the topic 'Starting service says cannot find the file specified' in the forum. 3 weeks ago

I am using the pro version too. No problem with services or the registry.

Read More...

Ted Lyngmo replied to the topic 'TPropertyEditor - propsys.h - 'IPropertyDescription' conflicts' in the forum. 4 weeks ago

Great, thanks! It turned out that this workaround works:

#include <propsys.h> // to avoid an Embarcadero bug 
#include <DesignEditors.hpp>
A bug report will be filed although my earler attempts at getting bugs fixed seems to have been ignored.

Read More...

Ted Lyngmo replied to the topic 'Starting service says cannot find the file specified' in the forum. 4 weeks ago

Are you able to uninstall it completely so it's nott visible in the serviices list? Have you renamed it since you first installed it? Perhaps seach the registry for the filename to see whar info you get there.

I run my services on W10 just fine so that's not it.

Read More...

Ted Lyngmo replied to the topic 'passing struct as paremeter' in the forum. 1 month ago

struct my_s
{
    int a;
    int b;
    ansistring t;
};

void foo(my_s& ref_to_a_my_s)
{
   ref_to_a_my_s.a = 1;
   ref_to_a_my_s.b = 2;
   ref_to_a_my_s.t = " Whoo, that was tough";
   // return this; // can't return anything from a void function
}

You may want to make "foo" a class method instead:
struct my_s
{
    int a;
    int b;
    ansistring t;
    void foo() {
        a = 1;
        b = 2;
        t = " Whoo, that was tough";
    }
};
// in other part of program

my_s sample
sample.foo();


Read More...

Ted Lyngmo replied to the topic 'Starting service says cannot find the file specified' in the forum. 1 month ago

Have you installed a service with the same name from a different path earlier? Perhaps uninstalling and reinstalling it will help.

Read More...

Ted Lyngmo replied to the topic 'Starting service says cannot find the file specified' in the forum. 1 month ago

If you double-clock the installed service via services.msc you get the path to the exe file it tries to execute. Is the file still at that path?

Read More...

Ted Lyngmo created a new topic ' TPropertyEditor - propsys.h - 'IPropertyDescription' conflicts' in the forum. 1 month ago

Hi!

I've written a few components before but have never tried creating a custom property editor so I thought I would give it a try. I tried to follow the tips on the Design Editors page.
* Added $(BDSINCLUDE)\windows\vcl\design to the System Include Path
* Added designide.bpi to the Requires of my package.

I then added a Design-Time Package to contain the editor only.

#ifndef StringListEditorH
#define StringListEditorH
#include <DesignEditors.hpp>
//---------------------------------------------------------------------------
class TStringListEditor : public TStringProperty {
public:
	__fastcall TStringListEditor();
};
//---------------------------------------------------------------------------
#endif

When trying to compile, I get this:
[bcc32c Error] propsys.h(1881): definition of type 'IPropertyDescription' conflicts with typedef of the same name
  propsys.h(129): 'IPropertyDescription' declared here

The code in conflict looks like this:
#ifndef __IPropertyDescription_FWD_DEFINED__
#define __IPropertyDescription_FWD_DEFINED__
typedef interface IPropertyDescription IPropertyDescription;    // Line 129

#endif 	/* __IPropertyDescription_FWD_DEFINED__ */
#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("6f79d558-3e96-4549-a1d1-7d75d2288814")
    IPropertyDescription : public IUnknown                      // Line 1881
    {
    public:
I'm guessing I need to include something that forward defines IPropertyDescription before I include DesignEditors.hpp, but I can't find out what.

C++ Builder 10.2.1

Br,
Ted

Read More...

Ted Lyngmo replied to the topic 'Tstrings on TCollectionItem not showing' in the forum. 1 month ago

The name TStrings is unfortunate since there's already an abstract TStrings class in the framework (System.Classes.TStrings). You should probably rename it to avoid confusion.

When you say you click Commands, do you mean the Commands property in a TFactory instance that you've added to your form?

Btw, try using blocks [ code] ... [ /code]. It makes the code much easier to read.

Read More...

Ted Lyngmo replied to the topic 'EIdosslcouldnotloadssllibrary 10.1 and 10.2 Berlin Delphi' in the forum. 1 month ago

The files you found are probably not from Fulgan or you don't have C:\Windows\SysWOW64 in the DLL search path. Download the appropriate SSL package (via the link) and unzip libeay32 and ssleay32.dll in your applications folder.

You also need to set your TIdHTTP object's IOHandler to a TIdSSLIOHandlerSocketOpenSSL object.

Note: You need to distribute the libs with the app for it to work elsewhere.

Read More...

Ted Lyngmo replied to the topic 'how to fix several errors' in the forum. 1 month ago

The first file (why attach it as a document?):

[C++ Error] Unit1.cpp(227): E2089 Identifier 'PrgBox1Change' cannot have a type qualifier.
[C++ Error] Unit1.cpp(234): E2139 Declaration missing ;.
[C++ Error] Unit1.cpp(234): E2134 Compound statement missing }.
[C++ Error] Unit1.cpp(234): E2134 Compound statement missing }.
[C++ Error] Unit1.cpp(234): E2134 Compound statement missing }.
[C++ Error] Unit1.cpp(234): E2134 Compound statement missing }.
[C++ Error] Unit1.cpp(234): E2134 Compound statement missing }.
[C++ Error] Unit1.cpp(234): E2134 Compound statement missing }.
is probably the result of the last function in the second file:
void __fastcall TForm1::PrgBox1Change(TObject *Sender)
{
although the line numbers don't match. If you change it to this, you'll probably get further:
void __fastcall TForm1::PrgBox1Change(TObject *Sender)
{
//
}


Read More...

Ted Lyngmo replied to the topic 'Lost Topic - BLE notifications corrupted data' in the forum. 1 month ago

The overloaded function

function IntToHex(Value: Int8): string;
seems to be the best fit for a signed 8 bit integer.

Did you try this too?
HexStr := HexStr + inttohex(ACharacteristic.GetValueAsInt8(I));
Br,
Ted

Read More...